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.
Published: 2026-08-25
Score: 6.1 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Adminer versions prior to 5.4.3 use a CSRF token scheme that includes both an XOR mask and a masked secret in each token. An attacker who can observe a single CSRF token, for example by sniffing traffic, reading logs, a Referrer header, or via XSS, can execute a single XOR operation to recover the session secret. The recovered secret allows the attacker to forge unlimited valid tokens, complete cross‑site request forgery attacks, and execute arbitrary SQL queries against the database as an authenticated user.

Affected Systems

The vulnerability affects all installations of Adminer v5.4.2 and earlier, as supplied by the vendor vrana. It applies to any deployment using the default session token implementation, regardless of the server environment or database backend.

Risk and Exploitability

The CVSS score of 6.1 signifies moderate severity, while the absence of an EPSS score reduces certainty about current exploitation prevalence. The vulnerability is not listed in CISA’s KEV catalog. The attack requires observation of a CSRF token or a low‑entropy brute‑force attack, both of which are feasible in many production environments. Once exploited, an attacker can perform CSRF against authenticated sessions and run unauthorized SQL commands.

Generated by OpenCVE AI on August 25, 2026 at 03:26 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Adminer to version 5.4.3 or later, which replaces the insecure XOR‑masked CSRF token scheme with a properly randomized token and secure comparison.
  • If upgrading is not immediately possible, limit Adminer’s exposure by restricting administrative access to a secure, internal network and enforcing TLS so that intercepted tokens cannot be easily recovered.
  • Implement a strict comparison operator for token verification and increase the entropy of the session random value to at least 128 bits to reduce brute‑force feasibility.

Generated by OpenCVE AI on August 25, 2026 at 03:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 25 Aug 2026 02:00:00 +0000

Type Values Removed Values Added
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.
Title Adminer before 5.4.3 CSRF Token Secret Recovery via XOR Masking
First Time appeared Adminer
Adminer adminer
Weaknesses CWE-330
CPEs cpe:2.3:a:adminer:adminer:*:*:*:*:*:*:*:*
Vendors & Products Adminer
Adminer adminer
References
Metrics cvssV3_1

{'score': 6.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:H'}

cvssV4_0

{'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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-25T01:30:05.474Z

Reserved: 2026-06-22T18:48:27.060Z

Link: CVE-2026-56706

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-25T02:16:42.477

Modified: 2026-08-25T02:16:42.477

Link: CVE-2026-56706

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-25T03:30:05Z

Weaknesses
  • CWE-330

    Use of Insufficiently Random Values