Description
The SlingRequestDispatcher doesn't correctly implement the RequestDispatcher API resulting in a generic type of include-based cross-site scripting issues on the Apache Sling level. The vulnerability is exploitable by an attacker that is able to include a resource with specific content-type and control the include path (i.e. writing content). The impact of a successful attack is privilege escalation to administrative power. Please update to Apache Sling Engine >= 2.14.0 and enable the "Check Content-Type overrides" configuration option.
Remediation
References
https://lists.apache.org/thread/hhp611hltby3whk03vx2mv7cmy3vs0ok
http://www.openwall.com/lists/oss-security/2023/04/18/6
Related Vulnerabilities
CVE-2023-34981 Vulnerability in maven package org.apache.tomcat.embed:tomcat-embed-core
CVE-2014-3600 Vulnerability in maven package org.apache.activemq:activemq-client
CVE-2020-10686 Vulnerability in maven package org.keycloak:keycloak-model-jpa
CVE-2020-13931 Vulnerability in maven package org.apache.tomee:openejb-core
CVE-2023-25762 Vulnerability in maven package org.jenkins-ci.plugins:pipeline-build-step