3 ms·
One thing to note is login redirect. Please be sure that redirect parameter is local URI and don't redirect user to another site. Maybe even append HMAC signat
by vbezhenar 11y ago
One thing to note is login redirect. Please be sure that redirect parameter is local URI and don't redirect user to another site.
Maybe even append HMAC signature to that parameter with user IP and timestamp. Might be an overkill, but still be careful with craftable redirects, they might become vulnerability one day.
- rudolf0 11y agoTrue, open redirects can cause serious security issues. Do not have an route that simply does the equivalent of `return redirect(params["url"])`, either at login or anywhere.