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/sinks.md
View on GitHub# Recursive Operation Patterns
## Parsers
| Library/Pattern | Function | Depth Limit? |
|-----------------|----------|-------------|
| JSON.parse (native) | Built-in | Platform-dependent (usually safe) |
| Custom JSON parsers | parse() | CHECK |
| XML recursive descent | parseElement() | CHECK |
| HTML tree builders | buildTree() | CHECK |
| Markdown parsers | parseBlock/parseInline | CHECK |
| YAML parsers | processNode() | CHECK -- alias expansion is separate |
| CSV nested parsers | parseCell() | RARE issue |
## Serializers
| Library/Pattern | Function | Depth Limit? |
|-----------------|----------|-------------|
| JSON.stringify (native) | Built-in | Throws on circular refs |
| Custom serializers | serialize/stringify | CHECK |
| HTML serializers | renderNode() | CHECK |
| XML serializers | xmlify/toXML | CHECK |
## Clone/Merge
| Library/Pattern | Function | Depth Limit? |
|-----------------|----------|-------------|
| lodash.cloneDeep | _.cloneDeep() | Has circular ref detection |
| rfdc | rfdc()(obj) | CHECK version |
| structuredClone (native) | Built-in | Handles circular refs |
| Custom deep clone | deepClone() | CHECK |
| Custom deep merge | deepMerge() | CHECK |
## Tree Walkers
| Pattern | Function | Depth Limit? |
|---------|----------|-------------|
| AST walkers | walk/visit/traverse | CHECK |
| DOM traversal | walkDOM() | CHECK |
| File system walkers | walkDir/readDir recursive | CHECK |
| Object flatteners | flatten() | CHECK |
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 |