Skip to content

Fix expired SIWE message acceptance without Not Before - #2698

Open
depthfirst-app[bot] wants to merge 1 commit into
masterfrom
depthfirst_0fb56ca93fcbe033bc2b0309bafbd86ef97aa468_dd8145353e8506c9ba7e32b21d977b32
Open

Fix expired SIWE message acceptance without Not Before#2698
depthfirst-app[bot] wants to merge 1 commit into
masterfrom
depthfirst_0fb56ca93fcbe033bc2b0309bafbd86ef97aa468_dd8145353e8506c9ba7e32b21d977b32

Conversation

@depthfirst-app

Copy link
Copy Markdown
Contributor

Vulnerability

Ethereum Web3 login incorrectly conditioned expiration validation on the presence of the optional SIWE Not Before field.

Impact

A captured, valid signature for a message without Not Before could be replayed after its Expiration Time to mint authentication tokens.

Solution

Validate Expiration Time whenever it is present and non-zero, regardless of whether Not Before was supplied. The regression test now covers an expired signed Ethereum message without Not Before and confirms it is rejected as an invalid grant.

Tested with:
go test ./internal/api -run 'TestWeb3/TestValidationRules_Expired$' -count=1


🔍 View Vulnerability Details: Code Vulnerability

@depthfirst-app
depthfirst-app Bot requested a review from a team as a code owner August 14, 2026 09:55
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.

0 participants