mirror of
https://github.com/curl/curl.git
synced 2026-07-26 13:57:57 +03:00
digest: escape double quotes and backslashes in realm and nonce
change test 907 to use quote in realm to verify Fixes #20482 Reported-by: cooldadpresident on github Closes #20545
This commit is contained in:
parent
afe9fdd1eb
commit
950c7bb174
2 changed files with 19 additions and 9 deletions
|
|
@ -14,8 +14,8 @@ RFC4954
|
|||
<reply>
|
||||
<servercmd>
|
||||
AUTH DIGEST-MD5
|
||||
REPLY AUTH 334 %b64[realm="curl",nonce="5300d17a1d695bd411e4cdf96f9548c23ced6175",algorithm=md5-sess,qop="auth"]b64%
|
||||
REPLY %b64[username="user",realm="curl",nonce="5300d17a1d695bd411e4cdf96f9548c23ced6175",cnonce="34333231353332313633323137333231",nc="00000001",digest-uri="smtp/127.0.0.1",response=a27c4395f3386743be12207b7d1121c5,qop=auth]b64% 334 %b64[rspauth=9ea859cb9d90c37ca30d49d35378630c]b64%
|
||||
REPLY AUTH 334 %b64[realm="cu\"rl",nonce="5300d17a1d695bd411e4cdf96f9548c23ced6175",algorithm=md5-sess,qop="auth"]b64%
|
||||
REPLY %b64[username="user",realm="cu\"rl",nonce="5300d17a1d695bd411e4cdf96f9548c23ced6175",cnonce="34333231353332313633323137333231",nc="00000001",digest-uri="smtp/127.0.0.1",response=b7290e673d2ad888c445c9b2c7698d66,qop=auth]b64% 334 %b64[rspauth=9ea859cb9d90c37ca30d49d35378630c]b64%
|
||||
REPLY 235 Authenticated
|
||||
</servercmd>
|
||||
</reply>
|
||||
|
|
@ -50,7 +50,7 @@ smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-fr
|
|||
<protocol crlf="yes">
|
||||
EHLO %TESTNUMBER
|
||||
AUTH DIGEST-MD5
|
||||
%b64[username="user",realm="curl",nonce="5300d17a1d695bd411e4cdf96f9548c23ced6175",cnonce="34333231353332313633323137333231",nc="00000001",digest-uri="smtp/127.0.0.1",response=a27c4395f3386743be12207b7d1121c5,qop=auth]b64%
|
||||
%b64[username="user",realm="cu\"rl",nonce="5300d17a1d695bd411e4cdf96f9548c23ced6175",cnonce="34333231353332313633323137333231",nc="00000001",digest-uri="smtp/127.0.0.1",response=b7290e673d2ad888c445c9b2c7698d66,qop=auth]b64%
|
||||
|
||||
MAIL FROM:%LTsender@example.com%GT
|
||||
RCPT TO:%LTrecipient@example.com%GT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue