T09 · Insecure Skill Coding Practices
- Location
index.ts:623- Finding
Webhook Authentication Fails Open When the Shared Secret Is Missing
- Content
View full analysis
{ console.error("[Webhook] 审查处理失败:", error); }); ``` The flaw does not directly disclose the GitHub or Anthropic token. It does, however, let an unauthenticated party trigger privileged operations performed with those credentials. ### Attack Path 1. The service is deployed without `GITHUB_WEBHOOK_SECRET`, or the variable is accidentally empty. 2. An attacker submits an unsigned `POST /webhook/github` request. 3. The attacker supplies `x-github-event: pull_request` and a forged JSON payload using a supported action such as `opened`. 4. The payload names a repository and pull request accessible to the configured GitHub token. 5. The service ...[truncated 776 chars]- Remediation
View remediation
