digest: pass in the user name quoted (as well)#20940
Conversation
For cases where the user puts a double quote or backspace in the user name. Adjusted test 907 to verify Reported-by: am-perip on hackerone
There was a problem hiding this comment.
Pull request overview
Updates DIGEST-MD5 SASL authentication message generation to properly quoted-string escape the username (in addition to realm/nonce), and adjusts a regression test to validate usernames containing special characters.
Changes:
- Escape (backslash-quote) the DIGEST-MD5
usernamefield using the existing quoted-string helper. - Update test907 to use/verify a username containing a double quote.
- Update
tests/data/Makefile.amtest case list (currently introduces a missing test entry).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| tests/data/test907 | Adjusts SMTP DIGEST-MD5 test vectors to use/verify a quoted username. |
| tests/data/Makefile.am | Modifies the enumerated test case list (currently references a non-existent test). |
| lib/vauth/digest.c | Escapes the DIGEST-MD5 username attribute before formatting the response string. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
it wasn't used
|
augment review |
🤖 Augment PR SummarySummary: Ensures DIGEST-MD5 responses properly escape the username when it contains characters like
|
For cases where the user puts a double quote or backspace in the user name.
Adjusted test 907 to verify
Reported-by: am-perip on hackerone