Flask-Middleware / flask-security

Quick and simple security for Flask applications
MIT License
624 stars 155 forks source link

Default unauthorized handler can redirect to the request.referrer header #904

Closed jwag956 closed 5 months ago

jwag956 commented 5 months ago

Make sure this isn't a form of open redirect vulnerability - as described in https://sec.okta.com/articles/2021/02/stealing-oauth-tokens-open-redirects

Not sure there is any reason we should do this (been this way for a long time).