mirror of
https://github.com/autistic-symposium/blockchains-security-toolkit.git
synced 2025-05-05 00:05:07 -04:00
Add notes on reentrancy
This commit is contained in:
parent
3598da0b0c
commit
5d26b5c842
1 changed files with 18 additions and 1 deletions
|
@ -1 +1,18 @@
|
|||
## Notes on Reentrancy
|
||||
## Reentrancy
|
||||
|
||||
|
||||
<br>
|
||||
|
||||
* When a contract calls an external function, that external function may itself call the calling function.
|
||||
* To prevent this attack, a contract can implement a lock in storage that prevents re-entrant calls.
|
||||
|
||||
<br>
|
||||
|
||||
### References to learn about reentrancy
|
||||
|
||||
<br>
|
||||
|
||||
* [Solidity docs](https://docs.soliditylang.org/en/latest/security-considerations.html#re-entrancy)
|
||||
* [DASP](https://www.dasp.co/#item-1)
|
||||
* [SWC](https://swcregistry.io/docs/SWC-107)
|
||||
* [Not so smart contract](https://github.com/crytic/not-so-smart-contracts/tree/master/reentrancy)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue