Skip to content

Commit 83ca4ef

Browse files
committed
JS: Lower security-severity of queries with speculative threat model
In the CVSS calculator we model this by setting 'Attack Complexity' to High and 'User Interaction' to Low (as opposed to None). CVSS vector: CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N
1 parent 4a16be2 commit 83ca4ef

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

javascript/ql/src/Security/CWE-078/IndirectCommandInjection.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* command-line injection vulnerabilities.
66
* @kind path-problem
77
* @problem.severity warning
8-
* @security-severity 9.8
8+
* @security-severity 6.3
99
* @precision medium
1010
* @id js/indirect-command-line-injection
1111
* @tags correctness

javascript/ql/src/Security/CWE-078/ShellCommandInjectionFromEnvironment.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* environment may cause subtle bugs or vulnerabilities.
55
* @kind path-problem
66
* @problem.severity warning
7-
* @security-severity 9.8
7+
* @security-severity 6.3
88
* @precision high
99
* @id js/shell-command-injection-from-environment
1010
* @tags correctness

javascript/ql/src/Security/CWE-078/UnsafeShellCommandConstruction.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* user to change the meaning of the command.
55
* @kind path-problem
66
* @problem.severity error
7-
* @security-severity 9.8
7+
* @security-severity 6.3
88
* @precision high
99
* @id js/shell-command-constructed-from-input
1010
* @tags correctness

javascript/ql/src/Security/CWE-078/UselessUseOfCat.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @description Using the `cat` process to read a file is unnecessarily complex, inefficient, unportable, and can lead to subtle bugs, or even security vulnerabilities.
44
* @kind problem
55
* @problem.severity error
6-
* @security-severity 9.8
6+
* @security-severity 6.3
77
* @precision high
88
* @id js/unnecessary-use-of-cat
99
* @tags correctness

javascript/ql/src/Security/CWE-912/HttpToFileAccess.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @description Writing network data directly to the file system allows arbitrary file upload and might indicate a backdoor.
44
* @kind path-problem
55
* @problem.severity warning
6-
* @security-severity 9.8
6+
* @security-severity 6.3
77
* @precision medium
88
* @id js/http-to-file-access
99
* @tags security

0 commit comments

Comments
 (0)