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.
https://www.vulncheck.com/advisories/adminer-before-csrf-token-secret-recovery-via-xor-masking
https://github.com/vrana/adminer/security/advisories/GHSA-33j4-hc95-pggg
Published: 2026-08-25
Updated: 2026-08-25
Base Score: 7.1
Vector: CVSS2#AV:N/AC:H/Au:N/C:N/I:C/A:C
Severity: High
Base Score: 6.8
Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:H
Severity: Medium
Base Score: 6.1
Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
Severity: Medium
EPSS: 0.00294