lingthio / Flask-User

Customizable User Authorization & User Management: Register, Confirm, Login, Change username/password, Forgot password and more.
http://flask-user.readthedocs.io/
MIT License
1.06k stars 294 forks source link

Proposed fix for CVE-2021-23401 #340

Closed trafficone closed 1 year ago

trafficone commented 2 years ago

This change modifies potentially malicious URLs with leading slashes and backslashes to ones with only a single slash, forcing them to be relative URLs.

URLs with consecutive slashes in the middle of the path are not affected.

Vulnerability details: https://security.snyk.io/vuln/SNYK-PYTHON-FLASKUSER-1293188 Description of URL Confusion Vulnerabilities https://snyk.io/blog/url-confusion-vulnerabilities/