CVE-2026-42300: Go Admin Token Header Identity Assertion Bypass

Authentication bypass via alternate channel (CWE-288). An "X-Admin-Token" style HTTP header is read from the request and its raw value is used as an authenticated identity — either passed directly into a session/identity constructor or compared with `==` against a stored `adminToken` pointer to short-circuit RBAC checks. There is no cryptographic verificatio

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0Go
greprules fetch cve-2026-42300-go-admin-token-header-identity-assertion-bypass --engine opengrep

Description

Authentication bypass via alternate channel (CWE-288). An "X-Admin-Token" style HTTP header is read from the request and its raw value is used as an authenticated identity — either passed directly into a session/identity constructor or compared with `==` against a stored `adminToken` pointer to short-circuit RBAC checks. There is no cryptographic verificatio