Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ES-1975 #1075

Merged
merged 1 commit into from
Dec 23, 2024
Merged

ES-1975 #1075

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -341,12 +341,11 @@ public CompleteSignupRedirectResponse completeSignupRedirect(CompleteSignupRedir
}

//As pathFragment is included in the response header, we should sanitize the input to mitigate
//response splitting vulnerability
//response splitting vulnerability. Removed all whitespace characters
private String sanitizePathFragment(String pathFragment) {
return pathFragment.replaceAll("[\r\n]", "");
return pathFragment.replaceAll("\\s", "");
}


private OIDCTransaction authenticate(AuthRequest authRequest, boolean checkConsentAction, HttpServletRequest httpServletRequest) {
OIDCTransaction transaction = cacheUtilService.getPreAuthTransaction(authRequest.getTransactionId());
if(transaction == null)
Expand Down
Loading