mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
Merge pull request #7633 from erik-krogh/CWE-300
JS: add js/http-dependency query
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
| package.json:6:17:6:40 | "http:/ ... rg/foo" | Dependency downloaded using unencrypted communication channel. |
|
||||
| package.json:7:17:7:39 | "ftp:// ... rg/foo" | Dependency downloaded using unencrypted communication channel. |
|
||||
| package.json:12:17:12:40 | "http:/ ... rg/foo" | Dependency downloaded using unencrypted communication channel. |
|
||||
| package.json:13:17:13:39 | "ftp:// ... rg/foo" | Dependency downloaded using unencrypted communication channel. |
|
||||
@@ -0,0 +1 @@
|
||||
Security/CWE-300/InsecureDependencyResolution.ql
|
||||
1
javascript/ql/test/query-tests/Security/CWE-300/foo.js
Normal file
1
javascript/ql/test/query-tests/Security/CWE-300/foo.js
Normal file
@@ -0,0 +1 @@
|
||||
console.log("foo");
|
||||
15
javascript/ql/test/query-tests/Security/CWE-300/package.json
Normal file
15
javascript/ql/test/query-tests/Security/CWE-300/package.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"name": "insecure-dep-downloader",
|
||||
"dependencies": {
|
||||
"foo": "*",
|
||||
"good1": "https://example.org/foo",
|
||||
"bad1": "http://example.org/foo",
|
||||
"bad2": "ftp://example.org/foo"
|
||||
},
|
||||
"devDependencies": {
|
||||
"bar": "*",
|
||||
"good2": "https://example.org/foo",
|
||||
"bad3": "http://example.org/foo",
|
||||
"bad4": "ftp://example.org/foo"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user