Add mitigation for BadParity

This commit is contained in:
Tobias Eidelpes 2022-01-01 15:46:23 +01:00
parent fc82b8c44b
commit c22a3ec2f3
2 changed files with 3 additions and 1 deletions

Binary file not shown.

View File

@ -127,9 +127,11 @@ eth.sendTransaction({
gas: "80000" gas: "80000"
}); });
\end{minted} \end{minted}
Our own balance has increased by 30 Ether. Our own balance has increased by 30 Ether.
To mitigate this vulnerability the contract should use \texttt{call} instead of
\texttt{delegatecall}.
\section{DAO Down} \section{DAO Down}
% Fill here your answers for exercise B % Fill here your answers for exercise B