fix: Add redirect URL validation to OIDC flow
Add defense-in-depth validation for redirect URLs in the OIDC login and consent flow. While oidc-provider generates returnTo internally, validating it protects against potential library bugs or manipulation. Validation allows: - Relative URLs starting with the OIDC prefix (/oidc/...) - Absolute URLs with the same origin as the site Invalid redirects are logged for security monitoring.
Loading
Please sign in to comment