Hi,
you mean someone tampered with the class library??
You are absolutely right - just like someone who modified your OS system
files....
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
> Can't all the properties of these classes be extremely easily
> overridden using reflections? This would make even an amateur
[quoted text clipped - 19 lines]
>>>>
>>>> --Brian
The application isn't a library, so I'm not too worried about someone
hacking it that way. (Side note, it wouldn't automatically fool the
application, since the username would still need to be valid and there
are role names that also are specified).
I'm more interested if someone can just edit the registry to fake out
the username property.
--Brian
> Can't all the properties of these classes be extremely easily overridden
> using reflections? This would make even an amateur programmer using your
> assemblies capable of fooling the security strategy very easily would it?
Dominick Baier [DevelopMentor] - 26 Jan 2006 16:31 GMT
Hi,
WindowsIdentity.GetCurrent() inspects the Windows Token that is attached
to the process - this contains the security relevant information about the
user that has started the process.
No registry involved...
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
> The application isn't a library, so I'm not too worried about someone
> hacking it that way. (Side note, it wouldn't automatically fool the
[quoted text clipped - 10 lines]
>> programmer using your assemblies capable of fooling the security
>> strategy very easily would it?
Brian P - 26 Jan 2006 19:51 GMT
That's perfect!
If only everything was so easy...
--Brian
> Hi,
> WindowsIdentity.GetCurrent() inspects the Windows Token that is attached
[quoted text clipped - 21 lines]
>>> programmer using your assemblies capable of fooling the security
>>> strategy very easily would it?