CVE-2026-4132
Beskrivelse
The HTTP Headers plugin for WordPress is vulnerable to External Control of File Name or Path leading to Remote Code Execution in all versions up to and including 1.19.2. This is due to insufficient validation of the file path stored in the 'hh_htpasswd_path' option and lack of sanitization on the 'hh_www_authenticate_user' option value. The plugin allows administrators to set an arbitrary file path for the htpasswd file location and does not validate that the path has a safe file extension (e.g., restricting to .htpasswd). Additionally, the username field used for HTTP Basic Authentication is written directly into the file without sanitization. The apache_auth_credentials() function constructs the file content using the unsanitized username via sprintf('%s:{SHA}%s', $user, ...), and update_auth_credentials() writes this content to the attacker-controlled path via file_put_contents(). This makes it possible for authenticated attackers, with Administrator-level access and above, to write arbitrary content (including PHP code) to arbitrary file paths on the server, effectively achieving Remote Code Execution.
Beskrivelsen gjengis slik kilden har publisert den, på engelsk.
Nøkkelfakta
- Publisert
- 2026-04-22
- Sist endret
- 2026-06-17
- Tildelt av
- security@wordfence.com
- CVSS-vektor
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H- Scoret av
- security@wordfence.com
- Sannsynlighet for utnyttelse
-
1.0 %
høyere enn 59 %
av alle kjente sårbarheter
EPSS, neste 30 dager, modell v2026.06.15 - Rettelse finnes
- Ikke registrert hos kildene
Berørte produkter
| Leverandør | Produkt | Versjoner | Status |
|---|---|---|---|
| zinoui | HTTP Headers | ≥ 0, ≤ 1.19.2 | Berørt |
Svakhetstype
-
CWE-73: External Control of File Name or Path
The product allows user input to control or influence paths or file names that are used in filesystem operations.
Angrepsteknikker
Utledet gjennom svakhetstypen: CVE til CWE til CAPEC til ATT&CK. Dette viser hvilke teknikker svakhetsklassen historisk brukes til. Det er ikke en påstand om at nettopp denne sårbarheten er utnyttet slik.
- T1027: Obfuscated Files or Information
- T1574.006: Dynamic Linker Hijacking
- T1574.007: Path Interception by PATH Environment Variable
Referanser
- https://plugins.trac.wordpress.org/browser/http-headers/tags/1.19.2/http-headers.php#L1296
- https://plugins.trac.wordpress.org/browser/http-headers/tags/1.19.2/http-headers.php#L1298
- https://plugins.trac.wordpress.org/browser/http-headers/tags/1.19.2/http-headers.php#L1403
- https://plugins.trac.wordpress.org/browser/http-headers/tags/1.19.2/http-headers.php#L671
- https://plugins.trac.wordpress.org/browser/http-headers/tags/1.19.2/http-headers.php#L722
- https://plugins.trac.wordpress.org/browser/http-headers/tags/1.19.2/http-headers.php#L97
- https://plugins.trac.wordpress.org/browser/http-headers/trunk/http-headers.php#L1296
- https://plugins.trac.wordpress.org/browser/http-headers/trunk/http-headers.php#L1298
- https://plugins.trac.wordpress.org/browser/http-headers/trunk/http-headers.php#L1403
- https://plugins.trac.wordpress.org/browser/http-headers/trunk/http-headers.php#L671
- https://plugins.trac.wordpress.org/browser/http-headers/trunk/http-headers.php#L722
- https://plugins.trac.wordpress.org/browser/http-headers/trunk/http-headers.php#L97
- https://www.wordfence.com/threat-intel/vulnerabilities/id/ce010c6f-16bd-4178-a621-31ba637…
Berører dette dere?
En sårbarhet betyr bare noe hvis dere kjører produktet, i en berørt versjon, et sted en angriper kommer til.