Skip to content
SQL injection Advisory Beginner CVE-2019-5116

YouPHPTube /objects/videoAddNew.json.php SQL injection vulnerability

An authenticated SQL injection vulnerability exists in the categories_id parameter of the /objects/videoAddNew.json.php endpoint in YouPHPTube 7.6. An attacker with a valid account could exploit it to exfiltrate database contents such as usernames and password hashes, and potentially gain operating system access depending on configuration.

Yuri Kramarz Follow

Originally disclosed on Cisco Talos

High 7.4 View original

An exploitable SQL injection vulnerability exists in the authenticated part of YouPHPTube 7.6. Specially crafted web requests can cause a SQL injection.

Yuri Kramarz, on Cisco Talos

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 concatenates the categories_id parameter directly into an SQL query without parameterisation or validation.

Impact

An attacker could access usernames and password hashes stored in the database, and in certain configurations could gain access to the underlying operating system.

What the attacker needed

A valid authenticated account

The fix

The vendor patched the vulnerability.

How it was found

  1. Authenticate to the application to obtain a valid session.
  2. Send a POST request to /objects/videoAddNew.json.php with a crafted categories_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 could send a crafted value in the categories_id field to make the database reveal stored 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.

More by Yuri Kramarz

View all

57 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.