Affected versions
Version ranges need review.
PyPIdjango-spirit
- Affected versions
- <0.12.3
- Fixed version
- 0.12.3
PyPIdjango-spirit
- Affected versions
- < 0.12.3
- Fixed version
- 0.12.3
Exploitation
Description
django-spirit prior to version 0.12.3 is vulnerable to open redirect. In the /user/login endpoint, it doesn't check the value of the next parameter when the user is logged in and passes it directly to redirect which result to open redirect. This also affects /user/logout, /user/register, /user/login, /user/resend-activation.
Links
- https://github.com/advisories/GHSA-5p9j-w2wx-qx4c
- https://github.com/nitely/spirit
- https://github.com/nitely/spirit/commit/8f32f89654d6c30d56e0dd167059d32146fb32ef
- https://huntr.dev/bounties/ed335a88-f68c-4e4d-ac85-f29a51b03342
- https://nvd.nist.gov/vuln/detail/CVE-2022-0869
- https://pypi.org/project/django-spirit

