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 873fd66 commit 535b4eaCopy full SHA for 535b4ea
go/ql/lib/ext/net.http.model.yml
@@ -37,3 +37,11 @@ extensions:
37
- ["net/http", "Request", True, "PostFormValue", "", "", "ReturnValue", "remote", "manual"]
38
- ["net/http", "Request", True, "Referer", "", "", "ReturnValue", "remote", "manual"]
39
- ["net/http", "Request", True, "UserAgent", "", "", "ReturnValue", "remote", "manual"]
40
+ - ["net/http", "Request", True, "Body", "", "", "", "remote", "manual"]
41
+ - ["net/http", "Request", True, "GetBody", "", "", "", "remote", "manual"]
42
+ - ["net/http", "Request", True, "Form", "", "", "", "remote", "manual"]
43
+ - ["net/http", "Request", True, "PostForm", "", "", "", "remote", "manual"]
44
+ - ["net/http", "Request", True, "MultipartForm", "", "", "", "remote", "manual"]
45
+ - ["net/http", "Request", True, "Header", "", "", "", "remote", "manual"]
46
+ - ["net/http", "Request", True, "Trailer", "", "", "", "remote", "manual"]
47
+ - ["net/http", "Request", True, "URL", "", "", "", "remote", "manual"]
go/ql/lib/semmle/go/frameworks/stdlib/NetHttp.qll
@@ -8,16 +8,6 @@ private import semmle.go.dataflow.internal.FlowSummaryImpl::Private
8
9
/** Provides models of commonly used functions in the `net/http` package. */
10
module NetHttp {
11
- /** An access to an HTTP request field whose value may be controlled by an untrusted user. */
12
- private class UserControlledRequestField extends RemoteFlowSource::Range, DataFlow::FieldReadNode {
13
- UserControlledRequestField() {
14
- exists(string fieldName | this.getField().hasQualifiedName("net/http", "Request", fieldName) |
15
- fieldName =
16
- ["Body", "GetBody", "Form", "PostForm", "MultipartForm", "Header", "Trailer", "URL"]
17
- )
18
- }
19
20
-
21
/** The declaration of a variable which either is or has a field that implements the http.ResponseWriter type */
22
private class StdlibResponseWriter extends Http::ResponseWriter::Range {
23
SsaWithFields v;
0 commit comments