T09 · Insecure Skill Coding Practices
- Location
scripts/sports_live.py:232- Finding
API Credential Exposed Through Command-Line Arguments
- Content
View full analysis
` | Calcio live (API-Football) | `python3 ... football_live abc123` | | `football_today ` | Calcio oggi (API-Football) | `python3 ... football_today abc123` | ``` `SKILL.md:52-53`: ```markdown - Se l'utente chiede il calcio live e ha fornito una API key → usa `football_live ` - Se non è specificato lo sport per "oggi", usa `soccer` come default ``` ### Technical Analysis The documented interface requires the API-Football credential to be included directly in the command line. The script then reads that credential from `sys.argv` through `rest[0]`. Secrets supplied as process arguments may be exposed through process inspection facilities, executor or orchestration telemetry, shell history, debugging output, and retained command logs. The documentation guardrail prohibiting disclosure in the final user-facing response does not prevent disclosure through these local execution channels. The subsequent network operations at `scripts/sports_live.py:170` and `scripts/sports_live.py:194` send the credential in the `x-apisports-key` header to the fixed HTTPS endpoint `v3.football.api-sports.io`. That transmission is necessary for the declared ...[truncated 1398 chars]- Remediation
View remediation
