Skip to content

fix(saml): use the checked redirect value in IdpSSOServlet - #500

Merged
kunal0137 merged 1 commit into
devfrom
fix-snyk-idp-redirect
Nov 25, 2026
Merged

kunal0137 merged 1 commit into
devfrom
fix-snyk-idp-redirect

Conversation

@kunal0137

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #499. IdpSSOServlet checked the redirect parameter with RedirectUtility.allowedReturnUrl but then kept using the raw request value. It now keeps the value the check returns, so only the checked value reaches sendRedirect and the session.

No behaviour change: the check returns the same string when it accepts it, and the 403 on a refused redirect is unchanged.

Testing

  • The changed class compiles against current Semoss dev classes. A full offline Monolith build here fails on unrelated files because the local Semoss artifact is older than Monolith dev.
  • Not run live (no SAML IdP locally).

@kunal0137
kunal0137 requested a review from a team as a code owner November 25, 2026 20:14
@snyk-io

snyk-io Bot commented Nov 25, 2026

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@kunal0137
kunal0137 merged commit e0c28ff into dev Nov 25, 2026
6 checks passed
@kunal0137
kunal0137 deleted the fix-snyk-idp-redirect branch November 25, 2026 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant