Skip to content

Add CSRF protection for HTTP Basic Authentication - #39

Merged
szeka9 merged 1 commit into
mainfrom
development
Jul 26, 2026
Merged

Add CSRF protection for HTTP Basic Authentication#39
szeka9 merged 1 commit into
mainfrom
development

Conversation

@szeka9

@szeka9 szeka9 commented Jul 26, 2026

Copy link
Copy Markdown
Owner

HTTP Basic Authentication is vulnerable to CSRF attacks because browsers automatically attach cached credentials to requests. Implement the Signed Double-Submit Cookie pattern using HMAC-SHA256 signed tokens with per-user server-side secrets.

This change also introduces a new cryptography module providing the HMAC-SHA256 implementation.

HTTP Basic Authentication is vulnerable to CSRF attacks
because browsers automatically attach cached credentials
to requests. Implement the Signed Double-Submit Cookie
pattern using HMAC-SHA256 signed tokens with per-user
server-side secrets.

This change also introduces a new cryptography module
providing the HMAC-SHA256 implementation.
@szeka9
szeka9 merged commit 8b33486 into main Jul 26, 2026
1 of 2 checks passed
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.

1 participant