Dynamic attribute access via getattr()
Low
- Category
- Dangerous Code Execution
- Confidence
- 50% confidence
- Finding
Dynamic getattr() with a non-literal attribute name can access arbitrary object attributes, potentially bypassing access controls.
- Content
python def decode(args): spec = {"type": args.type} for k in ("memory_density", "base_density", "latex_density"): v = getattr(args, k) if v is not None: spec[k] = v if args.coils:
