In-depth lesson · Reentrancy
Tips for beginners
Every point the Reentrancy reports back under this heading, best-backed first, each with the reports it is seen in.
-
Test the value-moving flows first: deposits, withdrawals, claims, settlements, mints, liquidations and reward distributions. These are where the evidence concentrates and where impact is easiest to show.
Seen in 4 reports
-
Start with functions that send ETH or transfer tokens and then write state. Read the order of operations: if a balance, share or index is written after the external call, that is the first thing to test.
Seen in 3 reports
-
Keep the report focused on the root cause and the fix: state updated after the external call, or a missing non-reentrant modifier. Explain the sequence in plain steps and cite the affected function, without including exploit code.
Seen in 3 reports
-
Look for state-changing functions that make external calls without a non-reentrant modifier. A single missing guard on a user-facing deposit or withdraw function is a common finding.
Seen in 2 reports
-
Watch for guards that exist but can be bypassed. A reentrancy check in one function does not protect another, and a guard in a rage quit or account contract may be circumventable.
-
When you find one instance, check sibling functions and related contracts for the same ordering mistake. The same pattern often repeats across deposit, withdraw and claim paths.
Seen in 2 reports
-
Treat hookable tokens as attack surface. ERC777 transfers, safe mint callbacks and NFT received callbacks all hand control to the recipient, so any flow that moves such a token deserves a reentry test.
-
Check initialisers separately. The initializer modifier may not prevent reentry during initialisation, so try re-entering the initialise method while setup is still in progress.
Seen in 1 report
-
Do not stop at the function that made the call. Try re-entering a different function in the same contract, or a related contract that reads the first one's state, because cross-function and cross-contract variants are common.
Seen in 1 report
-
Show impact concretely. Demonstrate that the attacker receives more than their share, that another user's funds are taken, that a pool is left short, or that a fee or timelock is bypassed. A reentry that changes nothing of value is not a finding.
Seen in 1 report
-
Check scope before you spend time. Confirm the contract and flow are in scope, and that the impact is within the program's rules; reporting an out-of-scope contract or a theoretical reentry with no loss is a common beginner mistake.
Seen in 1 report