Help
-
Search
-
Member List
-
Calendar
Full Version:
Vulnerability In Network Query Tool (nqt)
GovernmentSecurity.org
>
The Archives
>
Exploit Articles
qcred11
Apr 25 2004, 06:16 AM
QUOTE
XSS and full path disclosure in Network Query Tool 1.6
{===============================================================================
=}
Author: Janek Vind "waraxe"
Date: 23. April 2004
Location: Estonia, Tartu
Affected software description:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This script takes a given hostname or IP address and attempts to
look up all sorts of information about that address. Basically
it does what network-tools.com does, without all the ads and ASP
COPYRIGHT shaun@shat.net
Homepage:
http://www.shat.net/php/nqt/
Vulnerabilities:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A. Full path disclosure:
A1 - unchecked user submitted variable "portNum"
If we make http request like this:
http://localhost/nqt.php?target=foobar.com...&portNum=foobar
... then we will see standard php error messages, revealing full path to script:
Warning: fsockopen() expects parameter 2 to be long, string given in D:\apache_wwwroot\nqt.php on lin
e 305
Port foobar does not appear to be open.
Reason is, that script does not check validity of the portNum, which must be integer in range of 1..6
5535.
B. Cross-site scripting aka XSS
B1 - XSS through unsanitaized user submitted variable "portNum"
http://localhost/nqt.php?target=foobar.com...&portNum=foobar
[xss code here]
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here
.
Invision Power Board © 2001-2005
Invision Power Services, Inc.