Web3Exploit logoWeb3Exploit
← Back to Glossary
Glossary

Reentrancy Guard

A lock that blocks nested entry into protected functions.

A mutex-style modifier (e.g. OpenZeppelin's nonReentrant) that sets a flag on entry and clears it on exit, reverting any re-entrant call while the flag is set.

Related attack patterns