Skip to content

Commit ad4ae1c

Browse files
authored
Merge pull request github#12132 from github/mbg/fix/log-injection-precision
Go: Downgrade `go/log-injection` precision to medium
2 parents 0f6b05d + 70a6ff8 commit ad4ae1c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @kind path-problem
66
* @problem.severity error
77
* @security-severity 7.8
8-
* @precision high
8+
* @precision medium
99
* @id go/log-injection
1010
* @tags security
1111
* external/cwe/cwe-117
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 precision of the `go/log-injection` query was decreased from `high` to `medium`, since it may not be able to identify every way in which log data may be sanitized. This also aligns it with the precision of comparable queries for other languages.

0 commit comments

Comments
 (0)