T09 · Insecure Skill Coding Practices
- Location
tools/openstreet_skill.py:374- Finding
Unbounded Rendering Inputs Allow Resource Exhaustion
- Content
View full analysis
int: if args.points_base64: decoded = base64.b64decode(args.points_base64).decode("utf-8") data = json.loads(decoded) elif args.points_file: data = json.loads(Path(args.points_file).read_text(encoding="utf-8")) else: raise ValueError("One of --points-file or --points-base64 is required") if not isinstance(data, lis ...[truncated 2788 chars]- Remediation
View remediation
MAX_PIXELS: raise ValueError("Requested image exceeds the maximum pixel count") if len(data) > MAX_POINTS: raise ValueError(f"At most {MAX_POINTS} points are allowed") ``` ]]>
