-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathXNetHtml.qll
More file actions
24 lines (20 loc) · 926 Bytes
/
XNetHtml.qll
File metadata and controls
24 lines (20 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**
* Provides classes modeling security-relevant aspects of the `golang.org/x/net/html` subpackage.
*
* Currently we support the unmarshalling aspect of this package, conducting taint from an untrusted
* reader to an untrusted `Node` tree or `Tokenizer` instance, as well as simple remarshalling of `Node`s
* that were already untrusted. We do not yet model adding a child `Node` to a tree then calling `Render`
* yielding an untrustworthy string.
*/
overlay[local?]
module;
import go
/** Provides models of commonly used functions in the `golang.org/x/net/html` subpackage. */
module XNetHtml {
/** Gets the package name `golang.org/x/net/html`. */
string packagePath() { result = package("golang.org/x/net", "html") }
private class EscapeString extends EscapeFunction::Range {
EscapeString() { this.hasQualifiedName(packagePath(), "EscapeString") }
override string kind() { result = "html" }
}
}