Accessing authenticationendpoint/login.do
without any URL parameters isn't gracefully handled in the front and back end
#24004
Labels
Description
Accessing
https://{IS_HOST}:{IS_PORT)/authenticationendpoint/login.do
triggers thecheckSessionKey
JS function defined in thelogin.jsp
page of theauthenticationendpoint
webapp:When these URL parameters (i.e.,
sessionDataKey
,relyingParty
,tenantDomain
,authenticators
) are null, the string concatenation operation adds anull
string, making the API call look like:logincontext?sessionDataKey=null&relyingParty=null&tenantDomain=null&authenticators=null
, allowing the request to byapss the the validations in LoginContextManagementUtil::handleLoginContext, and causing the following server error:Optimally, the
getParameterByName
JS function should return an empty string when a URL parameter doesn't exist to allow server-side validations to happen correctly, and the server should handle these edge cases gracefully instead of returning a server error.It's worth noting there's a similar pattern in the
basicauth.jsp
page in theauthenticationendpoint
webapp.Steps to Reproduce
https://{IS_HOME}:{IS_PORT}/authenticationendpoint/login.do
page (e.g, https://localhost:9443/authenticationendpoint/login.do).Version
IS 5.10, 5.11.0, 6.0.0, 6.1.0
Environment Details (with versions)
N/A
The text was updated successfully, but these errors were encountered: