YouPHPTube /objects/pluginSwitch.json.php Multiple SQL Injection Vulnerabilities
Three parameters in the pluginSwitch endpoint of YouPHPTube were passed into SQL queries without proper neutralisation, so an authenticated attacker could inject SQL. This could allow exfiltration of the database, user credentials and, in some configurations, access to the underlying operating system.
Originally disclosed on Cisco Talos
Exploitable SQL injection vulnerabilities exists in the authenticated part 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 built SQL queries by concatenating the uuid, name and dir request parameters directly, without parameterised queries or escaping.
Impact
An authenticated attacker could read database contents such as usernames and password hashes and, in certain configurations, gain access to the underlying operating system.
What the attacker needed
A valid authenticated session
The fix
The vendor patched the issue; the underlying fix should be to use parameterised queries or proper escaping for these parameters.
How it was found
- Log in to YouPHPTube so a valid session cookie is available.
- Send a POST request to the pluginSwitch endpoint with the uuid, name, dir and enable fields.
- Place an SQL injection payload in the uuid, name or dir field to trigger the 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 placed into a database query without being cleaned, so the input can change the query itself. Here a logged-in user could send crafted values in three form fields and make the database return or leak data it should not. The report says this could expose 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.