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

Invalid XSRF cookie value throws TypeError #1096

Closed
tiwilliam opened this issue Jul 7, 2014 · 0 comments
Closed

Invalid XSRF cookie value throws TypeError #1096

tiwilliam opened this issue Jul 7, 2014 · 0 comments

Comments

@tiwilliam
Copy link
Contributor

When running Tornado 3.2.2 and getting bogus data sent in XSRF cookies, we end up with following exception. _xsrf is set to foo in following trace.

Stacktrace (most recent call last):
  File "tornado/web.py", line 1338, in _execute
    self.check_xsrf_cookie()
  File "tornado/web.py", line 1184, in check_xsrf_cookie
    if not _time_independent_equals(utf8(token), utf8(expected_token)):
  File "tornado/web.py", line 2759, in _time_independent_equals
    if len(a) != len(b):
TypeError: object of type 'NoneType' has no len()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants