@@ -5,8 +5,7 @@ async def test_taint(request: web.Request): # $ requestHandler
55 ensure_tainted (
66 request , # $ tainted
77
8- # yarl.URL instances, see tests under `yarl` framework tests
9- # https://yarl.readthedocs.io/en/stable/api.html#yarl.URL
8+ # yarl.URL (see `yarl` framework tests)
109 request .url , # $ tainted
1110 request .url .human_repr (), # $ tainted
1211 request .rel_url , # $ tainted
@@ -25,28 +24,11 @@ async def test_taint(request: web.Request): # $ requestHandler
2524 request .match_info ["key" ], # $ tainted
2625 request .match_info .get ("key" ), # $ tainted
2726
28- # multidict.MultiDictProxy[str]
29- # see https://multidict.readthedocs.io/en/stable/multidict.html#multidict.MultiDictProxy
30- # TODO: Should have a better way to capture that we in fact _do_ model this as a
31- # an instance of the right class, and have the actual taint_test for that in a
32- # different file!
27+ # multidict.MultiDictProxy[str] (see `multidict` framework tests)
3328 request .query , # $ tainted
34- request .query ["key" ], # $ tainted
35- request .query .get ("key" ), # $ tainted
3629 request .query .getone ("key" ), # $ tainted
37- request .query .getall ("key" ), # $ tainted
38- request .query .keys (), # $ MISSING: tainted
39- request .query .values (), # $ tainted
40- request .query .items (), # $ tainted
41- request .query .copy (), # $ tainted
42- list (request .query ), # $ tainted
43- iter (request .query ), # $ tainted
44-
45- # multidict.CIMultiDictProxy[str]
46- # see https://multidict.readthedocs.io/en/stable/multidict.html#multidict.CIMultiDictProxy
47- # TODO: Should have a better way to capture that we in fact _do_ model this as a
48- # an instance of the right class, and have the actual taint_test for that in a
49- # different file!
30+
31+ # multidict.CIMultiDictProxy[str] (see `multidict` framework tests)
5032 request .headers , # $ tainted
5133 request .headers .getone ("key" ), # $ tainted
5234
@@ -99,7 +81,7 @@ async def test_taint(request: web.Request): # $ requestHandler
9981 # aiohttp.multipart.MultipartReader
10082 await request .multipart (), # $ tainted
10183
102- # multidict.MultiDictProxy[str]
84+ # multidict.MultiDictProxy[str] (see `multidict` framework tests)
10385 await request .post (), # $ tainted
10486 (await request .post ()).getone ("key" ), # $ MISSING: tainted
10587 )
0 commit comments