Skip to content
Crypto Advisory Advanced CVE-2023-49599

WWBN AVideo salt generation insufficient entropy vulnerability

The salt used to encrypt password recovery codes is generated with PHP's uniqid(), which is not cryptographically secure. An attacker can gather the installation timestamp and path, brute-force the salt offline, and forge a recovery code to reset the admin password.

Claudio Bozzato Follow

Originally disclosed on Cisco Talos

Critical 9.8 View original

An insufficient entropy vulnerability exists in the salt generation functionality of WWBN AVideo dev master commit 15fed957fb. A specially crafted series of HTTP requests can lead to privilege escalation.

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 salt is generated using uniqid(), which produces predictable values based on the current time, making it brute-forceable.

Impact

An attacker could forge a valid password recovery code for the admin user and reset their password, leading to privilege escalation.

What the attacker needed

No authentication needed; Ability to send HTTP requests; Knowledge of installation timestamp; Knowledge of installation path

The fix

The salt should be generated using a cryptographically secure random function instead of uniqid().

How it was found

  1. Get an encrypted string by requesting the view/url2Embed.json.php page.
  2. Retrieve the installation date in seconds by requesting the objects/plugins.json.php page.
  3. Retrieve the installation path using TALOS-2023-1869 to read the PHP session file.
  4. Brute force the microsecond part of the salt and try to decrypt the encrypted string; if decrypted content contains {"videos_id":, the salt is correct.
  5. Create a recovery code for the admin, optionally using TALOS-2023-1897 to prevent notification, and note the current time + 600.
  6. Forge the recovery code for the admin using the known key, IV, and plaintext, and use it to reset the admin password.

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.

A salt is a random value used to make encryption unique. Here, the salt was created using a function that is not truly random, so an attacker can guess it by trying many possibilities. Once the salt is known, the attacker can create a valid password reset link for the admin and take over the account.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

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.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.