mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
Python: Add cherrypy handler function return values as taint sinks.
This commit is contained in:
3
python/ql/test/library-tests/web/cherrypy/Sinks.expected
Normal file
3
python/ql/test/library-tests/web/cherrypy/Sinks.expected
Normal file
@@ -0,0 +1,3 @@
|
||||
| red.py:8 | Str | externally controlled string |
|
||||
| test.py:11 | BinaryExpr | externally controlled string |
|
||||
| test.py:17 | BinaryExpr | externally controlled string |
|
||||
10
python/ql/test/library-tests/web/cherrypy/Sinks.ql
Normal file
10
python/ql/test/library-tests/web/cherrypy/Sinks.ql
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
import python
|
||||
|
||||
import semmle.python.web.HttpRequest
|
||||
import semmle.python.web.HttpResponse
|
||||
import semmle.python.security.strings.Untrusted
|
||||
|
||||
from TaintSink sink, TaintKind kind
|
||||
where sink.sinks(kind)
|
||||
select sink.getLocation().toString(), sink.(ControlFlowNode).getNode().toString(), kind
|
||||
Reference in New Issue
Block a user