Skip to content

Commit 5b17d8c

Browse files
authored
Merge pull request #21472 from owen-mc/adjust-severity/xss-log-injection
Adjust `@security-severity` metadata for XSS and log injection queries
2 parents d4a0846 + 3aaee9d commit 5b17d8c

29 files changed

+59
-21
lines changed

cpp/ql/src/Security/CWE/CWE-079/CgiXss.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* allows for a cross-site scripting vulnerability.
55
* @kind path-problem
66
* @problem.severity error
7-
* @security-severity 6.1
7+
* @security-severity 7.8
88
* @precision high
99
* @id cpp/cgi-xss
1010
* @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+
* The `@security-severity` metadata of `cpp/cgi-xss` has been increased from 6.1 (medium) to 7.8 (high).

csharp/ql/src/Security Features/CWE-079/XSS.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* allows for a cross-site scripting vulnerability.
55
* @kind path-problem
66
* @problem.severity error
7-
* @security-severity 6.1
7+
* @security-severity 7.8
88
* @precision high
99
* @id cs/web/xss
1010
* @tags security

csharp/ql/src/Security Features/CWE-117/LogForging.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* insertion of forged log entries by a malicious user.
55
* @kind path-problem
66
* @problem.severity error
7-
* @security-severity 7.8
7+
* @security-severity 6.1
88
* @precision high
99
* @id cs/log-forging
1010
* @tags security
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
category: queryMetadata
3+
---
4+
* The `@security-severity` metadata of `cs/log-forging` has been reduced from 7.8 (high) to 6.1 (medium).
5+
* The `@security-severity` metadata of `cs/web/xss` has been increased from 6.1 (medium) to 7.8 (high).

go/ql/src/Security/CWE-079/HtmlTemplateEscapingBypassXss.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* scripting vulnerability.
66
* @kind path-problem
77
* @problem.severity error
8-
* @security-severity 6.1
8+
* @security-severity 7.8
99
* @precision high
1010
* @id go/html-template-escaping-bypass-xss
1111
* @tags security

go/ql/src/Security/CWE-079/ReflectedXss.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* a cross-site scripting vulnerability.
55
* @kind path-problem
66
* @problem.severity error
7-
* @security-severity 6.1
7+
* @security-severity 7.8
88
* @precision high
99
* @id go/reflected-xss
1010
* @tags security

go/ql/src/Security/CWE-079/StoredXss.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* a stored cross-site scripting vulnerability.
55
* @kind path-problem
66
* @problem.severity error
7-
* @security-severity 6.1
7+
* @security-severity 7.8
88
* @precision low
99
* @id go/stored-xss
1010
* @tags security

go/ql/src/Security/CWE-117/LogInjection.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* insertion of forged log entries by a malicious user.
55
* @kind path-problem
66
* @problem.severity error
7-
* @security-severity 7.8
7+
* @security-severity 6.1
88
* @precision medium
99
* @id go/log-injection
1010
* @tags security
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
category: queryMetadata
3+
---
4+
* The `@security-severity` metadata of `go/log-injection` has been reduced from 7.8 (high) to 6.1 (medium).
5+
* The `@security-severity` metadata of `go/html-template-escaping-bypass-xss`, `go/reflected-xss` and `go/stored-xss` has been increased from 6.1 (medium) to 7.8 (high).

0 commit comments

Comments
 (0)