Skip to content
SQL injection Advisory Intermediate CVE-2022-33147CVE-2022-34652CVE-2022-33149CVE-2022-33148

WWBN AVideo ObjectYPT SQL injection vulnerability

The ObjectYPT base class in AVideo builds SQL queries by concatenating unsanitised object properties, so several endpoints that set fields like duration, title, description or url allow SQL injection. An authenticated attacker with upload or stream permission, or an unauthenticated attacker when the CloneSite plugin is enabled, could dump the database, including password hashes, and potentially escalate to administrator and command execution.

Claudio Bozzato Follow

Originally disclosed on Cisco Talos

High 8.3 View original

A sql injection vulnerability exists in the ObjectYPT functionality of WWBN AVideo 11.6 and dev master commit 3f7c0364. A specially-crafted HTTP request can lead to a SQL injection.

Claudio Bozzato, 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

The ObjectYPT save method concatenates object property values directly into INSERT and UPDATE SQL statements instead of using prepared statements or escaping.

Impact

An attacker could dump the whole database, including password hashes, and in default configurations an administrator can upload plugins, which trivially leads to arbitrary command execution in the host.

What the attacker needed

Permission to upload or stream, or CloneSite enabled; CloneSite variant needs no authentication

The fix

The vendor confirms issues fixed on July 7th 2022.

How it was found

  1. Create or use an account with permission to upload videos or stream, or reach the CloneSite endpoint if that plugin is enabled.
  2. Send a crafted request to an endpoint such as aVideoEncoder.json.php, Live_schedule/add.json.php or cloneServer.json.php with a malicious value in an unsanitised field.
  3. The endpoint sets the value on an ObjectYPT-derived object and calls save, which runs the injected SQL.
  4. Retrieve the stored result through a listing endpoint such as videos.json.php or Live_schedule/list.json.php.

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 pasted straight into a database command, so an attacker can change the command's meaning. Here, several AVideo features save user-supplied text into the database without cleaning it, letting an attacker add extra database instructions. That can reveal stored data such as 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 Claudio Bozzato

View all

185 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.