SQL Injection leading to authorization bypass in Torrent Trader Classic v1.08 and earlier



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



Relevant Pages

  • Re: Para Fortinbras
    ... pues ya viene con un torrent. ... Un abrazo ... -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ...
    (soc.culture.argentina)
  • Re: Using Dime
    ... >>> BitTorrent client, and now I'm trying to download the Grand Rapids ... Just grab a torrent client, ... > get fustrated by a slow d/l speed) and give it a whirl. ...
    (rec.music.artists.springsteen)
  • [OT] [announce] Lisp Pron
    ... client so that anyone with a torrent client can download the movies. ... The tracker and seed clients are running in the back ground but are ... This post uses 100% post consumer electrons and 100% virgin photons. ...
    (comp.lang.lisp)
  • Re: [opensuse] Opensuse-11-beta2-DVD-delta.iso
    ... Since IBM is restricted to use Torrent as client, i am unable to get the ... KDE 4.0 ISN'T anywhere near ready for prime time - way too many bugs and features missing like not being able to hide the taskbar.....based on the 64-bit live CD I played with. ... After that there is little difference between 10.3 and 11.0 as far as I am concerned -- except in the negative direction because some of the KDE3 is now more KDE4 oriented, and that is a negative and not a positive :-( . ...
    (SuSE)
  • Re: Using Dime
    ... >> BitTorrent client, and now I'm trying to download the Grand Rapids ... >thing over the Thanksgiving Break (which is sort of just around the ... Just grab a torrent client, ...
    (rec.music.artists.springsteen)