We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0091b83 commit 96646abCopy full SHA for 96646ab
go/ql/src/experimental/CWE-525/WebCacheDeception.ql
@@ -19,6 +19,7 @@ where
19
httpHandleFuncCall.getTarget().hasQualifiedName("net/http", "HandleFunc") and
20
httpHandleFuncCall.getArgument(0).getType().getUnderlyingType() instanceof StringType and
21
httpHandleFuncCall.getArgument(0).getStringValue().matches("%/") and
22
+ httpHandleFuncCall.getArgument(1) = rn and
23
rn.reads(f) and
24
f.getParameter(0) = hw.getResponseWriter() and
25
hw.getHeaderName() = "cache-control"
0 commit comments