mirror of https://github.com/requarks/wiki
fix: validate loginRedirect cookie to prevent open redirect (#7923)
The loginRedirect cookie value was used directly in res.redirect() and window.location.replace() without validation, allowing redirection to arbitrary external URLs. Added validation to ensure the redirect target is a relative path before use. Co-authored-by: kolega.dev <faizan@kolega.ai>pull/7916/merge
parent
6ae53bf1bd
commit
7ae6635d16
Loading…
Reference in new issue