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/false-positive-indicators.md
View on GitHub# False Positive Indicators -- Method Clobbering
### 1. Uses Object.create(null)
Objects created with null prototype have no inherited methods. toString, valueOf, hasOwnProperty do not exist to be clobbered.
### 2. Has Key Allowlist/Blocklist
Parser filters or rejects keys matching built-in method names.
### 3. Does Not Call Methods on Parsed Objects
If the code never calls toString(), valueOf(), hasOwnProperty(), or other inherited methods on the parsed result, clobbering has no effect.
### 4. Input From Trusted Source
Keys come from trusted sources (admin config, database schema), not user input.
### 5. JSON.parse Does the Same
If the parser produces the same result as JSON.parse for the same input structure, clobbering is not a library-specific vulnerability. You need to show WHY the library is worse.
### 6. Library Already Handles This
Check if recent versions added protection. Many CSV parsers added key filtering after prior CVEs.
### 7. Crash Is Caught
If the code wraps the usage in try/catch and handles TypeError gracefully, the DoS impact is eliminated.
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 |