Skip to content

Commit d71be8a

Browse files
committed
Moved from experimental into default queries
1 parent 01ec7c2 commit d71be8a

11 files changed

+6
-4
lines changed
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
category: minorAnalysis
33
---
4-
* Added a new query, `js/functionality-from-untrusted-domain`, which detects uses in HTML and JavaScript scripts from untrusted domains, including the compromised `polyfill.io` content delivery network, and can be extended to detect other compromised scripts using data extensions.
5-
* Modified existing query, `js/functionality-from-untrusted-source`, to allow adding this new query, but reusing the same logic.
6-
* Created a shared library, `semmle.javascript.security.FunctionalityFromUntrustedSource`, to separate the logic from that existing query and allow having a separate "untrusted domain" query.
4+
* Added a new query, `js/functionality-from-untrusted-domain`, which detects uses in HTML and JavaScript scripts from untrusted domains, including the `polyfill.io` content delivery network
5+
* it can be extended to detect other compromised scripts using user-provided data extensions of the `untrustedDomain` predicate, which takes one string argument with the domain to warn on (and will warn on any subdomains too).
6+
* Modified existing query, `js/functionality-from-untrusted-source`, to allow adding this new query, but reusing the same logic
7+
* Added the ability to use data extensions to require SRI on CDN hostnames using the `isCdnDomainWithCheckingRequired` predicate, which takes one string argument of the full hostname to require SRI for.
8+
* Created a new library, `semmle.javascript.security.FunctionalityFromUntrustedSource`, to support both queries.

javascript/ql/test/experimental/Security/CWE-830/FunctionalityFromUntrustedDomain.qlref

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Security/CWE-830/FunctionalityFromUntrustedDomain.ql

0 commit comments

Comments
 (0)