coTURN Administrator Web Portal SQL injection vulnerability
The coTURN administrator web portal builds an SQL query by inserting the submitted username directly into the statement, so a crafted login can return an arbitrary password and bypass authentication. An attacker could then access the administrator portal, even when it is deactivated, and reactivate it.
Originally disclosed on Cisco Talos
An exploitable SQL injection vulnerability exists in the administrator web portal function of coTURN prior to version 4.5.0.9. A login message with a specially crafted username can cause an SQL injection, resulting in authentication bypass, which could give access to the TURN server administrator web portal.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The username from the login request is inserted into an SQL statement without sanitisation or parameterisation.
Impact
An attacker could bypass authentication and gain access to the administrator web portal, potentially reactivating it even when deactivated, which may allow firewall bypass and further attacks.
What the attacker needed
Network access to the TURN server's admin portal; No authentication required
The fix
The vulnerability was fixed in coTURN [redacted] by properly neutralising special elements in the SQL command, likely through parameterised queries.
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 report has not been written yet. The Original tab links to the source.
The login page takes what you type as a username and pastes it straight into a database command. By typing special database characters, an attacker can change that command so the database returns a password the attacker already knows, letting them log in without knowing the real one. This is called SQL injection.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.