
Token-based API guard Auth Bypass
Laravel's built-in TokenGuard, when configured with a standard token-based API guard, may be bypassed to authenticate as an arbitrary existing user without knowledge of their valid API token.
以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。
Code
Issues58 (58)
Pull requests43 (43)
Discussions
Actions
Security and quality11 (11)
Insights
More items
framework
Security
Advisories
GHSA-f9x3-7vq9-cph6
Token-based API guard Auth Bypass
Critical
andrei-laravel published GHSA-f9x3-7vq9-cph6 Oct 19, 2026
Package
composer
laravel/framework (Composer)
Affected versions
< 13.29.0
< v12.68.0
Patched versions
= 13.29.0
= v12.68.0
Description
Laravel's built-in TokenGuard, when configured with a standard token-based API guard, may be bypassed to authenticate as an arbitrary existing user without knowledge of their valid API token.
Under certain database configurations (MySQL/MariaDB) an attacker can submit a specially crafted, non-string credential value that is mishandled during the authentication lookup, causing the underlying query to match an unintended user record rather than failing authentication as expected.
An unauthenticated attacker may authenticate as another user without possessing that user's API token, leading to authentication bypass and account takeover on any route protected by the affected guard.
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。