T09 · Insecure Skill Coding Practices
- Location
scripts/generate.js:88- Finding
Unbounded Generation Count Allows Local Resource Exhaustion
- Content
View full analysis
- Remediation
View remediation
MAX_COUNT) { throw new RangeError(`count must be an integer between 1 and ${MAX_COUNT}`); } } ``` Invoke this validation before creating the output directory or entering the generation loop. In batch mode, additionally verify that `types.length * countPerType` does not exceed a fixed total-generation limit. ]]>
