Networking Forums

Networking Forums > Computer Networking > Windows Networking > Anonymous Enumeration of accounts and shares

Reply
Thread Tools Display Modes

Anonymous Enumeration of accounts and shares

 
 
Goo@tuxiecomputing.com
Guest
Posts: n/a

 
      02-20-2005, 06:07 PM
Hi List,

Following a recent upgrade from NT4 to W2K3 Server, I am horrified to
find that anonymous enumeration of groups and shares is still possible
even with the domain GPO and Domain Controller Policy GPO implicitly
denying this mode of access. This is what I did to check this:

I setup an XP client in a seperate workgroup, and on two different
subnets, net use the ipc$ from the command line and scanned the Domain
Controller using languard, languard returns the userlist and the share
list on the DC, much to my horror.

If you dont connect to the ipc$ before running languard it doesn't list
the users or shares. Using the MS baseline scanner states that the
system is not enabled for anonymous access so I am concerned as to why
this behaviour exists. Setting up test network with a fresh install of
W2K3 server and scanning the system as above, I cannot enumerate the
list with or without connecting to ipc$ which is exactly as expected.

Can anyone offer me any advice on this one?
Thanks,
Dave

 
Reply With Quote
 
 
 
 
Steven L Umbach
Guest
Posts: n/a

 
      02-20-2005, 06:51 PM
By default Windows 2003 will only restrict access allow anonymous
enumeration of sam accounts. You might also want to enable the security
option for do not allow anonymous enumeration of sam accounts and shares in
Domain Controller Security Policy. Also make sure that you are indeed using
a null session. You could verify that by going to the domain controller and
using Computer Management looking at shared folders/sessions to see how the
IPC$ connection is being authenticated.

While restricting access for anonymous access to sam/shares makes sense when
it can be done it is part of security through obscurity. A properly
configured firewall will not allow users from untrusted networks to use null
sessions to enumerate user accounts/shares. Ultimately you need to rely on
enforcing strong password policy in the network, share/ntfs permissions,
group membership, user rights, the use of auditing, etc. to protect your
recourses. --- Steve


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
> Hi List,
>
> Following a recent upgrade from NT4 to W2K3 Server, I am horrified to
> find that anonymous enumeration of groups and shares is still possible
> even with the domain GPO and Domain Controller Policy GPO implicitly
> denying this mode of access. This is what I did to check this:
>
> I setup an XP client in a seperate workgroup, and on two different
> subnets, net use the ipc$ from the command line and scanned the Domain
> Controller using languard, languard returns the userlist and the share
> list on the DC, much to my horror.
>
> If you dont connect to the ipc$ before running languard it doesn't list
> the users or shares. Using the MS baseline scanner states that the
> system is not enabled for anonymous access so I am concerned as to why
> this behaviour exists. Setting up test network with a fresh install of
> W2K3 server and scanning the system as above, I cannot enumerate the
> list with or without connecting to ipc$ which is exactly as expected.
>
> Can anyone offer me any advice on this one?
> Thanks,
> Dave
>



 
Reply With Quote
 
greg
Guest
Posts: n/a

 
      02-22-2005, 01:25 PM
"Steven L Umbach" <(E-Mail Removed)> wrote in message news:<#(E-Mail Removed)>...
> By default Windows 2003 will only restrict access allow anonymous
> enumeration of sam accounts. You might also want to enable the security
> option for do not allow anonymous enumeration of sam accounts and shares in
> Domain Controller Security Policy. Also make sure that you are indeed using
> a null session. You could verify that by going to the domain controller and
> using Computer Management looking at shared folders/sessions to see how the
> IPC$ connection is being authenticated.
>

Hello Steve,

Thanks,

I already have the following in both domain controller policy and
doamin policy.
Allow Anonymous SID/Name translation: DISABLED
Do not allow anonymous enumeration of SAM accounts: ENABLED
Do not allow anonymous enumeration of SAM accounts/Shares : ENABLED
Let everyone permissions apply to anonymous users: DISABLED

Which is why I cant understand what is happening here.

> While restricting access for anonymous access to sam/shares makes sense when
> it can be done it is part of security through obscurity. A properly
> configured firewall will not allow users from untrusted networks to use null
> sessions to enumerate user accounts/shares. Ultimately you need to rely on
> enforcing strong password policy in the network, share/ntfs permissions,
> group membership, user rights, the use of auditing, etc. to protect your
> recourses.


I could not agree more, Group policy protects all the workstations,
but the DC is a potential source of failure here. Teh firewall can be
tightened to prevent this happening. SP1 for 2003 is supposed to
implement the WinXP SP/2 firewall so we already have a rule set that
we can apply to the DC's then,

Thanks for your comments,
Dave.
 
Reply With Quote
 
Steven L Umbach
Guest
Posts: n/a

 
      02-22-2005, 06:54 PM
You can't lock down anonymous access any more than that for a Windows 2003
Server. You might want to check Local Security Policy on your Windows 2003
domain controller via secpol.msc to make sure that those security option
settings are being applied. I know that Windows 2000 had a security option
for additional restrictions for anonymous access that could be set to no
access without explicit anonymous permissions. That setting definitely did
block anonymous access so much so that domain networking did not sometimes
work correctly when configured on domain controllers depending on domain
makeup. That option was removed from Windows 2003 probably due to the
experience with Windows 2000. Supposedly do not allow anonymous enumeration
of SAM accounts/Shares was supposed to be as restrictive but I have not
found that to be the case as I can create a null session to Windows 2003
when that security option is enabled via [ net use \\dc1\ipc$ "" /user:"" ].

In my opinion as long as your perimeter firewall is correctly configured
which will prevent users from untrusted networks from using null sessions,
the risk is very low if you enforce complex passwords, etc. The whole null
session vulnerability used to be a big deal a few years back when users had
their computers and networks exposed to the internet without a firewall and
did not enforce strong passwords or did not use passwords at all. Firewalls,
complex password enforcement, and the use of technologies such as ipsec on
the network can effectively mitigate the risk of null sessions. --- Steve


"greg" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> "Steven L Umbach" <(E-Mail Removed)> wrote in message
> news:<#(E-Mail Removed)>...
>> By default Windows 2003 will only restrict access allow anonymous
>> enumeration of sam accounts. You might also want to enable the security
>> option for do not allow anonymous enumeration of sam accounts and shares
>> in
>> Domain Controller Security Policy. Also make sure that you are indeed
>> using
>> a null session. You could verify that by going to the domain controller
>> and
>> using Computer Management looking at shared folders/sessions to see how
>> the
>> IPC$ connection is being authenticated.
>>

> Hello Steve,
>
> Thanks,
>
> I already have the following in both domain controller policy and
> doamin policy.
> Allow Anonymous SID/Name translation: DISABLED
> Do not allow anonymous enumeration of SAM accounts: ENABLED
> Do not allow anonymous enumeration of SAM accounts/Shares : ENABLED
> Let everyone permissions apply to anonymous users: DISABLED
>
> Which is why I cant understand what is happening here.
>
>> While restricting access for anonymous access to sam/shares makes sense
>> when
>> it can be done it is part of security through obscurity. A properly
>> configured firewall will not allow users from untrusted networks to use
>> null
>> sessions to enumerate user accounts/shares. Ultimately you need to rely
>> on
>> enforcing strong password policy in the network, share/ntfs permissions,
>> group membership, user rights, the use of auditing, etc. to protect your
>> recourses.

>
> I could not agree more, Group policy protects all the workstations,
> but the DC is a potential source of failure here. Teh firewall can be
> tightened to prevent this happening. SP1 for 2003 is supposed to
> implement the WinXP SP/2 firewall so we already have a rule set that
> we can apply to the DC's then,
>
> Thanks for your comments,
> Dave.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question on - Network Access: Do not allow anonymous enumeration of SAM accounts and shares Spin Windows Networking 1 04-10-2008 04:44 AM
Access based enumeration Karen Wayland Windows Networking 1 02-12-2008 05:03 AM
Access Based Enumeration FletchInRaleigh Windows Networking 3 09-04-2006 10:48 PM
Access-based Enumeration doesn't work Drew Windows Networking 1 03-20-2006 07:30 PM
enumeration order of eth interfaces doug Linux Networking 12 05-31-2005 07:49 PM



1 2 3 4 5 6 7 8 9 10 11