ajtazer/heckit / skills/cve-hunting/method-clobbering
method-clobbering
VerifiedDetect method clobbering via user-controlled object keys that overwrite built-in methods like toString, valueOf, or hasOwnProperty, causing crashes or logic bypass.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 3.7 KB |
| references/false-positive-indicators.md | markdown | 1.1 KB |
| references/poc-skeleton.md | markdown | 1.4 KB |
| references/sinks.md | markdown | 1.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)
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 |