T09 · Insecure Skill Coding Practices
- Location
push_feishu.py:34- Finding
Webhook Secret May Be Exposed Through Exception Logging
- Content
View full analysis
> cron.log 2>&1 ``` Under that setup, exception output is persistently written to `cron.log`. The token can consequently remain available to any user or process permitted to read that file. ### Attack Path 1. The operator configures a valid Feishu webhook URL containing its secret token. 2. An HTTP failure occurs while posting to the webhook, such as a connection error, redirect failure, proxy error, or rejected response. 3. The resulting exception contains the request URL. 4. The generic exception handler prints the unsanitized exception. 5. If the documented cron configuration is used, the output is appended to `cron.log`. 6. A local us ...[truncated 582 chars]- Remediation
View remediation
