Skip to content

ajtazer/heckit / skills/cve-hunting/recursion-dos

recursion-dos

Verified

Detect stack overflow and infinite recursion DoS in recursive parsers, tree walkers, and serializers that lack depth limits.

FileKindSize
SKILL.mdskill md3.9 KB
references/false-positive-indicators.mdmarkdown1.1 KB
references/poc-skeleton.mdmarkdown2.1 KB
references/sinks.mdmarkdown1.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 |
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall