PhotoADay Module Input Validation Hole Permits Cross-Site Scripting Attacks
|
|
SecurityTracker Alert ID: 1011027 |
|
SecurityTracker URL: http://securitytracker.com/id/1011027
|
|
CVE Reference:
GENERIC-MAP-NOMATCH
(Links to External Site)
|
Date: Aug 23 2004
|
Impact:
Disclosure of authentication information, Disclosure of user information, Execution of arbitrary code via network, Modification of user information
|
Exploit Included: Yes
|
|
Description:
King Of Love from Q8Crackers Crew reported an input validation vulnerability in the 'PhotoADay' PHP-Nuke module. A remote user can conduct cross-site scripting attacks.
It is reported that the software does not properly validate user-supplied input when displaying certain error messages. 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 PhotoADay module 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 URL is provided:
http://[target]/modules.php?name=Photo_A_Day&action=single&pad_selected=44%20UNION%20SELECT%20<script>alert(document.cookie);</script>
|
Impact:
A remote user can access the target user's cookies (including authentication cookies), if any, associated with the site running the PhotoADay module, 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.
[Editor's note: The demonstration exploit no longer works on the vendor's web site. We have contacted the vendor to verify if a fix is available or not.]
|
Vendor URL: www.photoaday.net/ (Links to External Site)
|
Cause:
Input validation error
|
Underlying OS:
Linux (Any), UNIX (Any), Windows (Any)
|
|
Message History:
None.
|
Source Message Contents
|
Date: Sat, 21 Aug 2004 18:57:48 +0000
Subject: Bug in PHP-Nuke
|
when you looking at code :
----------------------------------------------------
unset($matches);
unset($loc);
if (preg_match("/([OdWo5NIbpuU4V2iJT0n]{5}) /",
rawurldecode($loc=$_SERVER["QUERY_STRING"]), $matches)) {
die("YOU ARE SLAPPED BY <a href=\"http://nukecops.com\">NUKECOPS</a> BY
USING '$matches[1]' INSIDE '$loc'.");
}
----------------------------------------------------
we can't find the strip_tags(); in the code
now if you write in any function union select and then the code of xss
... it will work with you
ex:
http://www.photoaday.net/modules.php?name=Photo_A_Day&action=single&pad_selected=44%20UNION%20SELECT%20<script>alert(document.cookie);</script
<http://www.photoaday.net/modules.php?name=Photo_A_Day&action=single&pad_selected=44%20UNION%20SELECT%20<script>alert(document.cookie);</script>>
By Q8Crackers Crew
------------------------------------------------------------------------
Help STOP spam with the new MSN 8
<http://g.msn.com/8HMBEN/2731??PS=47575> and get 2 months FREE*
|
|