Skip to content

auth: Use constant-time comparison in SCRAM stored-key verification#4562

Open
jpds wants to merge 1 commit intoprocessone:masterfrom
jpds:auth-scram-constant-time
Open

auth: Use constant-time comparison in SCRAM stored-key verification#4562
jpds wants to merge 1 commit intoprocessone:masterfrom
jpds:auth-scram-constant-time

Conversation

@jpds
Copy link
Copy Markdown
Contributor

@jpds jpds commented Apr 10, 2026

Replaces == with crypto:hash_equals/2 in is_password_scram_valid/2 to do a constant-time comparison.

@badlop
Copy link
Copy Markdown
Member

badlop commented May 7, 2026

This improvement is similar to processone/xmpp#111

@badlop badlop added this to the ejabberd 26.xx milestone May 7, 2026
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