From b208ff451af96d8fbcf223a5fa265f2a241cf409 Mon Sep 17 00:00:00 2001 From: "steinkirch.eth, phd" <1130416+mvonsteinkirch@users.noreply.github.com> Date: Mon, 19 Jun 2023 09:10:17 -0700 Subject: [PATCH] Update README.md --- advanced_expert/vulnerabilities/reentrancy_attacks/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/advanced_expert/vulnerabilities/reentrancy_attacks/README.md b/advanced_expert/vulnerabilities/reentrancy_attacks/README.md index 843591c..89613d3 100644 --- a/advanced_expert/vulnerabilities/reentrancy_attacks/README.md +++ b/advanced_expert/vulnerabilities/reentrancy_attacks/README.md @@ -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.