Static analysis built for engineers. Find what matters across thousands of files in seconds.
PYTHON-DJANGO-SEC-001/rule.py from codepathfinder import calls, flows
@python_rule(
id="DJANGO-SQLI", severity="CRITICAL", cwe="CWE-89",
)
def detect_sqli():
return flows(
from_sources=[calls("request.GET.get")],
to_sinks=[calls("cursor.execute")],
sanitized_by=[calls("escape")],
)