diff --git a/.changeset/few-games-study.md b/.changeset/few-games-study.md new file mode 100644 index 00000000000..ed5b79f88ce --- /dev/null +++ b/.changeset/few-games-study.md @@ -0,0 +1,5 @@ +--- +"@wso2is/identity-apps-core": patch +--- + +[fix] sanitize `identifierauth.jsp` and `fido2-auth.jsp` diff --git a/identity-apps-core/apps/authentication-portal/src/main/webapp/fido2-auth.jsp b/identity-apps-core/apps/authentication-portal/src/main/webapp/fido2-auth.jsp index 5225c32ba85..2adc658d217 100644 --- a/identity-apps-core/apps/authentication-portal/src/main/webapp/fido2-auth.jsp +++ b/identity-apps-core/apps/authentication-portal/src/main/webapp/fido2-auth.jsp @@ -58,7 +58,7 @@ %> <% - String authRequest = request.getParameter("data"); + String authRequest = Encode.forUriComponent(request.getParameter("data")); Map data = ((AuthenticationRequestWrapper) request).getAuthParams(); boolean enablePasskeyProgressiveEnrollment = (boolean) data.get("FIDO.EnablePasskeyProgressiveEnrollment"); @@ -169,20 +169,20 @@

-
<% - String multiOptionURI = request.getParameter("multiOptionURI"); + String multiOptionURI = Encode.forUriComponent(request.getParameter("multiOptionURI")); if (multiOptionURI != null && AuthenticationEndpointUtil.isValidURL(multiOptionURI) && isMultiAuthAvailable(multiOptionURI)) { %>
- @@ -244,7 +244,7 @@ - <% String clientId=request.getParameter("client_id"); %> + <% String clientId=Encode.forUriComponent(request.getParameter("client_id")); %>