Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit 42d16ca

Browse files
author
Sauyon Lee
committed
Use stubber for CWE-643 tests, and test example
1 parent adc8730 commit 42d16ca

43 files changed

Lines changed: 3702 additions & 462 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ql/test/query-tests/Security/CWE-312/CleartextLogging.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ edges
2222
| passwords.go:127:14:127:19 | config [y] : string | passwords.go:127:14:127:21 | selection of y |
2323
| util.go:16:9:16:18 | selection of password : string | passwords.go:28:14:28:28 | call to getPassword |
2424
nodes
25-
| main.go:12:14:12:21 | password | semmle.label | password |
25+
| main.go:15:14:15:21 | password | semmle.label | password |
2626
| passwords.go:8:12:8:12 | definition of x : string | semmle.label | definition of x : string |
2727
| passwords.go:9:14:9:14 | x | semmle.label | x |
2828
| passwords.go:25:14:25:21 | password | semmle.label | password |
@@ -64,7 +64,7 @@ nodes
6464
| passwords.go:127:14:127:21 | selection of y | semmle.label | selection of y |
6565
| util.go:16:9:16:18 | selection of password : string | semmle.label | selection of password : string |
6666
#select
67-
| main.go:12:14:12:21 | password | main.go:12:14:12:21 | password | main.go:12:14:12:21 | password | Sensitive data returned by $@ is logged here. | main.go:12:14:12:21 | password | an access to password |
67+
| main.go:15:14:15:21 | password | main.go:15:14:15:21 | password | main.go:15:14:15:21 | password | Sensitive data returned by $@ is logged here. | main.go:15:14:15:21 | password | an access to password |
6868
| passwords.go:9:14:9:14 | x | passwords.go:30:8:30:15 | password : string | passwords.go:9:14:9:14 | x | Sensitive data returned by $@ is logged here. | passwords.go:30:8:30:15 | password | an access to password |
6969
| passwords.go:25:14:25:21 | password | passwords.go:25:14:25:21 | password | passwords.go:25:14:25:21 | password | Sensitive data returned by $@ is logged here. | passwords.go:25:14:25:21 | password | an access to password |
7070
| passwords.go:26:14:26:23 | selection of password | passwords.go:26:14:26:23 | selection of password | passwords.go:26:14:26:23 | selection of password | Sensitive data returned by $@ is logged here. | passwords.go:26:14:26:23 | selection of password | an access to password |

ql/test/query-tests/Security/CWE-312/vendor/github.com/golang/glog/LICENSE

Lines changed: 191 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)