-
Notifications
You must be signed in to change notification settings - Fork 1.7k
JS: Add StoredXss and XssThroughDom to ATM QL extraction code #8557
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
Yes, I still need to update the tests. |
17d4c5e
to
229409e
Compare
...experimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/StoredXssATM.qll
Outdated
Show resolved
Hide resolved
...rimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/XssThroughDomATM.qll
Outdated
Show resolved
Hide resolved
javascript/ql/experimental/adaptivethreatmodeling/src/StoredXssATM.ql
Outdated
Show resolved
Hide resolved
...pt/ql/experimental/adaptivethreatmodeling/src/codeql-suites/javascript-atm-code-scanning.qls
Outdated
Show resolved
Hide resolved
Might need rebasing in view of #8597 |
229409e
to
15d5662
Compare
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.
Found 7 vulnerabilities.
...experimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/StoredXssATM.qll
Fixed
Show fixed
Hide fixed
...rimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/XssThroughDomATM.qll
Fixed
Show fixed
Hide fixed
@@ -16,8 +16,10 @@ | |||
import experimental.adaptivethreatmodeling.FilteringReasons | |||
import experimental.adaptivethreatmodeling.NosqlInjectionATM as NosqlInjectionATM | |||
import experimental.adaptivethreatmodeling.SqlInjectionATM as SqlInjectionATM | |||
import experimental.adaptivethreatmodeling.StoredXssATM as StoredXssATM | |||
import experimental.adaptivethreatmodeling.TaintedPathATM as TaintedPathATM | |||
import experimental.adaptivethreatmodeling.XssATM as XssATM |
Check warning
Code scanning / CodeQL
Acronyms should be PascalCase/camelCase.
import experimental.adaptivethreatmodeling.TaintedPathATM as TaintedPathATM | ||
import experimental.adaptivethreatmodeling.XssATM as XssATM | ||
import experimental.adaptivethreatmodeling.XssThroughDomATM as XssThroughDomATM |
Check warning
Code scanning / CodeQL
Acronyms should be PascalCase/camelCase.
...pt/ql/experimental/adaptivethreatmodeling/modelbuilding/extraction/ExtractEndpointMapping.ql
Fixed
Show fixed
Hide fixed
...pt/ql/experimental/adaptivethreatmodeling/modelbuilding/extraction/ExtractEndpointMapping.ql
Fixed
Show fixed
Hide fixed
...pt/ql/experimental/adaptivethreatmodeling/modelbuilding/extraction/ExtractEndpointMapping.ql
Fixed
Show fixed
Hide fixed
Produced with: ``` javascript/ql$tb boost src/Security/CWE-079/StoredXss.ql XssSink javascript/ql$ tb boost src/Security/CWE-079/XssThroughDom.ql XssSink ```
d363431
to
c19a2fe
Compare
This is finally ready for another look @henrymercer - thanks for your patience |
e6b2590
to
6bdd0d1
Compare
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.
Couple of comments around the alert messages
javascript/ql/experimental/adaptivethreatmodeling/src/StoredXssATM.ql
Outdated
Show resolved
Hide resolved
javascript/ql/experimental/adaptivethreatmodeling/src/XssThroughDomATM.ql
Outdated
Show resolved
Hide resolved
javascript/ql/experimental/adaptivethreatmodeling/src/StoredXssATM.ql
Outdated
Show resolved
Hide resolved
e836a4f
to
aa76712
Compare
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.
Do we need the ability to run these new queries in the evaluation pipeline? If so, we should add corresponding queries in javascript/ql/experimental/adaptivethreatmodeling/modelbuilding/evaluation
. Otherwise LGTM.
The evaluation queries will come in a later PR. Thank you @henrymercer! Will sort out the latest conflict and then merge. |
ATM has now been parked and this is no longer needed |
Add the security queries
StoredXss
andXssThroughDom
to the ATM CodeQL feature extraction code.These new queries should not be run in the ATM query suite, so have been explicitly excluded in the
javascript-atm-code-scanning.qls
file.Will any of the tests need updating @henrymercer?