Skip to content

Commit 4a9023b

Browse files
committed
Python: add comment with ref
1 parent 7142ddc commit 4a9023b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/ql/src/semmle/python/security/dataflow/StackTraceExposure.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ class StackTraceExposureConfiguration extends TaintTracking::Configuration {
2222
sink = any(HTTP::Server::HttpResponse response).getBody()
2323
}
2424

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
2527
override predicate isAdditionalTaintStep(DataFlow::Node nodeFrom, DataFlow::Node nodeTo) {
2628
exists(AttrRead attr | attr.getAttributeName() = "__traceback__" |
2729
nodeFrom = attr.getObject() and

0 commit comments

Comments
 (0)