-
Notifications
You must be signed in to change notification settings - Fork 1.8k
JS: Add model of d3 selections #5379
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
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.
Nice.
What is the status of recognizing the source of CVE-2017-1000006?
I guess we don't recognize it.
API::Node d3() { | ||
result = API::moduleImport("d3") | ||
or | ||
result = API::moduleImport("d3-node").getInstance().getMember("d3") | ||
} |
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.
I had expected that d3
would also be used as a global variable.
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.
Good point, we should totally recognize that.
javascript/ql/src/semmle/javascript/security/dataflow/XssThroughDomCustomizations.qll
Show resolved
Hide resolved
Oh thanks for brining that up. Added a few things that I missed from the model. We do find the sources now. |
New evaluations on d3 slugs and on default slugs look mostly OK, but I'll take a bit of time to investigate the slowest ones. |
As far as I can tell the outliers are just noise. |
Adds a model of
d3
selections, which is the only part ofd3
where I could find anything relevant for our security queries.d3
selections are a bit likejQuery
objects, in that they contain a collection of DOM elements, and have methods for interacting with them. The model just contributes news ways of interacting with the DOM viad3
selections.Evaluations: (internal links)