Query
Link to pull request with your CodeQL query:
Relevant PR: github/codeql#6251
CVE ID(s)
List the CVE ID(s) associated with this vulnerability. GitHub will automatically link CVE IDs to the GitHub Advisory Database.
Report
Describe the vulnerability. Provide any information you think will help GitHub assess the impact your query has on the open source community.
Directly incorporating user input into HTTP requests dispatched from the Java EE RequestDispatcher without validating the input can allow any web application resource such as configuration files and source code to be disclosed.
As stated in the Java API doc, when using a Java EE RequestDispatcher, requests may be dispatched to any part of the web application bypassing both implicit (no direct access to WEB-INF or META-INF) and explicit (defined by the web application) security constraints. Unsanitized user provided data must not be used to construct the path passed to the RequestDispatcher as it is very likely to create a security vulnerability in the application.
This query detects unsafe invocations of RequestDispatcher with user controlled input.
Result(s)
Provide at least one useful result found by your query, on some revision of a real project.
Query
Link to pull request with your CodeQL query:
Relevant PR: github/codeql#6251
CVE ID(s)
List the CVE ID(s) associated with this vulnerability. GitHub will automatically link CVE IDs to the GitHub Advisory Database.
Report
Describe the vulnerability. Provide any information you think will help GitHub assess the impact your query has on the open source community.
Directly incorporating user input into HTTP requests dispatched from the Java EE
RequestDispatcherwithout validating the input can allow any web application resource such as configuration files and source code to be disclosed.As stated in the Java API doc, when using a Java EE
RequestDispatcher, requests may be dispatched to any part of the web application bypassing both implicit (no direct access to WEB-INF or META-INF) and explicit (defined by the web application) security constraints. Unsanitized user provided data must not be used to construct the path passed to theRequestDispatcheras it is very likely to create a security vulnerability in the application.This query detects unsafe invocations of RequestDispatcher with user controlled input.
Result(s)
Provide at least one useful result found by your query, on some revision of a real project.