T09 · Insecure Skill Coding Practices
Warning
- Location
scripts/validate-request.mjs:36- Finding
Insufficient Validation of Sensitive and Structured Request Values
- Content
View full analysis
500) fail('INVALID_OBJECTIVE'); else process.stdout.write(JSON.stringify({valid: true, action: request.action, authority: 'proposal-only'}) + '\n'); ``` ### Technical Analysis The validator attempts to reject unsafe content by serializing the entire `input` object and applying a keyword-based regular expression. It then checks only the allowed top-level property names for `discovery`, `plan`, and `preview` requests. This does not enforce types, formats, maximum lengths, or structural restrictions for the following accepted properties: - `discovery.field` - `discovery.value` - `plan.receiptId` - `preview.receiptId` Consequently, `value` and `receiptId` can contain neste ...[truncated 2500 chars]- Remediation
View remediation
