TorrentFreak

The place where breaking news, BitTorrent and copyright collide

TorrentTrader Classic Vulnerable to IP Authorization Bypass

A security researcher has found a vulnerability in the TorrentTrader tracker software which can be exploited to leak the contents of a site’s IP database. This database can then be used to gain unauthorized access to a site’s tracker. The vendor has been informed and a fix is available.

Security researcher Charles Vaughn graduated with a software engineering degree from University of Texas at Arlington, and he now ‘pays his bills’ with general Unix application server stuff. Recently, Vaughn decided to take a look at the frequently used BitTorrent tracker TorrentTrader.

“My passion is security, and I decided to get my hands dirty by auditing a code base. I picked Torrent Trader because it powers a website I use day to day, and the source is freely available,” Charles told us.

His efforts weren’t in vain, as Vaughn has found a significant vulnerability in the TorrentTrader Classic, which makes it possible for outsiders to see what files are traded, and by whom.

Written in PHP, TorrentTrader requires users to log in to download a torrent. At this point the IP address of the user is logged and only that IP may be used by the user to join the swarm. Charles has discovered that by exploiting a SQL injection hole in scrape.php, it is possible to get a list of all IPs in a torrent site’s database.

“It took me about a day to identify the scrape.php issue. This was done by searching through the code base for mysql calls, then backtracking any variables to see if they were used in an unsafe manner,” Vaughn said.

For the technically minded, Charles explains how the exploit works: “Scrape.php responds to scrape requests from the BitTorrent clients. It can generate two different responses. If called directly it will list all torrents and their status on the tracker. If called with a specific torrent hash, it will return the status for that torrent.”

“The problem is that TorrentTrader didn’t sanitize the input, and only checked to make sure that it was exactly 40 characters. The input was then passed directly to a database query. By putting in additional SQL in the info hash, and making sure it was 40 characters, it was possible to gain access to certain parts of the database.”

“Perhaps the biggest implication for this attack is that an outsider can view the IP addresses of who is using the tracker and which peers are sharing which files,” Vaugn concludes.

Tracker administrators can close the hole by replacing their scrape.php with the one found in the v1.08 release. Better safe than sorry.

Related Posts

Previous Post | Next Post

  • Mediaget
  • Download Torrents with BTguard

NewsBits

The latest news from around the web, not covered on the frontpage

  • RIAA: “Misinformation May Be a Dirty Trick, But It Works.”

    For years the RIAA has tried to convince the world that piracy is killing musicians. Supported...

  • Russia’s Largest BitTorrent Tracker Under Huge DDoS Attack

    RUTracker, Russia’s largest BitTorrent tracker, has been dealing with the effects of a DDoS attack over...

  • Reddit and WordPress Urge Congress to Shelve SOPA/PIPA

    A coalition of 70 groups, including Reddit and WordPress, are asking Congress to stop working on...

  • Turbobit.net Blocks US Visitors After MegaUpload Shutdown

    In the aftermath of the MegaUpload shutdown, file-hosting sites continue to change their services. After Uploaded.to,...

  • QuickSilverScreen Streaming Links Site Calls It Quits

    In the wake of the Megaupload raids and attacks on domains in the US and elsewhere,...

MostDiscussed

Below are TorrentFreak's most discussed articles of the past month. Join the discussion if you like.

CopyQuote

Left Quote

“The Pirate Bay has been one of the most important movements in Sweden for freedom of speech, working against corruption and censorship.

Peter Sunde Left Quote

RecommendedArticles

A selection of some TorrentFreak's classics dug up from our archives.