Skip to content

Commit 1be1496

Browse files
committed
use "depends to" for a taint-tracking query
1 parent c241185 commit 1be1496

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

go/ql/src/Security/CWE-209/StackTraceExposure.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,5 @@ class StackTraceExposureConfig extends TaintTracking::Configuration {
7777
from StackTraceExposureConfig cfg, DataFlow::PathNode source, DataFlow::PathNode sink
7878
where cfg.hasFlowPath(source, sink)
7979
select sink.getNode(), source, sink,
80-
"$@ flows to a HTTP response and may be exposed to an external user.", source.getNode(),
81-
"Stack trace information"
80+
"HTTP response depends on $@ and may be exposed to an external user.", source.getNode(),
81+
"stack trace information"

go/ql/test/query-tests/Security/CWE-209/StackTraceExposure.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ nodes
55
| test.go:17:10:17:12 | buf | semmle.label | buf |
66
subpaths
77
#select
8-
| test.go:17:10:17:12 | buf | test.go:14:2:14:4 | definition of buf : slice type | test.go:17:10:17:12 | buf | $@ flows to a HTTP response and may be exposed to an external user. | test.go:14:2:14:4 | definition of buf | Stack trace information |
8+
| test.go:17:10:17:12 | buf | test.go:14:2:14:4 | definition of buf : slice type | test.go:17:10:17:12 | buf | HTTP response depends on $@ and may be exposed to an external user. | test.go:14:2:14:4 | definition of buf | stack trace information |

0 commit comments

Comments
 (0)