Skip to content

Commit 22096c3

Browse files
committed
Python: Add standard HttpSources tests for BaseHTTPRequestHandler
1 parent 51a9094 commit 22096c3

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
| test.py:18:13:18:16 | self | BaseHTTPRequestHandlerKind |
2+
| test.py:20:13:20:16 | self | BaseHTTPRequestHandlerKind |
3+
| test.py:22:13:22:16 | self | BaseHTTPRequestHandlerKind |
4+
| test.py:24:13:24:16 | self | BaseHTTPRequestHandlerKind |
5+
| test.py:25:13:25:16 | self | BaseHTTPRequestHandlerKind |
6+
| test.py:26:13:26:16 | self | BaseHTTPRequestHandlerKind |
7+
| test.py:27:13:27:16 | self | BaseHTTPRequestHandlerKind |
8+
| test.py:28:13:28:16 | self | BaseHTTPRequestHandlerKind |
9+
| test.py:29:13:29:16 | self | BaseHTTPRequestHandlerKind |
10+
| test.py:30:13:30:16 | self | BaseHTTPRequestHandlerKind |
11+
| test.py:31:13:31:16 | self | BaseHTTPRequestHandlerKind |
12+
| test.py:32:13:32:16 | self | BaseHTTPRequestHandlerKind |
13+
| test.py:33:17:33:20 | self | BaseHTTPRequestHandlerKind |
14+
| test.py:34:19:34:22 | self | BaseHTTPRequestHandlerKind |
15+
| test.py:36:13:36:16 | self | BaseHTTPRequestHandlerKind |
16+
| test.py:37:13:37:16 | self | BaseHTTPRequestHandlerKind |
17+
| test.py:40:16:44:9 | Attribute() | CgiFieldStorageFormKind |
18+
| test.py:41:13:41:16 | self | BaseHTTPRequestHandlerKind |
19+
| test.py:42:13:42:16 | self | BaseHTTPRequestHandlerKind |
20+
| test.py:43:64:43:67 | self | BaseHTTPRequestHandlerKind |
21+
| test.py:69:9:69:12 | self | BaseHTTPRequestHandlerKind |
22+
| test.py:70:9:70:12 | self | BaseHTTPRequestHandlerKind |
23+
| test.py:71:9:71:12 | self | BaseHTTPRequestHandlerKind |
24+
| test.py:72:9:72:12 | self | BaseHTTPRequestHandlerKind |
25+
| test.py:73:9:73:12 | self | BaseHTTPRequestHandlerKind |
26+
| test.py:74:15:74:18 | self | BaseHTTPRequestHandlerKind |
27+
| test.py:78:16:82:9 | Attribute() | CgiFieldStorageFormKind |
28+
| test.py:79:13:79:16 | self | BaseHTTPRequestHandlerKind |
29+
| test.py:80:13:80:16 | self | BaseHTTPRequestHandlerKind |
30+
| test.py:81:64:81:67 | self | BaseHTTPRequestHandlerKind |
31+
| test.py:85:13:85:16 | self | BaseHTTPRequestHandlerKind |
32+
| test.py:86:13:86:16 | self | BaseHTTPRequestHandlerKind |
33+
| test.py:96:9:96:12 | self | BaseHTTPRequestHandlerKind |
34+
| test.py:97:9:97:12 | self | BaseHTTPRequestHandlerKind |
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import python
2+
import semmle.python.web.HttpRequest
3+
import semmle.python.security.strings.Untrusted
4+
5+
from HttpRequestTaintSource source, TaintKind kind
6+
where
7+
source.isSourceOf(kind) and
8+
source.getLocation().getFile().getShortName() != "cgi.py"
9+
select source.(ControlFlowNode).getNode(), kind

0 commit comments

Comments
 (0)