-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Add data extensions for remote tainted sources #20228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds data extensions for remote tainted sources by modeling Jakarta Servlet APIs that correspond to existing javax.servlet APIs. The change ensures that security analysis coverage is consistent between the legacy javax.servlet and modern jakarta.servlet APIs.
- Adds remote source models for basic ServletRequest methods in jakarta.servlet
- Adds remote source models for HTTP-specific methods in jakarta.servlet.http.HttpServletRequest
- Maintains consistency with existing javax.servlet security modeling
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
File | Description |
---|---|
java/ql/lib/ext/jakarta.servlet.model.yml | Adds remote tainted source models for basic ServletRequest methods like getParameter, getInputStream, and getReader |
java/ql/lib/ext/jakarta.servlet.http.model.yml | Adds remote tainted source models for HTTP-specific methods like getHeader, getPathInfo, getQueryString, and getRequestURI |
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.
Click to show differences in coveragejavaGenerated file changes for java
- Java extensions,"``javax.*``, ``jakarta.*``",69,4159,90,10,4,2,1,1,4
+ Java extensions,"``javax.*``, ``jakarta.*``",87,4159,90,10,4,2,1,1,4
- Totals,,312,26328,2656,404,16,128,33,1,409
+ Totals,,330,26328,2656,404,16,128,33,1,409
- jakarta.servlet,2,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,2,,,,,,,,,1,,
+ jakarta.servlet,2,19,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,2,,,,,,,,,19,, |
LGTM. If you could please also add a change note in |
…-extensions-change
@aschackmull Looks like all checks have passed now! |
Add relevant APIs that are modeled as remote tainted sources under
javax.servlet.ServletRequest
andjavax.servlet.http.HttpServletRequest
forjakarta.servlet.ServletRequest
andjakarta.servlet.http.HttpServletRequest
as well.