Intel

AIKIDO-2026-800030

vrana/adminer is vulnerable to Cross-Site Request Forgery (CSRF)

Cross-Site Request Forgery (CSRF)GHSA-33j4-hc95-pggg Published 3 days ago

68

Medium Risk

This Affects:

PHPvrana/adminer
0.0.1 - 5.4.2
Fixed in 5.4.3
Are you affected? Scan for Free

TL;DR

Adminer's anti-CSRF token transmits both the random mask and the masked value, so anyone who observes a single token can recover the session secret with one XOR operation and forge valid tokens. The underlying session token is generated from a small random range and the verification uses a loose comparison, further weakening the protection. With a forged token, externally hosted pages can drive authenticated requests that run arbitrary SQL through the victim's session. The fix additionally checks the Sec-Fetch-Site request header to gate state-changing requests.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

vrana/adminer is vulnerable to Cross-Site Request Forgery (CSRF) in versions 0.0.1 - 5.4.2.

How to fix this

Upgrade the vrana/adminer library to the patch version.