<<< Date Index >>>     <<< Thread Index >>>

Secunia Research: TorrentTrader Multiple SQL Injection Vulnerabilities



======================================================================

                     Secunia Research 18/06/2008

       - TorrentTrader Multiple SQL Injection Vulnerabilities -

======================================================================
Table of Contents

Affected Software....................................................1
Severity.............................................................2
Vendor's Description of Software.....................................3
Description of Vulnerability.........................................4
Solution.............................................................5
Time Table...........................................................6
Credits..............................................................7
References...........................................................8
About Secunia........................................................9
Verification........................................................10

======================================================================
1) Affected Software

* TorrentTrader 1.08 Classic Edition downloaded before 2008-06-17

NOTE: Other versions may also be affected.

======================================================================
2) Severity

Rating: Moderately Critical
Impact: Exposure of sensitive information
        Manipulation of data
Where:  Remote

======================================================================
3) Vendor's Description of Software

"TorrentTrader is a feature packed and highly customisable PHP/MySQL
Based BitTorrent tracker. Featuring intergrated forums, and plenty
of administration options."

Product Link:
http://www.torrenttrader.org/

======================================================================
4) Description of Vulnerability

Secunia Research has discovered some vulnerabilities in TorrentTrader,
which can be exploited by malicious people and malicious users to
conduct SQL injection attacks.

1) Input passed to the "email" and "wantusername" parameters in
account-signup.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 of this vulnerability allows e.g. retrieval of
administrator password hashes, but requires that "magic_quotes_gpc" is
disabled and that the site is not configured as invite-only.

2) Input passed to the "receiver" parameter in account-inbox.php (when
"msg" is set) 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 of this vulnerability requires valid user
credentials and that "magic_quotes_gpc" is disabled.

======================================================================
5) Solution

Update to TorrentTrader 1.08 Classic Edition downloaded on 2008-06-17
or later.

======================================================================
6) Time Table

10/06/2008: Contacted the vendor.
17/06/2008: Contacted the vendor again.
17/06/2008: Vendor asks for PoC.
17/06/2008: Sent PoC to the vendor.
17/06/2008: Vendor releases a fixed version.
18/06/2008: Public disclosure.

======================================================================
7) Credits

Discovered by Secunia Research.

======================================================================
8) References

The Common Vulnerabilities and Exposures (CVE) project has assigned
CVE-2008-2428 for the vulnerabilities.

======================================================================
9) About Secunia

Secunia offers vulnerability management solutions to corporate
customers with verified and reliable vulnerability intelligence
relevant to their specific system configuration:

http://corporate.secunia.com/

Secunia also provides a publicly accessible and comprehensive advisory
database as a service to the security community and private
individuals, who are interested in or concerned about IT-security.

http://secunia.com/

Secunia believes that it is important to support the community and to
do active vulnerability research in order to aid improving the
security and reliability of software in general:

http://corporate.secunia.com/secunia_research/33/

Secunia regularly hires new skilled team members. Check the URL below
to see currently vacant positions:

http://secunia.com/secunia_vacancies/

Secunia offers a FREE mailing list called Secunia Security Advisories:

http://secunia.com/secunia_security_advisories/

======================================================================
10) Verification

Please verify this advisory by visiting the Secunia website:
http://secunia.com/secunia_research/2008-15/

Complete list of vulnerability reports published by Secunia Research:
http://secunia.com/secunia_research/

======================================================================