CVE-2026-56706
Received Received - Intake

CSRF Token Forgery in Adminer via XOR Weakness

Vulnerability report for CVE-2026-56706, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-25

Last updated on: 2026-08-25

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-25
Last Modified
2026-08-25
Generated
2026-08-25
AI Q&A
2026-08-25
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
vrana adminer to 5.4.3 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-330 The product uses insufficiently random numbers or values in a security context that depends on unpredictable numbers.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

Adminer before version 5.4.3 has a flawed CSRF token scheme that transmits both the XOR mask and masked value in every token. This allows an attacker who observes a single token to recover the session secret with a simple XOR operation and forge unlimited valid tokens. The token also has low entropy (~20 bits), making brute-force attacks possible. The vulnerability enables cross-site request forgery against authenticated sessions, allowing arbitrary SQL execution.

Detection Guidance

To detect this vulnerability, monitor network traffic for Adminer instances using the flawed CSRF token scheme. Look for tokens formatted as (rand XOR secret):rand in requests. Check Adminer version; versions <= 5.4.3-dev are vulnerable. Inspect logs for repeated failed CSRF token validations or unusual SQL query execution patterns.

  • Check Adminer version: grep -r "Adminer" /var/www/ or similar paths to find version info.
  • Monitor network traffic: Use tcpdump or Wireshark to capture HTTP requests to Adminer and inspect CSRF tokens for the vulnerable format.
  • Inspect logs: Look for repeated failed CSRF token validations or unexpected SQL queries in web server or Adminer logs.
Impact Analysis

An attacker could exploit this to perform CSRF attacks on your authenticated Adminer sessions. This could allow them to execute arbitrary SQL commands, such as deleting tables, stealing data, or creating backdoor users, all while impersonating you. The attack could be triggered by visiting a malicious webpage.

Compliance Impact

This vulnerability could lead to unauthorized data access, modification, or deletion, violating GDPR's integrity and confidentiality requirements and HIPAA's safeguards for protected health information. Compliance failures may result in legal penalties, reputational damage, and loss of trust.

Mitigation Strategies

Immediately upgrade Adminer to version 5.4.3 or later to address the CSRF token flaw. If upgrading is not possible, disable Adminer or restrict access to trusted networks. Implement additional CSRF protections like stricter token validation or rate limiting to mitigate brute-force risks.

  • Upgrade Adminer: Download and install Adminer 5.4.3 or newer from the official repository.
  • Restrict access: Use firewalls or network policies to limit Adminer access to authorized users only.
  • Monitor activity: Increase monitoring for suspicious SQL queries or unauthorized access attempts post-upgrade.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-56706. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart