All vulnerabilities

Packagist

CVE-2026-96629

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

Severity
Medium 6.8
Published
30 Oct 2026
Last changed
30 Oct 2026
Added to UpHeron
23 Nov 2026
Fixed in
5.5.1
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
Also known as
GHSA-wm25-49w3-5qrg
Sources
OSV.dev and GitHub

Description

AdminNeo'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.

Originally reported by @az0mb13 in Adminer: GHSA-q4f2-39gr-45jh

Token generation in admin/include/functions.inc.php lines 1181-1184:

Token verification in lines 1189-1192:

Session token initialized in admin/include/auth.inc.php lines 327 and 385:

Load any authenticated AdminNeo 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 the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
adminneo-org/adminneoPackagist · osv:Packagist:adminneo-org/adminneo
  • Every version before 5.5.1

About adminneo-org/adminneo

Monthly downloads (Packagist)
23Packagist, 24 Nov 2026
Total downloads (Packagist)
312Packagist, 24 Nov 2026

References