SQL Injection leading to authorization bypass in Torrent Trader Classic v1.08 and earlier
- To: bugtraq@xxxxxxxxxxxxxxxxx
- Subject: SQL Injection leading to authorization bypass in Torrent Trader Classic v1.08 and earlier
- From: "Charles Vaughn" <cvaughn@xxxxxxxxx>
- Date: Sat, 31 May 2008 22:04:30 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=YyFIEmhABESnrC2eFZ4uNUZ+ewKG0BeOrtaZ0IipYiM=; b=FMBWo1SXGIcpEC3GZB0vd1CxaYqxaat7Iuxfo9IC3BGItFzz+6VGTN0j95MmhCtuzp3PNxfmXtAeLgmocQXzb4/LDSgtBNW3HY+6+Y4XlPg0JxmVI/H4ZBQW5Wq1msFihawjXY0AKoA1nkX4RLb9qAzdjpTaAgjUUpJXmTRFgQQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=s8U2o7qw5W+Ll/69zbTIxs8s70NDVJPrVA9GT6xjdHxmAingMfsrulfq2B7Obeb1w6l5c70kur8JsEEcx6LC6s+87XnymMJwVaeYg/PdcXlTX/VXLwQnf2fl+av59nUzhwDBJ4KO4LZqaX+Xkyfws/tbDmqDaQVGo/3yvzBv6Xc=
- List-help: <mailto:bugtraq-help@securityfocus.com>
- List-id: <bugtraq.list-id.securityfocus.com>
- List-post: <mailto:bugtraq@securityfocus.com>
- List-subscribe: <mailto:bugtraq-subscribe@securityfocus.com>
- List-unsubscribe: <mailto:bugtraq-unsubscribe@securityfocus.com>
- Mailing-list: contact bugtraq-help@xxxxxxxxxxxxxxxxx; run by ezmlm
SQL Injection leading to authorization bypass in Torrent Trader
Classic v1.08 and earlier
# Discovered by: Charles Vaughn (cvaughn@xxxxxxxxx)
# Software: http://sourceforge.net/projects/torrenttrader
# Status: Vendor Notified, updated version available
# Vulnerability
TorrentTrader is a popular torrent tracker platform written in PHP.
In order to download a restricted torrent, a user must first log into
the application. Their IP is then stored in the permissible users.
When their bittorrent client connects, this IP is checked against the
allowed clients.
It is possible to get a list of all IPs in the client database,
through a SQL injection hole in scrape.php.
http://www.example.com/scrape.php?info_hash=%22union%20select%201,1,1,1,ip%20from%20users--%20%20%20
An attacker can use a local proxy or other means to include either
HTTP_X_FORWARDED_FOR or HTTP_CLIENT_IP header into their bittorrent
clients requests, along with a chosen IP address to masquerade as.
The user then has the ability to use the tracker as a normal user.
Resolution: Upgrade or copy over the scrape.php from the May 2008
release of v1.08