-
Notifications
You must be signed in to change notification settings - Fork 1.9k
ATM: Boost XssThroughDOM #11486
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
ATM: Boost XssThroughDOM #11486
Conversation
a2921cb to
b885249
Compare
javascript/ql/experimental/adaptivethreatmodeling/src/XssThroughDomATM.ql
Fixed
Show fixed
Hide fixed
|
I'm not sure why the tests are failing, I can run the query on my machine and the tests pass. |
|
The tests run on a merge commit, and there have been changes on main since this PR. So I think we can resolve this by merging in |
|
I see it, ignore me |
|
Can you now reproduce the test failures locally? |
|
Note: When #11532 gets merged XssThroughDOM should be added to that test as well. |
adityasharad
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.
Code changes look good. Assuming no other concerns from the team, I recommend merging this as is, so we don't accumulate conflicts with other PRs, and evaluating the combined state of main.
| @@ -0,0 +1,25 @@ | |||
| /** | |||
| * For internal use only. | |||
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.
Shall we just remove this comment now, so we don't forget later? Here and in the corresponding QLL file.
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.
This comment is present in all ATM-related .ql and .qll so probably best done in a separate PR given the churn. I'll open one.
|
Merging now, and will evaluate new |
This is a new version of #11204 based on top of the CodeQL refactoring, of which #11323 is the final PR.
@jhelie Because rebasing was too hard, I created this new version of your PR based on top of the new CodeQL framework. As I did this, though, I noticed that, as I understand it, there are more changes that need to be made when boosting a new query that are missing from your PR. Searching the repo for the substring
XssAtmI found changes that I think need to be made forXssThroughDOMin the following files:hasFlowFromSourcefrom the training data)The changes to the tests will also require changes to the
.expectedfiles, of course.