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

Fix: prevent forbidden characters in captcha id and double use of captcha #36

Open
wants to merge 7 commits into
base: 2.18.x
Choose a base branch
from

Conversation

mkrasselt1
Copy link

Solves this bug:
#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

Michael Krasselt added 7 commits August 12, 2024 16:20
…tcha

Signed-off-by: Michael Krasselt <michael@peanutpay.de>
Signed-off-by: Michael Krasselt <michael@peanutpay.de>
Signed-off-by: Michael Krasselt <michael@peanutpay.de>
Signed-off-by: Michael Krasselt <michael@peanutpay.de>
Signed-off-by: Michael Krasselt <michael@peanutpay.de>
Signed-off-by: Michael Krasselt <michael@peanutpay.de>
@froschdesign froschdesign added Bug Something isn't working Unit Test Needed labels Aug 14, 2024
@froschdesign
Copy link
Member

@mkrasselt1
First: Thank you for your time and this contribution! 👍

Your changes would also have to be tested accordingly. Could you add the tests?

@mkrasselt1
Copy link
Author

I can an I will :)
(never worked with tests bevore but I will figure it out :))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Unit Test Needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants