vetkit.py.code-injection.request-getattr
An attribute name taken from request input is looked up with getattr() and called. Attackers can invoke any method of the object.
Last updated:
Suite: Security
python
An attribute name taken from request input is looked up with getattr() and called. Attackers can invoke any method of the object.
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Dispatch through an explicit dictionary of allowed handlers, or check the name against an allow-list.
References
Source: packages/engine/rules/sast/python.yml.
Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.