Skip to content

Commit 6eb2401

Browse files
committed
Python: Add docs to web/stdlib/Request.qll
1 parent 26ed911 commit 6eb2401

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/ql/src/semmle/python/web/stdlib/Request.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import python
22
import semmle.python.security.TaintTracking
33
import semmle.python.web.Http
44

5+
/** Source of BaseHTTPRequestHandler instances. */
56
class StdLibRequestSource extends HttpRequestTaintSource {
67
StdLibRequestSource() {
78
exists(ClassValue cls |
@@ -16,6 +17,7 @@ class StdLibRequestSource extends HttpRequestTaintSource {
1617
override predicate isSourceOf(TaintKind kind) { kind instanceof BaseHTTPRequestHandlerKind }
1718
}
1819

20+
/** TaintKind for an instance of BaseHTTPRequestHandler. */
1921
class BaseHTTPRequestHandlerKind extends TaintKind {
2022
BaseHTTPRequestHandlerKind() { this = "BaseHTTPRequestHandlerKind" }
2123

@@ -31,6 +33,7 @@ class BaseHTTPRequestHandlerKind extends TaintKind {
3133
}
3234
}
3335

36+
/** TaintKind for headers (instance of HTTPMessage). */
3437
class HTTPMessageKind extends ExternalStringDictKind {
3538
override TaintKind getTaintOfMethodResult(string name) {
3639
result = super.getTaintOfMethodResult(name)

0 commit comments

Comments
 (0)