-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Java: Promote XSLT Injection from experimental #6097
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
Java: Promote XSLT Injection from experimental #6097
Conversation
|
|
|
@github/docs-content-codeql please review the qhelp file. Even though changes aren't introduced in this PR, it wasn't reviewed when this query was merged to experimental. |
|
|
|
|
mchammer01
left a comment
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.
@atorralba - this LGTM ✨
I'm making a minor suggestion to the query description + I fixed a few minor things in the qlhep file (hope it' ok for me to directly commit to your branch as I don't appear to be able to make suggestions to that file).
| import java | ||
| import semmle.code.java.dataflow.FlowSources | ||
| import XsltInjectionLib | ||
| import semmle.code.java.security.XsltInjectionQuery |
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.
Comment for line 3 above (as I can't comment on the line itself):
Suggesting:
Performing an XSLT transformation with user-controlled stylesheets can lead to information disclosure or execution of arbitrary code.
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.
Don't worry about directly committing to the branch, It's totally fine :-)
Thank you for the review! I applied your suggestion regarding the query description.
|
LGTM. |
Made a few minor tweaks during editorial review
05d344d to
78c12dc
Compare
|
Rebased to fix conflicts. |
|
|


PR to promote the XSLT Injection query created in #3363
Changes
XsltInjectionLib.qllfile was renamed and refactored to use the CSV sink model.InlineExpectationsTest.Evaluation
CVE-2012-1592 is correctly detected after adding ad hoc additional taint steps for
javax.servlet.ServletConext.getResourceandjava.net.URL.openStream. Considering adding the later as a flow summary in a separate PR (because of the impact it'll probably have in several queries).