Skip to content

ajtazer/heckit / skills/cve-hunting/method-clobbering

method-clobbering

Verified

Detect method clobbering via user-controlled object keys that overwrite built-in methods like toString, valueOf, or hasOwnProperty, causing crashes or logic bypass.

FileKindSize
SKILL.mdskill md3.7 KB
references/false-positive-indicators.mdmarkdown1.1 KB
references/poc-skeleton.mdmarkdown1.4 KB
references/sinks.mdmarkdown1.3 KB

references/sinks.md

View on GitHub
# Parser Patterns Creating Objects From Untrusted Keys

## CSV Parsers
| Library | Creates Plain Objects? | Key Source |
|---------|----------------------|------------|
| csv-parse | Yes (columns: true) | First row headers |
| papaparse | Yes (header: true) | First row headers |
| fast-csv | Yes (headers: true) | First row headers |
| csv-parser | Yes (default) | First row headers |
| csvtojson | Yes (default) | First row headers |

## Form/Query Parsers
| Library | Creates Plain Objects? | Key Source |
|---------|----------------------|------------|
| qs | Yes | Query string keys |
| querystring | Yes | Query string keys |
| body-parser (urlencoded) | Yes | Form field names |
| formidable | Yes | Form field names |
| busboy | Streams fields | Field names |
| multiparty | Yes | Form field names |

## Configuration Parsers
| Library | Creates Plain Objects? | Key Source |
|---------|----------------------|------------|
| dotenv | Yes | .env file keys |
| ini | Yes | INI section/key names |
| toml | Yes | TOML keys |
| yaml | Yes | YAML keys |

## Safe Patterns

- `Object.create(null)` -- no prototype, no methods to clobber
- `new Map()` -- Map objects have own methods, not inherited
- Key allowlist/blocklist -- explicitly filtering dangerous keys
- `Object.freeze()` on prototype -- prevents modification (but does not prevent clobbering on instances)
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