ajtazer/heckit / skills/cve-hunting/recursion-dos
recursion-dos
VerifiedDetect stack overflow and infinite recursion DoS in recursive parsers, tree walkers, and serializers that lack depth limits.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 3.9 KB |
| references/false-positive-indicators.md | markdown | 1.1 KB |
| references/poc-skeleton.md | markdown | 2.1 KB |
| references/sinks.md | markdown | 1.4 KB |
references/false-positive-indicators.md
View on GitHub# False Positive Indicators -- Recursion DoS
### 1. Has maxDepth Configuration
Library accepts and enforces a depth limit parameter.
### 2. Iterative Implementation
Uses explicit stack/queue instead of call stack recursion. Cannot stack overflow.
### 3. Circular Reference Detection
Library detects and breaks circular references (WeakSet/Set tracking). Prevents infinite recursion but does not prevent deep linear nesting.
### 4. Input Size Bounded
Framework limits input size (e.g., 1MB body limit) which naturally limits nesting depth. Calculate max possible depth from max input size.
### 5. RangeError Caught by Library
Library wraps recursive calls in try/catch and handles RangeError gracefully. Verify the catch block exists and handles the error properly.
### 6. Native JSON.parse/JSON.stringify
Native implementations have platform-level limits and handle edge cases. Generally safe, but custom revivers/replacers may add recursion.
### 7. Tail-Call Optimized (Rare)
Some recursive functions use tail-call optimization, preventing stack growth. Very rare in JavaScript (only in strict mode, Safari).
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |