vendor:
TorrentFlux
by:
r0ut3r
7,5
CVSS
HIGH
Command Execution
78
CWE
Product Name: TorrentFlux
Affected Version From: 2.2
Affected Version To: 2.2
Patch Exists: YES
Related CWE: N/A
CPE: a:torrentflux:torrentflux:2.2
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2006
TorrentFlux 2.2 Command Execution Exploit
The variable announce in maketorrent.php is not sanitised before being used. The announce variable goes through various stages throughout the script, then it is passed as a into an exec() function. This occurs in the middle of the string which is passed to the exec() function. Therefore it is possible to stop the current stop by starting with ; then by ending your command with ; (to avoid the other data TorrentFlux adds after the announce variable). No data is returned to the user when they use this exploit, so it is hard to tell if the script is vulnerable, and the use of htmlspecialchars() tends to make things much hard since chracters like < and > dont work.
Mitigation:
Sanitize user input before passing it to exec() function.