nuroctane/nur-cli/reviewing-reentrancy-and-callbacks

Claude Code and agent skill by nuroctane/nur-cli

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Review reentrancy and token/AMM callbacks: classic, cross-function, read-only, ERC-777/721/1155 hooks, Uniswap callbacks, failed-call DoS. Use on any value-moving Solidity that makes external calls.

Install

npx vskill@latest install nuroctane/nur-cli/reviewing-reentrancy-and-callbacks

SKILL.md

The same SKILL.md was published earlier as nuroctane/nur-cli/reviewing-reentrancy-and-callbacks.

Reviewing reentrancy and callbacks

SWC-107 plus the economic variants static tools miss. In-scope. Attacker contracts live in test/ only.

Variants

  1. Classic - external call then state update. CEI or nonReentrant.
  2. Cross-function - withdraw re-enters transfer that still sees old balances.
  3. Read-only - a view (totalAssets, getRate, balanceOf) used by another protocol mid-call. The view is "safe" and still exploitable.
  4. ERC-777 / 721 / 1155 hooks - tokensReceived, onERC721Received.
  5. AMM callbacks - uniswapV2Call, v3 swap/mint callbacks (reviewing-amm-and-cl-pools).
  6. Failed-call DoS - push ETH to a contract that reverts in receive (SWC-113). Pull payments.

Confirm

  • Slither reentrancy-eth / reentrancy-no-eth / reentrancy-benign.
  • Write a test attacker with receive() / onERC721Received that re-enters. Assert the invariant still holds (or that the call reverts).

Fix language (for reports)

Checks-Effects-Interactions, OZ ReentrancyGuard, pull-over-push, view isolation (snapshot before external call).

Do not ship a mainnet-ready attacker. The test file is the proof.

Paid bounty analogs

Paid Immunefi rows in this class are thinner than hacks. Still review:

AnalogPackNotes
OpenZeppelin Timelock reentrancy (also-paid)T21 / T07gov + callback
Curve Vyper 2023 hackT35compiler lock; case-cards.md 7.19
Conic / Sturdy / Penpie / Cream / Fei-Rari hacksT07 / T08case-cards.md

Read-only reentrancy on totalAssets / Curve LP is a contest staple (contest-winning-classes.md).

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Grok Build (Cursor)
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/nuroctane/nur-cli/reviewing-reentrancy-and-callbacks/badge)](https://verified-skill.com/skills/nuroctane/nur-cli/reviewing-reentrancy-and-callbacks)

Something wrong with this skill or its page? Tell us.