-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Fixed potentional security issue with leaked password tokens #1757
Conversation
.travis.yml
Outdated
@@ -11,7 +11,7 @@ env: | |||
- DJANGO="Django<1.9" | |||
- DJANGO="Django<1.10" | |||
- DJANGO="Django<1.11" | |||
- DJANGO="Django==1.11b1" | |||
- DJANGO="Django>=1.11" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<2.0
is better here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
setup.py
Outdated
@@ -149,6 +149,9 @@ def find_package_data(where=".", package="", exclude=standard_exclude, | |||
'Programming Language :: Python :: 3.4', | |||
'Programming Language :: Python :: 3.5', | |||
'Framework :: Django', | |||
'Framework :: Django :: 1.9', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1.9 is not supported, better do not include it, instead you can add 1.8, which is supported
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my mistake, done!
.travis.yml
Outdated
@@ -31,7 +31,7 @@ matrix: | |||
- python: "3.3" | |||
env: DJANGO="Django<1.11" | |||
- python: "3.3" | |||
env: DJANGO="Django==1.11b1" | |||
env: DJANGO="Django>=1.11" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<2.0 is better here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
tox.ini
Outdated
@@ -8,7 +8,7 @@ deps = | |||
django18: Django < 1.9 | |||
django19: Django < 1.10 | |||
django110: Django < 1.11 | |||
django111: Django==1.11b1 | |||
django111: Django >= 1.11 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<2.0
is better here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@lorddaedra I'm getting the following error when testing:
I didn't edit any import statements, do you have any suggestions for getting tests to pass? |
Please rebase your changes on latest master, then the problem will be gone (git diff master..fix-referrer -- this will show that lots of stuff has changed between master and your branch) |
Django 1.11+ prevents password tokens from being leaked through the HTTP Referer header if a template calls out to third-party resources (i.e., JS or CSS) by setting token in session and redirecting.
@pennersr Updated, let me know if I should make any other changes! |
2 similar comments
@pennersr builds still seem to be failing due to an import sort error. Any insights? I'm not sure what to fix since this PR didn't change any imports.
|
The flake8 build output is a bit misleading.. it is actually this line that is the problem: ERROR: /Users/pennersr/src/django-allauth/allauth/account/views.py Imports are incorrectly sorted. So, you need two empty lines before INTERNAL_RESET_URL_KEY = "set-password" |
Thanks!! |
Thanks in return! |
Django 1.11+ prevents password tokens from being leaked through the
HTTP Referer header if a template calls out to third-party resources
(i.e., JS or CSS) by setting token in session and redirecting.
Fixes #1755