We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7142ddc commit 4a9023bCopy full SHA for 4a9023b
python/ql/src/semmle/python/security/dataflow/StackTraceExposure.qll
@@ -22,6 +22,8 @@ class StackTraceExposureConfiguration extends TaintTracking::Configuration {
22
sink = any(HTTP::Server::HttpResponse response).getBody()
23
}
24
25
+ // A stack trace is accessible as the `__traceback__` attribute of a caught exception.
26
+ // seehttps://docs.python.org/3/reference/datamodel.html#traceback-objects
27
override predicate isAdditionalTaintStep(DataFlow::Node nodeFrom, DataFlow::Node nodeTo) {
28
exists(AttrRead attr | attr.getAttributeName() = "__traceback__" |
29
nodeFrom = attr.getObject() and
0 commit comments