Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Torrent Trader 1.07 Vunerability
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / General / General Chat

Unknown User
2009-04-16 00:18:14
Some vulnerabilities have been discovered in TorrentTrader, which can be exploited by malicious users to conduct script insertion attacks.



Input passed to the "avatar" and "title" form field parameters in account_settings.php is not properly sanitised before being stored. This can be exploited to insert arbitrary HTML and script code, which is executed in an administrative user's browser session in context of an affected site when the malicious user's settings are being viewed in account-details.php.



The vulnerabilities are confirmed in version 1.07. Other versions may also be affected.

in TorrentTrader Classic, which can be exploited by malicious users to conduct SQL injection attacks.



Input passed to the "id" parameter in completed-advance.php is not properly sanitised before being used in SQL queries. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.



Successful exploitation requires valid user credentials.



The vulnerability is confirmed in version 1.08 and reported in version 1.04. Other versions may also be affected.
Unknown User
2009-04-16 00:56:14
completed-advance.php, find:

" . $_GET[id] . "
replace with:


".intval($_GET["id"])."



find:



" . $_GET[id])



replace with:



".intval($_GET["id"]))





account-settings.php, find:



  $avatar = $_POST["avatar"];

 $title = $_POST["title"];



replace with:



  $avatar = strip_tags($_POST["avatar"]);

 $title = strip_tags($_POST["title"]);



Updating zip now...
Unknown User
2009-04-16 11:55:02
this should also be updated in V2 right?
Unknown User
2009-04-16 12:03:46
the title and avatar input boxes are biggest for text for a sql injection so yh u could update them in v2 if its not done already
Unknown User
2009-04-16 12:34:06
the V2.5 that i have still uses what is below

$avatar = $_POST["avatar"];

 $title = $_POST["title"];

 $signature = $_POST["signature"];
Unknown User
2009-04-16 12:44:17
$avatar = strip_tags($_POST["avatar"]);

$title = strip_tags($_POST["title"]);

$signature = strip_tags($_POST["signature"]);
Unknown User
2009-04-16 12:47:22
v2 SVN has just been updated.
Unknown User
2009-04-16 12:50:57
why not use the function unesc() which is in functions.php and is used for the torrent name in torrents-upload.php
Unknown User
2009-04-16 12:52:09
because unesc() only does stripslashes. it doesn't remove HTML, that's what strip_tags() is for.
Unknown User
2009-04-16 12:53:52
"TorrentialStorm, post: 56496":
because unesc() only does stripslashes. it doesn't remove HTML, that's what strip_tags() is for.

ok thanks so your saying that if somebody decides to put a different torrent name for the torrent then the html tags are not stripped?
Unknown User
2009-04-16 12:58:29
they're not stripped, but when it's displayed it uses htmlspecialchars()
Unknown User
2009-04-16 13:04:26
if i find anymore ill add them to list for us to look at  :D
Unknown User
2009-04-16 13:05:20
ok a bit confusing but i do understand a bit more. most things in the account details use htmlspecialchars() to be displayed that is why i am a bit confused lol
Unknown User
2009-04-16 13:16:36
strip_tags() does not actually validate the HTML, partial, or broken tags can result in the removal of more text/data than expected.

which is good :D
Unknown User
2009-04-25 20:58:34
thank you torrential for this update.  :)
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728