nitely / Spirit

Spirit is a modern Python based forum built on top of Django framework
http://spirit.readthedocs.io
MIT License
1.16k stars 332 forks source link

fix unsafe redirect #308

Closed nitely closed 2 years ago

nitely commented 2 years ago

fix #307 open redirect can only occur on GET. However, I'm not sure if users can somehow change the POST next value in the multiple places it's used, and I'm not going to spend time auditing this. They should not, but just in case I've added the safe redirect for POST as well. Plus, this way I won't forget about safe redirect since it's everywhere