mirror of
https://github.com/autistic-symposium/blockchains-security-toolkit.git
synced 2025-06-24 14:40:40 -04:00
Update README.md
This commit is contained in:
parent
4a224313e3
commit
b208ff451a
1 changed files with 3 additions and 1 deletions
|
@ -4,7 +4,9 @@
|
|||
### tl; dr
|
||||
|
||||
* when a contract calls an external function, that external function may itself call the calling function.
|
||||
* a reentrancy attack may occur when a function makes an external call to another untrusted contract. Then, the unstrusted contract makes a recursive callback to the vulnerable contract function to steal funds.
|
||||
* a reentrancy attack may occur when:
|
||||
* a function makes an external call to a untrusted contract
|
||||
* the unstrusted contract makes a recursive callback to a vulnerable contract function to steal funds
|
||||
* to prevent this attack, a contract can implement a lock in storage that prevents re-entrant calls.
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue