All vulnerabilities

Servers and applications

GHSA-33j4-hc95-pggg

CSRF Token Secret Recoverable from Single Observed Token, Enabling Cross-Site Request Forgery

Severity
Medium 6.8
Published
9 Jul 2026
Last changed
9 Jul 2026
Added to UpHeron
3 Nov 2026
Fixed in
5.4.3
Weakness
Insufficiently random values (CWE-330)Cross-site request forgery (CWE-352)
Attack
Over the network · Only under certain conditions · No login needed · Needs someone to click or open something
Attacker can
Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:H
Sources
Project advisories (GitHub)

Description

Adminer's CSRF protection uses a BREACH-resistant XOR masking scheme, but the implementation transmits both the XOR mask and the masked value in every token. This allows any observer who sees a single CSRF token (via network sniffing, log files, Referrer header, or XSS) to instantly recover the session secret and forge unlimited valid CSRF tokens. Additionally, the underlying session token has only ~20 bits of entropy (rand(1, 1e6)), making blind brute-force feasible even without token observation.

Token generation in adminer/include/functions.inc.php lines 897-899:

Token verification in lines 903-905:

Session token initialized in adminer/include/auth.inc.php lines 150 and 205:

Load any authenticated Adminer page and extract a token from the HTML source. Tokens appear in hidden form fields:

Token observation vectors: Referrer header leak, shared proxy logs, browser history, limited XSS, network sniffing.

From vrana/adminer's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
AdminerServers and applications · github:vrana/adminer
  • Every version before 5.4.3

About Adminer

tool for managing content in MySQL databases

From Wikidata, CC0 1.0.
Docker Hub pulls
411,345,578Docker Hub, 15 Nov 2026
GitHub stars
7,954GitHub, 15 Nov 2026
Forks
1,181GitHub, 15 Nov 2026
Latest release
v6.3.0GitHub, 15 Nov 2026
Released
3 Nov 2026GitHub
Developer
Jakub VránaWikidata
License
Apache LicenseWikidata
Written in
PHPWikidata
First released
11 Jul 2007Wikidata
First published on GitHub
25 Apr 2010GitHub

References