Netquery Input Validation Flaw in 'nquser.php' Script in 'User-Agent' Parameter Permits Cross-Site Scripting Attacks
SecurityTracker Alert ID: 1017147|
SecurityTracker URL: http://securitytracker.com/id/1017147
(Links to External Site)
Updated: Nov 10 2006|
Original Entry Date: Nov 1 2006
Disclosure of authentication information, Disclosure of user information, Execution of arbitrary code via network, Modification of user information|
Fix Available: Yes Vendor Confirmed: Yes Exploit Included: Yes |
Tal Argoni (LegendaryZion) reported a vulnerability in Netquery. A remote user can conduct cross-site scripting attacks.|
The 'nquser.php' script does not properly filter HTML code from user-supplied input in the HTTP Header 'User-Agent' value before displaying the input. A remote user can create a specially crafted request that, when submitted by a target user, will cause arbitrary scripting code to be executed by the target user's browser. The code will originate from the site running the Netquery software and will run in the security context of that site. As a result, the code will be able to access the target user's cookies (including authentication cookies), if any, associated with the site, access data recently submitted by the target user via web form to the site, or take actions on the site acting as the target user.
A demonstration exploit header excerpt is provided:
GET http://[target]/netquery/nquser.php HTTP/1.0
A remote user can access the target user's cookies (including authentication cookies), if any, associated with the site running the Netquery software, access data recently submitted by the target user via web form to the site, or take actions on the site acting as the target user.|
The vendor has issued a fix. For versions downloaded on or prior to November 10, 2006, a patch is also available.|
Vendor URL: www.virtech.org/tools/ (Links to External Site)
Input validation error|
|Underlying OS: Linux (Any), UNIX (Any), Windows (Any)|
Source Message Contents
Subject: Cross Site Scripting (XSS) Vulnerability in Netquery by|
Issue: Cross Site Scripting (XSS) Vulnerability in Netquery by "VIRtech"
Discovered Date: 04/10/2006
Author: Tal Argoni, LegendaryZion. [talargoni at gmail.com]
Product Vendor: http://www.virtech.org
VIRtechs Netquery system is prone to a Cross Site Scripting Vulnerability.
The vulnerability exists in "nquser.php" file, caused by the lack of Input Validation/Filtering
of quotation and HTML characters in the header parameter "User-Agent:".
Part of the http header:
GET http://target/netquery/nquser.php HTTP/1.0
After send the crafted http header, nquser.php prints the following HTML code:
User Agent : <script>alert('User-Agent:')</script><br />
Successful exploitation may allow execution of script code. This could also be exploited to spoof the entire website's content,
create fake login menu's for all the platform's users, commit Denial Of Service attacks and more...
Proof Of Concept:
GET http://virtech.org/e107/e107_plugins/netquery/nquser.php HTTP/1.0
Cookie: e107_tdOffset=32630; e107_tdSetTime=1159974893; e107_tzOffset=420
Not vulnerable systems:
Tal Argoni, CEH