Solved

Disable NULL BASE queries on LDAP server

Posted on 2009-04-02
7
6,340 Views
Last Modified: 2013-12-04
Hello

A recent network scan has identified this potential vulnerability. I realise that it may not be an actual vulnerability (which would depend on access lists), but the fact is that this is an e-commerce server and we are required to get a "clean" network scan so this "problem" must be fixed.

The machine is standalone SBS 2003 SP2 running IIS 6 without SQL server or exchange. Basically it is just a webserver.

This problem did not exist on our last scan 3 months ago and there have been no configuration changes that I am aware of. Also, I have checked this
http://support.microsoft.com/kb/837964
In particular, the RestrictAnonymous registry setting is already set to 2 here
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\LSA

I have also verified that the dsHeuristics attribute is not defined on the DN path as follows:
CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration,Root domain in forest

Any help or advice would be much appreciated.

Thanks
LR
0
Comment
Question by:longrob604
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 6

Expert Comment

by:matt_beatt
ID: 24055868
I dont think you want to be doing that im afraid!  I take it this servers is running as a DC and web server - correct?

My understanding of LDAP in an AD environment is that the RootDSE query is anonymous and is a requirement for Clients to be able to obtain certain vital information about the LDAP directory.  RootDSE query is where Base="" ie: Null Base Search.  If you dont have this, AD wont work and therefore neither will anything you have reliant on AD!
0
 

Author Comment

by:longrob604
ID: 24056046
Hi Matt

Thanks for your message.  There are no clients, since this is a standalone webserver. We never had this problem with null base queries before, and as mentioned, accoriding to the KB we have it disabled already ! Yet the network scan shows otherwise. We had a seperate network scan from a another company just to make sure, and that also gave the same result. Also, this is a *requirement* for anyserver that needs to be PCI compliant and that would basically be any e-commerce servier, so this must be a very common problem, but the only solutions I can find to it do not apply to our situation.

Thanks again
LR
0
 
LVL 6

Expert Comment

by:matt_beatt
ID: 24057318
I think the key thing to note that it doesnt completely Disable Null base queries it only minimizes the information that it provides.   Run LDP from a laptop or other none domain machine and connect to your server and you'll see that you still get domain information.  Perhaps if you look thru that and find out specifically what the network scan is complaining about.  Whether its a piece of specific information or just the fact the a null connect is givinig out information at all
0
Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

 

Author Comment

by:longrob604
ID: 24057406
Hi Matt

Thanks again. This is specifically what the network scan is complaining about. They don't give any more information

Remedial action: Disable NULL BASE queries on your LDAP server. This issue is only
applicable on internet-facing hosts.
******************************
LDAP Null Base
Improperly configured LDAP servers will allow the directory BASE to
be set to NULL. This allows information to be culled without any prior
knowledge of the directory structure. Coupled with a NULL BIND, an
anonymous user can query your LDAP server using a tool such as
'LdapMiner'. If this is an internal scan, and the system is a Windows
Active Directory server, this is normal behavior and there is nothing to
do.
************************
and
***********************
LDAP Bind Overflow
Improperly configured LDAP servers will allow any user to connect to
the server and query for information.
Remedial action: Disable NULL BIND on your LDAP server
***********************

BTW, It is not an internal scan - they have done this scan from the internet.

Thanks in adavce
LR
0
 
LVL 6

Accepted Solution

by:
matt_beatt earned 500 total points
ID: 24057428
Why do you need to have access to this server from the internet on port 389/tcp?  If you lock your firewall down so that access via the internet was not available then you wouldnt get this error
0
 

Author Comment

by:longrob604
ID: 24057636
Hi again Matt. That may be a great solution. I will investigate !
0

Featured Post

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us in IT utilize a combination of roaming profiles and folder redirection to ensure user information carries over from one workstation to another; in my environment, it was to enable virtualization without needing a separate desktop for each…
SHARE your personal details only on a NEED to basis. Take CHARGE and SECURE your IDENTITY. How do I then PROTECT myself and stay in charge of my own Personal details (and) - MY own WAY...
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question