File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
go/ql/test/query-tests/Security/CWE-798 Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 2525| main.go:44:14:44:19 | "p4ss" | Hard-coded $@. | main.go:44:14:44:19 | "p4ss" | password |
2626| main.go:48:13:48:15 | tmp | Hard-coded $@. | main.go:44:14:44:19 | "p4ss" | password |
2727| main.go:50:15:50:21 | "p4ss2" | Hard-coded $@. | main.go:50:15:50:21 | "p4ss2" | password |
28- | sanitizer.go:18:44:18:46 | key | Hard-coded credential. | sanitizer.go:17:16:17:20 | `key ` | password |
28+ | sanitizer.go:18:44:18:46 | key | Hard-coded credential. | sanitizer.go:17:16:17:25 | `some_key ` | password |
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import (
1414)
1515
1616func check_ok () (interface {}, error ) {
17- key := []byte (`key ` )
17+ key := []byte (`some_key ` )
1818 return cristal .NewSignerHS (cristal .HS256 , key ) // BAD
1919}
2020
You can’t perform that action at this time.
0 commit comments