-
Notifications
You must be signed in to change notification settings - Fork 15
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
Security #4
Comments
Hi @lorddaedra
Let me know if you think any of that sounds insane. Thanks |
FYI I've just released |
This is how I did it: https://github.com/lorddaedra/django-magiclink/blob/master/magiclinks/views.py
So I disagree with you a little bit about decorators but anyway thanks again for this project, I used a lot of things from your project to create my fork and will follow any updates. Also note about Also you use hidden form field value to select form. But do not check values. It's possible to create request with incorrect field value and generate 500 error on server (not tested it myself, I just removed this code in my fork). |
Hey @lorddaedra Thanks for the reply. My issue with With Also thanks for bringing up And good catch on the hidden form field on the signup page. Not sure it really matters considering to get to that point someone must have manually edited the HTML but it's better to return a redirect instead of a 500 👍 - 6cba359 |
1.0.4 has been pushed with those changes |
Can we close this issue now? It's pretty scary to see the "Security" thread still open and found at the end that most of the points have been solved 😛 |
Please, check django.contrib.auth views and decorators.
IMHO we should include
decorators and do some additional checks for
next
url usingurl_has_allowed_host_and_scheme
.The text was updated successfully, but these errors were encountered: