Willem Odendaal

the coder's point of view

<October 2008>
SuMoTuWeThFrSa
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678


Navigation

I Read

Subscriptions

Post Categories



Spoofing LOGON_USER

When an IIS web application has "Integrated Windows authentication" enabled and “Enable anonymous access” is disabled, the LOGON_USER server variable will contain the name of the user accessing the website.

I wasn't sure if this method is really secure. Can't the LOGON_USER server variable be modified? These are my findings -

  1. IE will try to authenticate the user by hashing the username and password and sending it to the server.
  2. The server will then compare the hashes to the user on the domain.
  3. If the hashes match, the user has been authenticated successfully.

Note that no passwords are passed directly. Also, because both the username and password are hashed, it's not possible to simply spoof the username. You need the password as well.

Sounds pretty secure to me.

posted on Thursday, May 05, 2005 3:57 AM by willemo





Powered by Dot Net Junkies, by Telligent Systems