Skip to content

Commit

Permalink
need to improve this section later
Browse files Browse the repository at this point in the history
  • Loading branch information
autistic-symposium-helper authored Aug 31, 2023
1 parent 5fd2098 commit 932ded0
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions advanced_expert/vulnerabilities/delegatecall/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
<br>


#### 🖤 This is my favorite vuln

<p align="center">
<img src="https://github.com/go-outside-labs/blockchain-auditing/assets/138340846/405335ca-a1c7-4d3c-83fb-4b96ee13a384" width="55%" align="center" style="padding:1px;border:1px solid black;"/>
</p>



<br>

Expand All @@ -14,13 +19,18 @@

1. Call to untrusted contracts may introduce unexpected risks and errors.
2. External calls controlled by an attacker may force a contract to transition into an undefined state.
3. Types of external calls: `STATIC CALL` and `DELEGATE CALL`.
4. Using DELEGATE CALL, contract can preserve the storage state while using the logic of the contract. This introduces the concept of Proxies.
3. Types of external calls: `STATICCALL` and `DELEGATECALL`.
4. Using `DELEGATECALL`, contract can preserve the storage state while using the logic of the contract. This introduces the concept of Proxies.
5. The proxy contract redirects all the calls it receives to an "logic contract", whose address is stored in its "proxy contract". The proxy runs the "logic contract"'s code as its own (modifying its storage and the balance of the "proxy contract").

<br>

<p align="center">
<img width="600" src="https://user-images.githubusercontent.com/1130416/190880608-1b511a87-d91e-4ae4-8714-08cd7e8eec89.png">
</p>





<br>
Expand Down

0 comments on commit 932ded0

Please sign in to comment.