Descrizione

The WebP Express plugin for WordPress is vulnerable to Authorization Bypass via Malformed Bcrypt Salt in all versions up to, and including, 0.25.15. This is due to insufficient validation of the attacker-supplied `salt` POST parameter in the `runAccessChecks()` function, which passes the unvalidated salt directly to PHP's `crypt()` — causing it to return an empty string when the salt contains characters outside the valid bcrypt alphabet `[./0-9A-Za-z]` — and then loosely compares the resulting empty string against the attacker-controlled `api-key-crypted` POST parameter using `==`, allowing an empty submission to match and satisfy the check. This makes it possible for unauthenticated attackers to bypass the web service API-key authentication check and upload arbitrary image files to the cloud-conversion endpoint, where they persist at a predictable, publicly reachable path under `wp-content/webp-express/webp-images/wpc/`. The 'Require api-key to be crypted in transfer?' whitelist setting does not mitigate this bypass, as it only gates the plaintext API-key comparison branch and has no effect on the crypted-key branch containing the vulnerable logic.

Testo originale del record CVE (in inglese).

Come correggere

Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 5.3, EPSS 0.6% (percentile 40).

Versioni da aggiornare

Il record non riporta ancora i prodotti e le versioni corrette (analisi NVD in corso). Consultare l'advisory del vendor nei riferimenti.

Mitigazioni temporanee

Da applicare solo se non è possibile aggiornare subito:

  • Restringere l'accesso al componente, applicare il principio del minimo privilegio e controllare i log per operazioni non autorizzate.

Verifica

  1. Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
  2. Confrontare la versione installata con quelle indicate sopra.
  3. Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
  4. Ripetere la scansione per confermare la correzione.

Riferimenti