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/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.
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