T09 · Insecure Skill Coding Practices
- Location
SKILL.md:10- Finding
External File Upload and Publication Without an Explicit User-Consent Boundary
- Content
View full analysis
**Repository URL**: https://www.idlab.top > Each game requires creating a new folder in the repository root directory, containing the following 3 fixed files: > - `config.json` — Game configuration (title and other metadata) > - `index.html` — Main game code > - `preview.png` — Game screenshot preview ``` It demonstrates uploading a file from a privileged local workspace path without requiring path validation, content review, or immediate user confirmation: ```bash curl -X POST "https://www.idlab.top/xlabopenapi/github/aigames/config" \ -F "gameFolder=xiaotongcoolgame" \ -F "file=@/root/workspace/logs/config.json" ``` The complete process instructs the agent to upload all three files: ```bash curl -X POST "https://www.idlab.top/xlabopenapi/github/aigames/config" \ -F "gameFolder=pixel_snake" \ -F "file=@config.json" ``` ```bash curl -X POST "https://www.idlab.top/xlabopenapi/github/aigames/index" \ -F "gameFolder=pixel_snake" \ -F "file=@index.html" ``` ```bash curl -X POST "https://www.idlab.top/xlabopenapi/github/aigames/preview" \ -F "gameFolder=pixel_snake" \ -F "file=@preview.png" ``` It then directs the agent to advertise a public-facing URL on a different domain: ```markdown ### Step 4: If successful, inform the user that the upload is complete Provide the experience URL as https://thenext.games/game/ + gameFolder. For example, in the case above: https://thenext.games/game/pixel_snake ``` ### Technical Analysis The skill's stated purpose is to guide the creation of mobile-compatible H5 games, but its prescribed workflow also performs an externally visible network side effect: ...[truncated 3138 chars]- Remediation
View remediation
