-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Fix: prevent forbidden characters in captcha id and double use of captcha #36
Conversation
…tcha Signed-off-by: Michael Krasselt <[email protected]>
Signed-off-by: Michael Krasselt <[email protected]>
Signed-off-by: Michael Krasselt <[email protected]>
Signed-off-by: Michael Krasselt <[email protected]>
Signed-off-by: Michael Krasselt <[email protected]>
Signed-off-by: Michael Krasselt <[email protected]>
@mkrasselt1 Your changes would also have to be tested accordingly. Could you add the tests? |
I can an I will :) |
Signed-off-by: Michael Krasselt <[email protected]>
Signed-off-by: Michael Krasselt <[email protected]>
Signed-off-by: Michael Krasselt <[email protected]>
added two tests, should cover both new functions (reuse and id-injection) |
are my tests sufficient ? |
Let's give it a try, thank you @mkrasselt1 |
Solves this bug:
Closes #13
and another one where attackers could just resend the last captcha over and over again, until the expiration period has passed.
Thats not what i would expect a captcha class to allow
BREAKING CHANGE:
prevents double sending of captchas - invalidates them after successful validation by regeneration of words