Roger
Sat Feb 24 18:59:34 CST 2007
"Roger Abell [MVP]" <mvpNoSpam@asu.edu> wrote in message
news:eXqkc9GWHHA.5060@TK2MSFTNGP06.phx.gbl...
> "Will" <westes-usc@noemail.nospam> wrote in message
> news:FdydnQHbRujLMn3YnZ2dnUVZ_vGinZ2d@giganews.com...
>> "Roger Abell [MVP]" <mvpNoSpam@asu.edu> wrote in message
>> news:%23jzxPUCWHHA.1360@TK2MSFTNGP02.phx.gbl...
>>> > The behavior of the four GPOs that allow you to specify anonymous
>>> > access
>>> > to
>>> > named pipes, shares, and registry paths are very misleading. You
>> select
>>> > a
>>> > checkbox to make an explicit selection. You then delete the contents
>> and
>>> > apply or save. Now when you open it again, Windows has AUTOMATICALLY
>>> > populated it for you!!
>>> >
>>> > So by doing the above action, you incorrectly believe you are
>>> > explicitly
>>> > setting these to null values, when in fact your action has 180 degrees
>> the
>>> > opposite effect and blanking the list implicitly enables every
>>> > anonymous
>>> > access! It's a very bad UI design.
>>> >
>>> > I guess the absence of any setting means a null list? That's also
>>> > not
>>> > clear.
>>>
>>> I believe that is a known bug - at what OS rev do you experience as
>>> such?
>>> Not sure, but I thought I saw a KB related some time back.
>>
>> I saw this behavior on Windows 2003 with SP1 and all Windows Update
>> patches
>> through last Friday applied.
>>
>> So at this point I am pretty much baffled. The only way to null out the
>> lists of anonymous entities through GPO is to select the checkboxes and
>> explicitly empty the contents of the lists (of anonymous pipe, shares,
>> registry paths and subpaths). But doing that has precisely the opposite
>> effect and the entities are silently repopulated and in fact you end up
>> forcing the exposure of anonymous entities by virtue of the checkbox.
>> I
>> can't imagine a more serious bug, short of one that stops the OS from
>> booting.
>>
>> It almost feels safer to run with nothing selected since GPO has a bug
>> (apparently) and empty out the registry entries manually. Does anyone
>> know which four registry entries contain the lists that correspond to
>> those
>> GPOs? I'll go look for those in Windows 2000 as well and post the
>> result
>> of what happens when I empty those on a Windows 2000 DC. Probably
>> something there will break. Fortunately, we do not have multi-domain
>> forests and I could even live without trusts if push came to shove.
>>
> I am not sure but that the repopulation is just happening when the
> policy is edited but that the edit emptying it saves correctly.
>
> Remember, these are saved into sce's persisted structures, and will
> only show in registry after policy is applied.
>
> The keys for almost anything in the Security Settings section of
> policy can be located by use on notepad with sceregvl.inf file.
> Worse come to worse, search on the display string used in UI,
> then on its %substitution string% in strings section then search
> on that
>
> MACHINE\System\CurrentControlSet\Control\Lsa\RestrictAnonymous,4,%RestrictAnonymous%,0
> MACHINE\System\CurrentControlSet\Control\Lsa\RestrictAnonymousSAM,4,%RestrictAnonymousSAM%,0
> MACHINE\System\CurrentControlSet\Control\SecurePipeServers\Winreg\AllowedPaths\Machine,7,%AllowedPaths%,4
> MACHINE\System\CurrentControlSet\Services\LanManServer\Parameters\NullSessionPipes,7,%NullPipes%,4
> MACHINE\System\CurrentControlSet\Services\LanManServer\Parameters\NullSessionShares,7,%NullShares%,4
>
>
Here is the other, which is curiously not present in the XP sceregvl.inf
and hence not available for use in an editing governed by it
MACHINE\System\CurrentControlSet\Services\LanManServer\Parameters\RestrictNullSessAccess,4,%RestrictNullSessAccess%,0
I find that omission troubling as it is the enabling setting for the
ones that are present.
Notice the comment in the Threats and Countermeasures Guide about it
<quote>
When enabled, this policy setting restricts anonymous access to only those
shares and pipes that are named in the Network access: Named pipes that
can be accessed anonymously and Network access: Shares that can be a
ccessed anonymously settings. This policy setting controls null session
access to shares on your computers by adding RestrictNullSessAccess
with the value 1 in the registry key
HKLM\System\CurrentControlSet\Services\LanManServer\Parameters.
This registry value toggles null session shares on or off to control whether
the server service restricts unauthenticated clients' access to named
resources.
</quote>
http://www.microsoft.com/technet/security/guidance/serversecurity/tcg/tcgch05n.mspx
You might want to read comment on some of the others, as for a couple
the W2k equivalents are mentioned. Also, the list of named pipes the
Guide shows (incomplete) is termed the "Default Named Pipes",
whatever that is actually intended to mean (populate policy setting
whenever edited in a GPO despite it having previously been edited
and set to empty by intent).
The comment on the default setting being same as recommended setting
for anonymously accessible shares is also wrong, if you notice.
Needless to say, next time there is a call for review of the Guide, getting
more clarity on these types of questions is on my list of things to push for
(most of last time did result in some changes so perhaps it will improve).