TorrentFlux.com Welcome, Guest. Please login or register.
03-20-2010, 17:02:46
Home Help Search Login Register donate
TorrentFlux Home | TorrentFlux Hosting

+  TorrentFlux Forums
|-+  TorrentFlux Support
| |-+  Linux Installations Support
| | |-+  TorrentFlux “startpop.php” “torrent” Script Insertion
« previous next »
Pages: [1] Go Down Print
Author Topic: TorrentFlux “startpop.php” “torrent” Script Insertion  (Read 2002 times)
mnb93
Newbie
*
Offline Offline

TF Base: Linux 2.x
Posts: 6



View Profile
« on: 10-13-2006, 00:25:41 »

TITLE:
TorrentFlux “startpop.php” “torrent” Script Insertion
CRITICAL:
Not Critical

IMPACT:
Cross Site Scripting

WHERE:
From remote

SOFTWARE:
TorrentFlux 2.x

DESCRIPTION:
I have discovered a vulnerability in TorrentFlux, which can be exploited by malicious users to conduct script insertion attacks.

Input passed to the “torrent” field of a GET Request (/startpop.php?torrent=%22%3E%3Cscript%3Ealert(document.cookies);%3C/script%3E.torrent) is not properly sanitised before being used. This can be exploited to insert arbitrary HTML and script code, which will be executed in an user’s browser session in context of an affected site if a user clicks on a malicious link.

The vulnerability has been confirmed in version 2.1. Other versions may also be affected.

SOLUTION:
Edit the source code to ensure that input is properly sanitised.

/startpop.php

Line 36: Change to: $displayName = htmlentities($displayName, ENT_QUOTES);

(Line 36 is normally empty)

Grant only trusted users access to the application

ORIGINAL ADVISORY:
http://www.stevenroddis.com.au/2006/10/13/torrentflux-startpopphp-torrent-script-insertion/


Note to author:
I am guessing your /contact.php script dosn't work anymore, if you would like me to contact you prior to releasing an advisory please PM me with your email.
Logged
Qrome
Administrator
Hero Member
*****
Offline Offline

TF Base: Linux 2.x
Posts: 2783


TorrentFlux.com





View Profile
« Reply #1 on: 10-13-2006, 19:27:22 »


Note to author:
I am guessing your /contact.php script dosn't work anymore, if you would like me to contact you prior to releasing an advisory please PM me with your email.


It works, but you can always send me a PM via this forum.
Logged

Check out the new FireFox Extension by IceWind for TorrentFlux called TorrentFlux Add -- right click on torrents and have them added to your TorrentFlux list.
Pages: [1] Go Up Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by SMF 1.1.1 | SMF © 2006, Simple Machines LLC Powered by PHP