File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
python/ql/src/semmle/python/frameworks Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -328,6 +328,10 @@ module AiohttpWebModel {
328
328
override string getSourceType ( ) { result = "aiohttp.web.Request" }
329
329
}
330
330
331
+ /**
332
+ * A read of the `request` attribute on an instance of a aiohttp.web View class,
333
+ * which is the request being processed currently.
334
+ */
331
335
class AiohttpViewClassRequestAttributeRead extends Request:: InstanceSource ,
332
336
RemoteFlowSource:: Range , DataFlow:: Node {
333
337
AiohttpViewClassRequestAttributeRead ( ) {
@@ -378,13 +382,15 @@ module AiohttpWebModel {
378
382
}
379
383
}
380
384
385
+ /** An attribute read on a `aiohttp.web.Request` that is a `MultiDictProxy` instance. */
381
386
class AiohttpRequestMultiDictProxyInstances extends Multidict:: MultiDictProxy:: InstanceSource {
382
387
AiohttpRequestMultiDictProxyInstances ( ) {
383
388
this .( DataFlow:: AttrRead ) .getObject ( ) = Request:: instance ( ) and
384
389
this .( DataFlow:: AttrRead ) .getAttributeName ( ) in [ "query" , "headers" ]
385
390
}
386
391
}
387
392
393
+ /** An attribute read on a `aiohttp.web.Request` that is a `yarl.URL` instance. */
388
394
class AiohttpRequestYarlUrlInstances extends Yarl:: Url:: InstanceSource {
389
395
AiohttpRequestYarlUrlInstances ( ) {
390
396
this .( DataFlow:: AttrRead ) .getObject ( ) = Request:: instance ( ) and
Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ module Yarl {
111
111
}
112
112
}
113
113
114
+ /** An attribute read on a `yarl.URL` that is a `MultiDictProxy` instance. */
114
115
class YarlUrlMultiDictProxyInstance extends Multidict:: MultiDictProxy:: InstanceSource {
115
116
YarlUrlMultiDictProxyInstance ( ) {
116
117
this .( DataFlow:: AttrRead ) .getObject ( ) = Yarl:: Url:: instance ( ) and
You can’t perform that action at this time.
0 commit comments