-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8e730bf
commit 53eca47
Showing
2 changed files
with
22 additions
and
9 deletions.
There are no files selected for viewing
10 changes: 8 additions & 2 deletions
10
go/ql/test/query-tests/Security/CWE-078/StoredCommand.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 14 additions & 7 deletions
21
go/ql/test/query-tests/Security/CWE-079/StoredXss.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,34 @@ | ||
#select | ||
| StoredXss.go:13:21:13:36 | ...+... | StoredXss.go:13:21:13:31 | call to Name | StoredXss.go:13:21:13:36 | ...+... | Stored cross-site scripting vulnerability due to $@. | StoredXss.go:13:21:13:31 | call to Name | stored value | | ||
| stored.go:30:22:30:25 | name | stored.go:18:3:18:28 | ... := ...[0] | stored.go:30:22:30:25 | name | Stored cross-site scripting vulnerability due to $@. | stored.go:18:3:18:28 | ... := ...[0] | stored value | | ||
| stored.go:61:22:61:25 | path | stored.go:59:30:59:33 | definition of path | stored.go:61:22:61:25 | path | Stored cross-site scripting vulnerability due to $@. | stored.go:59:30:59:33 | definition of path | stored value | | ||
edges | ||
| StoredXss.go:13:21:13:31 | call to Name | StoredXss.go:13:21:13:36 | ...+... | provenance | | | ||
| stored.go:18:3:18:28 | ... := ...[0] | stored.go:25:14:25:17 | rows | provenance | | | ||
| stored.go:25:14:25:17 | rows | stored.go:25:24:25:26 | &... | provenance | FunctionModel | | ||
| stored.go:25:14:25:17 | rows | stored.go:25:29:25:33 | &... | provenance | FunctionModel | | ||
| stored.go:18:3:18:28 | ... := ...[0] | stored.go:25:14:25:17 | rows | provenance | Src:MaD:1 | | ||
| stored.go:25:14:25:17 | rows | stored.go:25:14:25:34 | []type{args} | provenance | MaD:2 | | ||
| stored.go:25:14:25:17 | rows | stored.go:25:14:25:34 | []type{args} [array] | provenance | MaD:2 | | ||
| stored.go:25:14:25:34 | []type{args} | stored.go:25:24:25:26 | &... | provenance | | | ||
| stored.go:25:14:25:34 | []type{args} | stored.go:25:29:25:33 | &... | provenance | | | ||
| stored.go:25:14:25:34 | []type{args} | stored.go:30:22:30:25 | name | provenance | | | ||
| stored.go:25:14:25:34 | []type{args} [array] | stored.go:25:24:25:26 | &... | provenance | | | ||
| stored.go:25:14:25:34 | []type{args} [array] | stored.go:25:29:25:33 | &... | provenance | | | ||
| stored.go:25:24:25:26 | &... | stored.go:25:14:25:34 | []type{args} [array] | provenance | | | ||
| stored.go:25:29:25:33 | &... | stored.go:25:14:25:34 | []type{args} [array] | provenance | | | ||
| stored.go:25:29:25:33 | &... | stored.go:30:22:30:25 | name | provenance | | | ||
| stored.go:59:30:59:33 | definition of path | stored.go:61:22:61:25 | path | provenance | | | ||
models | ||
| 1 | Source: database/sql; DB; true; Query; ; ; ReturnValue[0]; database; manual | | ||
| 2 | Summary: database/sql; Rows; true; Scan; ; ; Argument[receiver]; Argument[0].ArrayElement; taint; manual | | ||
nodes | ||
| StoredXss.go:13:21:13:31 | call to Name | semmle.label | call to Name | | ||
| StoredXss.go:13:21:13:36 | ...+... | semmle.label | ...+... | | ||
| stored.go:18:3:18:28 | ... := ...[0] | semmle.label | ... := ...[0] | | ||
| stored.go:25:14:25:17 | rows | semmle.label | rows | | ||
| stored.go:25:14:25:34 | []type{args} | semmle.label | []type{args} | | ||
| stored.go:25:14:25:34 | []type{args} [array] | semmle.label | []type{args} [array] | | ||
| stored.go:25:24:25:26 | &... | semmle.label | &... | | ||
| stored.go:25:29:25:33 | &... | semmle.label | &... | | ||
| stored.go:30:22:30:25 | name | semmle.label | name | | ||
| stored.go:59:30:59:33 | definition of path | semmle.label | definition of path | | ||
| stored.go:61:22:61:25 | path | semmle.label | path | | ||
subpaths | ||
#select | ||
| StoredXss.go:13:21:13:36 | ...+... | StoredXss.go:13:21:13:31 | call to Name | StoredXss.go:13:21:13:36 | ...+... | Stored cross-site scripting vulnerability due to $@. | StoredXss.go:13:21:13:31 | call to Name | stored value | | ||
| stored.go:30:22:30:25 | name | stored.go:18:3:18:28 | ... := ...[0] | stored.go:30:22:30:25 | name | Stored cross-site scripting vulnerability due to $@. | stored.go:18:3:18:28 | ... := ...[0] | stored value | | ||
| stored.go:61:22:61:25 | path | stored.go:59:30:59:33 | definition of path | stored.go:61:22:61:25 | path | Stored cross-site scripting vulnerability due to $@. | stored.go:59:30:59:33 | definition of path | stored value | |