PHPClassifieds Permits Cross-Site Scripting Attacks and Lets Remote Users Inject SQL Commands
|
|
SecurityTracker Alert ID: 1016407
|
|
SecurityTracker URL: http://securitytracker.com/id?1016407
|
|
CVE Reference: CVE-2006-3329
, CVE-2006-3330
(Links to External Site)
|
Updated: Aug 12 2008
|
Original Entry Date: Jun 29 2006
|
Impact: Disclosure of authentication information, Disclosure of system information, Disclosure of user information, Execution of arbitrary code via network, Modification of user information, User access via network
|
Exploit Included: Yes
|
Description: A vulnerability was reported in PHPClassifieds. A remote user can conduct cross-site scripting attacks. A remote user can inject SQL commands.
The software does not properly filter HTML code from user-supplied input when posting a listing before displaying the posted input.
A remote user can submit specially crafted text that, when viewed 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 PHPClassifieds 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.
The 'search.php' script does not properly validate user-supplied input in the 'rate' parameter.
A remote user can supply a specially crafted parameter value to execute SQL commands on the underlying database.
A demonstration
exploit URL is provided:
http://[target]/search.php?rate=[sql]
luny reported this vulnerability.
|
Impact: A remote user can access the target user's cookies (including authentication cookies), if any, associated with the site running the
PHPClassifieds 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.
A remote user can execute SQL commands on the underlying database.
|
Solution: No solution was available at the time of this entry.
|
Vendor URL: www.phpclassifieds.info/ (Links to External Site)
|
Cause: Input validation error
|
Underlying OS: Linux (Any), UNIX (Any), Windows (Any)
|
Reported By: luny@youfucktard.com
|
Message History:
None.
|
Source Message Contents
|
Date: Wed, 28 Jun 2006 20:43:04 +0000
From: luny@youfucktard.com
Subject: PHPClassifieds General
|
PHPClassifieds General v.n/a
Homepage:
http://www.phpclassifieds.info/
Affected files:
search.php
*Posting classified ads
-----------------------------------------
SQL injection on search.php via rate var:
http://www.example.com/search.php?rate=[sql]
-----------------------------------------
XSS vuln when posting a classified ad:
Data isn't sanatized before being generated. For a PoC as a ad enter:
<script>alert('xss')</script>
Screenshots:
http://www.youfucktard.com/xsp/phpclass1.jpg
http://www.youfucktard.com/xsp/phpclass2.jpg
http://www.youfucktard.com/xsp/phpclass3.jpg
|
|