T09 · Insecure Skill Coding Practices
- Location
SKILL.md:63- Finding
Command Injection Through Unsafe User-Controlled Value Interpolation
- Content
View full analysis
\", \"provider\": \"sensesong\"}") ``` Additional affected code includes: ```bash SONG_A=$(curl -s -X POST "https://api.senseaudio.cn/v1/song/music/create" \ -H "Authorization: Bearer $SENSEAUDIO_API_KEY" \ -H "Content-Type: application/json" \ -d "{ \"model\": \"sensesong\", \"lyrics\": \"\", \"title\": \"<品牌名> Jingle\", \"vocal_gender\": \"\", \"style\": \", short jingle, 5-15 seconds, brand audio logo\", \"negative_tags\": \"long intro, extended outro, complex arrangement\" }") TASK_A=$(echo $SONG_A | jq -r '.task_id') ``` ```bash SONG_B=$(curl -s -X POST "https://api.senseaudio.cn/v1/song/music/create" \ -H "Authorization: Bearer $SENSEAUDIO_API_KEY" \ -H "Content-Type: application/json" \ -d "{ \"model\": \"sensesong\", \"instrumental\": true, \"title\": \"<品牌名> Jingle Instrumental\", \"style\": \"<STYLE>, short jingle, 5-15 seconds, brand audio logo\", \"negative_tags\": \"vocals, long intro, extended outro\" }") TASK_B=$(echo $SONG_B | jq -r '.task_id') ``` ```bash curl -s -X POST https://api.senseaudio.cn/v1/t2a_v2 \ -H "Authorization: Bearer $SENSEAUDIO_API_KEY" \ -H "Content-Type: application/json" \ -d "{ \"model\": \"SenseAudio-TTS-1.0\", \"text\": \"<品牌名>\", \"stream\": false, \"voice_setting\": { \"voice_id\": \"<VOICE_ID_MATCHING_TONE>\", \"speed\": 0.9 }, \"audio_setting\": { \"format\": \"mp3\" } }" -o brand_name.json ``` ### Technical Analysis The Skill instructs ...[truncated 2136 chars]- Remediation
View remediation
