MCPcopy Create free account
hub / github.com/SourceCode-AI/aura / __mark_django_view

Method __mark_django_view

aura/analyzers/python/taint/visitor.py:70–87  ·  view source on GitHub ↗
(self, context)

Source from the content-addressed store, hash-verified

68 return
69
70 def __mark_django_view(self, context):
71 if "flask_route" in context.node.tags:
72 return
73 elif "django_view" in context.node.tags:
74 return
75 elif not isinstance(context.node, FunctionDef):
76 return
77
78 for r in context.node.return_nodes.values(): # TODO: transition this to the apply_taint of FunctionDefPattern
79 f_name = r.cached_full_name
80 if type(f_name) != str:
81 continue
82
83
84 if "django_view" in r.value.tags:
85 context.node.args.taints["request"] = Taints.TAINTED
86 context.visitor.modified = True
87 return
88
89 def __mark_sources(self, context):
90 if isinstance(

Callers 1

_visit_nodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected