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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| vrana | adminer | < 5.4.3 | 5.4.3 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | adminer | 5.4.3+dfsg-1 | — |
| Debian 13 | adminer | No fix yet | — |
| Debian 12 | adminer | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | adminer | No fix yet | — |
| Ubuntu 24.04 LTS | adminer | No fix yet | — |
| Ubuntu 22.04 LTS | adminer | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | adminer | No fix yet | — |
| Ubuntu Pro 18.04 LTS | adminer | No fix yet | — |
| Ubuntu Pro 16.04 LTS | adminer | No fix yet | — |
References
- GitHub Security Advisory (GHSA-33j4-hc95-pggg) vendor-advisory
- VulnCheck Advisory: Adminer before 5.4.3 CSRF Token Secret Recovery via XOR Masking third-party-advisory