YouPHPTube /objects/commentAddNew.json.php comments_id SQL injection vulnerability
An authenticated SQL injection vulnerability exists in the comments_id parameter of YouPHPTube's commentAddNew.json.php endpoint. An attacker could exploit this to exfiltrate database contents, including user credentials, and potentially access the underlying operating system.
Originally disclosed on Cisco Talos
An exploitable SQL injection vulnerability exists in the authenticated portion of YouPHPTube 7.6. Specially crafted web requests can cause SQL injections.
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
Likely the application fails to sanitise or parameterise the comments_id parameter before using it in an SQL query.
Impact
An attacker could exfiltrate the database, including user credentials, and in certain configurations gain access to the underlying operating system.
What the attacker needed
Authenticated user account
The fix
The vendor patched the vulnerability, but the text does not describe the fix; it should be fixed by using parameterised queries or properly escaping the comments_id input.
How it was found
- Authenticate to the YouPHPTube application.
- Send a POST request to /objects/commentAddNew.json.php with a crafted comments_id parameter containing SQL injection.
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.
SQL injection is when user input is inserted into a database query without proper handling, letting an attacker change the query's meaning. Here, a logged-in user can send a crafted value in the comments_id field to make the database reveal information like usernames and password hashes.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.