T09 · Insecure Skill Coding Practices
- Location
scripts/fetch_allnews_news.py:89- Finding
API Credential Exposure Through Process Arguments and URL Query Parameters
- Content
View full analysis
python3 scripts/fetch_allnews_news.py [num] [word] [page] GET https://apis.tianapi.com/allnews/index?key=YOUR_API_KEY&col=7&num=10&page=1 ``` ### Technical Analysis Sending the API key to the declared TianAPI service is necessary for the Skill's news-fetching functionality, and the request uses HTTPS. No evidence indicates that the key is sent to an unrelated host. However, the chosen credential-handling mechanisms create avoidable exposure surfaces: 1. A key supplied through `--key` is part of the process command line. It can be retained in shell history and may be observable through local process-inspection or au ...[truncated 2293 chars]- Remediation
View remediation
