|
|||||||||||
|
Domain Name Forging On Authentication Prompt
From: Brett Moore <brett.moore(at)security-assessment.com>
Date: Thu May 08 2003 - 22:43:31 EDT Domain Name Forging On Authentication Prompt Tested under
When browsing to a folder/file that is protected by BASIC or NTLM authentication a window is displayed to the user, prompting for user credentials. +------------------------------------------+
It is possible to use the Msxml2.XMLHTTP object to create a login box and set the realm to an arbitrary value. Using the object to make a request to a URI that requires authentication and setting the HOST header to a domain of our choosing, the login prompt will be displayed using the HOST header value as the realm.
Aulthough the SITE displayed will be the IP of the URI (xxx.xxx.x.xx),
unwary
By running a sniffer on the machine hosting the protected folder, it is
possible to sniff the BASIC authorization string, which in turn can be
base64
This could be made more effective by using XSS to have the script appear to be running from a valid domain. The sample script below should be enough to demonstrate. Note: To bypass IE domain restrictions the ip of the protected folder needs to be the same as the site hosting the script.
[Code Sample]
Set myhttp=CreateObject("Msxml2.XMLHTTP") myhttp.open "GET", " http://xxx.xxx.x.xx/_vti_bin/_vti_adm/admin.dll", false myhttp.setRequestHeader "Host", "secure.foo.bar" myhttp.send
set myhttp = Nothing
This issue is probably by design and as such the problem is with the end
user
Brett Moore
This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:38 EDT |
||||||||||
|
|||||||||||