Skip to content

fix: expire stale auth challenges - #1438

Open
silentgeckoaudit3801 wants to merge 1 commit into
LabsCrypt:mainfrom
silentgeckoaudit3801:fix-auth-challenge-timestamp-expiry
Open

fix: expire stale auth challenges#1438
silentgeckoaudit3801 wants to merge 1 commit into
LabsCrypt:mainfrom
silentgeckoaudit3801:fix-auth-challenge-timestamp-expiry

Conversation

@silentgeckoaudit3801

Copy link
Copy Markdown

Fixes #1320.

This PR fixes �ackend/src/services/authService.ts::verifyChallengeTimestamp so the freshness check compares elapsed age as
ow - timestamp instead of subtracting in the opposite direction.

The existing �uthService unit coverage already includes the replay boundary this restores: timestamps within the max-age window are accepted and timestamps older than the window are rejected.

Validation: static GitHub API/source inspection only; local backend tests were not run in this environment to avoid installing or executing additional toolchains.

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.

[Backend] Auth challenge timestamps never expire, enabling replay

1 participant