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

ID EDB-ID:35109
Type exploitdb
Reporter c0de Hunters
Modified 2010-12-13T00:00:00


PHP TopSites 2.1 'rate.php' Cross Site Scripting and SQL Injection Vulnerabilities. Webapps exploit for php platform


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. 

The following example URIs are available:,,0x7e,top_user.password%29,0x7e%29%20FROM%20%60topfunsites_com_-_topsites%60.top_user%29%20,null%20and%20%27x%27=%27x"'><script>alert('xss')</script>