T09 · Insecure Skill Coding Practices
- Location
scripts/entur.py:87- Finding
GraphQL Injection Through Unescaped CLI and Geocoder Inputs
- Content
View full analysis
str: if "id" in place: s = f'place: "{place["id"]}"' else: c = place["coords"] s = f'coordinates: {{latitude: {c["lat"]}, longitude: {c["lon"]}}}' if "name" in place: s += f', name: "{place["name"]}"' return s ``` ### Technical Analysis The script constructs GraphQL documents by directly interpolating values originating from command-line arguments or geocoder responses. The affected values include: - `--time` - `--modes` - Stop IDs used by the ` ...[truncated 1999 chars]- Remediation
View remediation
