Skip to content

Commit

Permalink
ES-1975 (#1075)
Browse files Browse the repository at this point in the history
Signed-off-by: ase-101 <[email protected]>
  • Loading branch information
ase-101 authored Dec 23, 2024
1 parent f2f3bbf commit 52faca3
Showing 1 changed file with 2 additions and 3 deletions.
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

0 comments on commit 52faca3

Please sign in to comment.