PHP Code Snippet Library Input Validation Error Permits Cross-Site Scripting Attacks
|
|
SecurityTracker Alert ID: 1011057
|
|
SecurityTracker URL: http://securitytracker.com/id?1011057
|
|
CVE Reference: GENERIC-MAP-NOMATCH
(Links to External Site)
|
Date: Aug 25 2004
|
Impact: Disclosure of authentication information, Disclosure of user information, Execution of arbitrary code via network, Modification of user information
|
Exploit Included: Yes
|
Description: An input validation vulnerability was reported in PHP Code Snippet Library. A remote user can conduct cross-site scripting attacks.
Nikkyt0x reported that the software does not properly filter HTML code from user-supplied input in the 'cat_select' and 'show' parameters.
A remote user can create a specially crafted URL that, when loaded 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 PHP Code Snippet Library 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.
Some demonstration exploit URLs are provided:
http://[target]/[path]/index.php?cat_select=[XSS]
http://[target]/[pat
h]/index.php?cat_select=[XSS]&show=[XSS]
The original advisory is available at:
http://nikyt0x.webcindario.com/0001.txt
|
Impact: A remote user can access the target user's cookies (including authentication cookies), if any, associated with the site running the
PHP Code Snippet Library 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.
|
Solution: No solution was available at the time of this entry.
|
Vendor URL: www.php-csl.com/snippets/ (Links to External Site)
|
Cause: Input validation error
|
Underlying OS: Linux (Any), UNIX (Any), Windows (Any)
|
Reported By: Nikyt0x Argentina <nikyt0x@hotmail.com>
|
Message History:
None.
|
Source Message Contents
|
Date: 24 Aug 2004 22:04:46 -0000
From: Nikyt0x Argentina <nikyt0x@hotmail.com>
Subject: PHP Code Snippet Library Multiple Cross-Site Scripting (XSS)
|
[Nikkyt0x Advisory]
#0000-0001
[PHP Code Snippet Library Multiple Cross-Site Scripting (XSS) Vulnerabilities]
Software: PHP Code Snippet Library
Vendor: http://www.php-csl.com/
Date: 24/08/2004
Author: Nikyt0x [ nikyt0x@hotmail.com ]
Site: http://nikyt0x.webcindario.com
Advisory URL: http://nikyt0x.webcindario.com/0001.txt
Vamos Argentina !
[ Description ]
It was designed to help PHP programmers store commonly
used code in a central repository. Code can be stored
in categories for easy managment.
[ Vulnerability ]
PHP Code Snippet Library not have html filters in:
>cat_select
>show
[ Proof of concept ]
http://localhost/[path]/index.php?cat_select=[XSS]
http://localhost/[path]/index.php?cat_select=[XSS]&show=[XSS]
Example:
http://nikyt0x.webcindario.com/1.jpg
|
|