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 25
25
| main.go:44:14:44:19 | "p4ss" | Hard-coded $@. | main.go:44:14:44:19 | "p4ss" | password |
26
26
| main.go:48:13:48:15 | tmp | Hard-coded $@. | main.go:44:14:44:19 | "p4ss" | password |
27
27
| 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 (
14
14
)
15
15
16
16
func check_ok () (interface {}, error ) {
17
- key := []byte (`key ` )
17
+ key := []byte (`some_key ` )
18
18
return cristal .NewSignerHS (cristal .HS256 , key ) // BAD
19
19
}
20
20
You can’t perform that action at this time.
0 commit comments