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

How does userfrosting protects itself from bots registering new users? #76

Closed
sotiris84 opened this issue Jul 21, 2014 · 5 comments
Closed
Assignees
Labels
core feature request Feature request security Framework security issue

Comments

@sotiris84
Copy link

I did some digging in the code, but I did not find what the script is doing to protect itself from bots submitting the registration form.

@lilfade
Copy link
Contributor

lilfade commented Jul 21, 2014

register.php lines 150, 207

api/create_user.php lines 117, 128

Check these files / lines.

@sotiris84
Copy link
Author

Great, thanks!

@alexweissman
Copy link
Member

Yeah right now we're using the basic captcha system that originally came with Usercake. It's pretty weak though, as it could easily be circumvented with some basic OCR.

Two things we could do would be to:
A. Use a more rigorous captcha, such as reCAPTCHA.
B. Add a "honeypot" hidden field with a value that the registration code checks for tampering before creating the new account. See http://solutionfactor.net/blog/2014/02/01/honeypot-technique-fast-easy-spam-prevention/ for an example.

@sotiris84
Copy link
Author

Yes, I was going to mention the hidden input field. It is working great for me in my contact form I have in my website. I also have a captcha that prints random lines making it more difficult for bots to read it (and humans of course). You can check my website if you like and I can also give some source code and links, although its super easy to implement. ( http://karagiorgis.info/#contact )

@alexweissman
Copy link
Member

Ok, honeypot is added in latest push.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core feature request Feature request security Framework security issue
Projects
None yet
Development

No branches or pull requests

3 participants