Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong Nonce Count handling in Digest authentication #181

Open
kashiro opened this issue May 18, 2018 · 0 comments
Open

Wrong Nonce Count handling in Digest authentication #181

kashiro opened this issue May 18, 2018 · 0 comments

Comments

@kashiro
Copy link

kashiro commented May 18, 2018

RFC 2617 stated that the nonce data string should be uniquely generated (§3.2.1)
But to detect/prevent replay attack the server side could reuse the same nonce (§4.3,§4.4,§4.5)

the nonce count is hard coded so when receiving the same nonce again the nonce count is still 1 and the server detect a replay attack thus refusing the registration.

1st registration works ok
REGISTER -->
<-- 401 unauthorized nonce ="12345678"
REGISTER --> nonce="12345678", nonce count="00000001"
<-- 200 OK

2nd registration
REGISTER -->
<-- 401 unauthorized nonce ="12345678"
REGISTER --> nonce="12345678", nonce count="00000001"
<-- 403 FORBIDDEN Warning: Digest replay attack detected

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

No branches or pull requests

1 participant