Traq <= 2.3 Authentication Bypass / PHP Code Injection Vulnerability
The admin authentication function in Traq did not properly restrict admin rights, letting a remote attacker bypass authentication and reach admin functionality. That access could then be used to execute arbitrary PHP code.
karmainsecurity.com
Published on karmainsecurity.com
Traq contains a flaw that allows a remote attacker to execute arbitrary PHP code. The flaw is caused due to admin rights not properly being restricted in the authenticate() function defined in admincp/common.php.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the authenticate() function in admincp/common.php did not correctly verify that the current user held administrator rights before granting access to admin functionality.
Impact
A remote attacker could bypass authentication, access admin functionality and execute arbitrary PHP code on the server.
What the attacker needed
Remote access to the Traq instance
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Traq is a web application, and its admin area is supposed to be reachable only after logging in as an administrator. The check that decides whether someone is an admin was flawed, so a remote person could get into admin pages without proper rights. Once inside, they could make the server run PHP code of their choosing, which is code the server executes.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.