File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed
src/semmle/python/web/tornado
test/library-tests/web/tornado Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,8 @@ class TornadoConnectionWrite extends HttpResponseTaintSink {
2424 TornadoConnectionWrite ( ) {
2525 exists ( CallNode call , ControlFlowNode conn |
2626 conn = call .getFunction ( ) .( AttrNode ) .getObject ( "write" ) and
27- this = call .getAnArg ( )
28- |
27+ this = call .getAnArg ( ) and
2928 exists ( TornadoConnection tc | tc .taints ( conn ) )
30- or
31- isTornadoRequestHandlerInstance ( conn )
3229 )
3330 }
3431
@@ -41,8 +38,8 @@ class TornadoHttpRequestHandlerWrite extends HttpResponseTaintSink {
4138 TornadoHttpRequestHandlerWrite ( ) {
4239 exists ( CallNode call , ControlFlowNode node |
4340 node = call .getFunction ( ) .( AttrNode ) .getObject ( "write" ) and
44- isTornadoRequestHandlerInstance ( node ) and
45- this = call . getAnArg ( )
41+ this = call . getAnArg ( ) and
42+ isTornadoRequestHandlerInstance ( node )
4643 )
4744 }
4845
Original file line number Diff line number Diff line change 11| test.py:6:20:6:43 | tornado.HttpRequesHandler.write | externally controlled string |
2- | test.py:6:20:6:43 | tornado.connection.write | externally controlled string |
32| test.py:12:20:12:23 | tornado.HttpRequesHandler.write | externally controlled string |
4- | test.py:12:20:12:23 | tornado.connection.write | externally controlled string |
53| test.py:20:23:20:25 | tornado.HttpRequesHandler.redirect | externally controlled string |
64| test.py:26:20:26:48 | tornado.HttpRequesHandler.write | externally controlled string |
7- | test.py:26:20:26:48 | tornado.connection.write | externally controlled string |
8- FIXME
You can’t perform that action at this time.
0 commit comments