T09 · Insecure Skill Coding Practices
- Location
send.js:17- Finding
Untrusted Local Configuration Can Redirect Messages to Arbitrary HTTP Endpoints
- Content
View full analysis
{ ``` ### Technical Analysis The configuration loader searches for `.dingtalk-push.json` in the current working directory and merges file-controlled properties after environment-derived properties: ```javascript return { ...defaultConfig, ...fileConfig }; ``` As a result, a working-directory configuration file can silently override an explicitly configured `DINGTALK_WEBHOOK` or `DINGTALK_SECRET`. This is unsafe when the command is run from an untrusted or collaboratively maintained repository. The resulting webhook is accepte ...[truncated 2676 chars]- Remediation
View remediation
