YouPHPTube <= 7.7 (getChat.json.php) SQL Injection Vulnerability
User input passed through the live_stream_code POST parameter to the LiveChat plugin endpoint is not properly sanitised before being used in a SQL query. A malicious user could read sensitive data from the database through in-band SQL injection.
karmainsecurity.com
Published on karmainsecurity.com
User input passed through the “livestreamcode” POST parameter to /plugin/LiveChat/getChat.json.php is not properly sanitized before being used to construct a SQL query. This can be exploited by malicious users to e.g. read sensitive data from the database through in-band SQL Injection attacks.
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 live_stream_code POST parameter is concatenated into a SQL query without parameterisation or escaping.
Impact
A malicious user could read sensitive data from the database through in-band SQL injection, but only if the Live Chat plugin is enabled, which is not the default.
What the attacker needed
Live Chat plugin enabled (not default); Ability to send POST requests
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.
The application takes a value from a form field and pastes it directly into a database command without cleaning it first. An attacker can type database instructions into that field, and the database will run them, letting the attacker read data they should not see. 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.