Skip to content

Commit 6cee635

Browse files
authored
Merge pull request #10180 from erik-krogh/fixTags
Add missing security tags
2 parents 7584434 + b1e5328 commit 6cee635

14 files changed

+17
-7
lines changed

go/ql/src/Security/CWE-322/InsecureHostKeyCallback.ql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
* @description Detects insecure SSL client configurations with an implementation of the `HostKeyCallback` that accepts all host keys.
44
* @kind path-problem
55
* @problem.severity warning
6+
* @security-severity 8.2
67
* @precision high
78
* @id go/insecure-hostkeycallback
89
* @tags security
10+
* external/cwe/cwe-322
911
*/
1012

1113
import go
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: queryMetadata
3+
---
4+
* Added the `security-severity` tag and CWE tag to the `go/insecure-hostkeycallback` query.

java/ql/src/Frameworks/JavaEE/EJB/EjbContainerInterference.ql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* Such operations could interfere with the EJB container's operation.
88
* @kind problem
99
* @problem.severity error
10-
* @security-severity 5.8
1110
* @precision low
1211
* @id java/ejb/container-interference
1312
* @tags reliability

java/ql/src/Frameworks/JavaEE/EJB/EjbFileIO.ql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* for enterprise components.
66
* @kind problem
77
* @problem.severity error
8-
* @security-severity 5.8
98
* @precision low
109
* @id java/ejb/file-io
1110
* @tags reliability

java/ql/src/Frameworks/JavaEE/EJB/EjbNative.ql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* Such use could compromise security and system stability.
55
* @kind problem
66
* @problem.severity error
7-
* @security-severity 5.8
87
* @precision low
98
* @id java/ejb/native-code
109
* @tags reliability

java/ql/src/Frameworks/JavaEE/EJB/EjbReflection.ql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* as this could compromise security.
55
* @kind problem
66
* @problem.severity error
7-
* @security-severity 5.8
87
* @precision low
98
* @id java/ejb/reflection
109
* @tags external/cwe/cwe-573

java/ql/src/Frameworks/JavaEE/EJB/EjbSecurityConfiguration.ql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* This functionality is reserved for the EJB container for security reasons.
66
* @kind problem
77
* @problem.severity error
8-
* @security-severity 5.8
98
* @precision low
109
* @id java/ejb/security-configuration-access
1110
* @tags external/cwe/cwe-573

java/ql/src/Frameworks/JavaEE/EJB/EjbSerialization.ql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* the Java serialization protocol, since their use could compromise security.
55
* @kind problem
66
* @problem.severity error
7-
* @security-severity 5.8
87
* @precision low
98
* @id java/ejb/substitution-in-serialization
109
* @tags external/cwe/cwe-573

java/ql/src/Frameworks/JavaEE/EJB/EjbSetSocketOrUrlFactory.ql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* compromise security or interfere with the EJB container's operation.
66
* @kind problem
77
* @problem.severity error
8-
* @security-severity 5.8
98
* @precision low
109
* @id java/ejb/socket-or-stream-handler-factory
1110
* @tags reliability
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: queryMetadata
3+
---
4+
* Removed the `@security-severity` tag from several queries not in the `Security/` folder that also had missing `security` tags.

python/ql/src/Security/CWE-730/PolynomialReDoS.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* to match may be vulnerable to denial-of-service attacks.
55
* @kind path-problem
66
* @problem.severity warning
7+
* @security-severity 7.5
78
* @precision high
89
* @id py/polynomial-redos
910
* @tags security

python/ql/src/Security/CWE-730/ReDoS.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* attacks.
66
* @kind problem
77
* @problem.severity error
8+
* @security-severity 7.5
89
* @precision high
910
* @id py/redos
1011
* @tags security

python/ql/src/Security/CWE-730/RegexInjection.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* exponential time on certain inputs.
66
* @kind path-problem
77
* @problem.severity error
8+
* @security-severity 7.5
89
* @precision high
910
* @id py/regex-injection
1011
* @tags security
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: queryMetadata
3+
---
4+
* Added the `security-severity` tag the `py/redos`, `py/polynomial-redos`, and `py/regex-injection` queries.

0 commit comments

Comments
 (0)