Skip to content

fix(auth): reject missing oauth state#2163

Merged
innocenzi merged 1 commit into
tempestphp:3.xfrom
xHeaven:fix/oauth-state-validation
Jun 5, 2026
Merged

fix(auth): reject missing oauth state#2163
innocenzi merged 1 commit into
tempestphp:3.xfrom
xHeaven:fix/oauth-state-validation

Conversation

@xHeaven
Copy link
Copy Markdown
Member

@xHeaven xHeaven commented Jun 5, 2026

Explicitly disallow empty expected state . An attacker could send someone a callback url with only code, and if that browser had no saved OAuth state, the check treated missing state as valid. That skipped the OAuth CSRF protection and let the app continue logging in with the attacker-controlled code.

@xHeaven xHeaven requested a review from innocenzi as a code owner June 5, 2026 15:43
@innocenzi innocenzi merged commit 3e4c725 into tempestphp:3.x Jun 5, 2026
75 checks passed
@xHeaven xHeaven deleted the fix/oauth-state-validation branch June 5, 2026 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants