Dynamic attribute access via getattr()
Low
- Category
- Dangerous Code Execution
- Content
def apply_overrides(payload: dict[str, str], args: argparse.Namespace) -> dict[str, str]: for key in ["q", "json", "mkt", "cc", "efirst", "filters"]: value = getattr(args, key, None) if value is not None: payload[key] = value- Confidence
- 50% confidence
- Finding
- value = getattr(args, key, None)
