CVE-2026-56706
JSON

6.1medium

Adminer before 5.4.3 CSRF Token Secret Recovery via XOR Masking

Severity
6.1medium CVSS:4.0 by VulnCheck
Exploit likelihood
0.36% (higher than 31% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck

Description

Adminer before 5.4.3 uses a CSRF token scheme that transmits both the XOR mask and the masked value in every token (format (rand XOR secret):rand), allowing anyone who observes a single CSRF token (e.g., via network sniffing, log files, Referrer header, or XSS) to recover the session secret with a single XOR operation and forge unlimited valid tokens. The implementation is further weakened by a low-entropy session token (rand(1,1e6), ~20 bits) that permits blind brute-force, and by use of loose comparison (==) in token verification, enabling PHP type juggling. Exploitation enables cross-site request forgery against authenticated sessions, including execution of arbitrary SQL queries.

Affected

Product or packageVersionsReported by
vrana adminerbefore 5.4.3
Not affected: 5.4.3
CVE List

All scores

VulnCheck6.1medium CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
VulnCheck6.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:H

Classification

CWE-330

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

Adminer before 5.4.3 uses a CSRF token scheme that transmits both the XOR mask and the masked value in every token (format (rand XOR secret):rand), allowing anyone who observes a single CSRF token (e.g., via network sniffing, log files, Referrer header, or XSS) to recover the session secret with a single XOR operation and forge unlimited valid tokens. The implementation is further weakened by a low-entropy session token (rand(1,1e6), ~20 bits) that permits blind brute-force, and by use of loose comparison (==) in token verification, enabling PHP type juggling. Exploitation enables cross-site request forgery against authenticated sessions, including execution of arbitrary SQL queries.

NVD (es)

Adminer antes de la versión 5.4.3 utiliza un esquema de token CSRF que transmite tanto la máscara XOR como el valor enmascarado en cada token (formato (rand XOR secreto):rand), permitiendo que cualquiera que observe un único token CSRF (por ejemplo, a través de la monitorización de red, archivos de registro, encabezado Referrer o XSS) recupere el secreto de la sesión con una única operación XOR y falsifique tokens válidos ilimitados. La implementación se debilita aún más por un token de sesión de baja entropía (rand(1,1e6), ~20 bits) que permite la fuerza bruta ciega, y por el uso de comparación laxa (==) en la verificación del token, lo que permite la manipulación de tipos de PHP. La explotación permite la falsificación de petición en sitios cruzados contra sesiones autenticadas, incluyendo la ejecución de consultas SQL arbitrarias.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-56706 changed 2026-08-25CVE Terms of Use
NVDCVE-2026-56706 changed 2026-10-12Public domain