Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
leovct committed Oct 8, 2024
1 parent be3b3ad commit 1cd3d1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/EthernautCTF.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
| 23 | [DexTwo](../src/EthernautCTF/DexTwo.sol) || [DexTwoExploit](../test/EthernautCTF/DexTwoExploit.t.sol) | The `swap` method does not check the addresses of the ERC20 tokens. This is a very bad practice since an exploiter can manipulate the balances of those tokens. Indeed, the swap amount is computed based on the token balances, so anyone can drain the tokens of the contract. |
| 24 | [PuzzleWallet](../src/EthernautCTF/PuzzleWallet.sol) || [PuzzleWalletExploit](../test/EthernautCTF/PuzzleWalletExploit.t.sol) | When writing a Proxy contract, and more generally any contract that uses `delegatecall`, always make sure that the sensible storage values are not colliding with other values. The storage layout should be identical, for those values, on both the proxy and the implementation contracts. |
| 25 | [Motorbike](../src/EthernautCTF/Motorbike.sol) || | |
| 26 | [DoubleEntry](../src/EthernautCTF/DoubleEntry.sol) | | | |
| 26 | [DoubleEntry](../src/EthernautCTF/DoubleEntry.sol) | | [DoubleEntryExploit](../test/EthernautCTF/DoubleEntryExploit.t.sol) | When delegating calls from a deprecated token to another token (or any other contract), avoid sending new tokens in place of old tokens. |
| 27 | GoodSamaritan || | |
| 28 | [GatekeeperThree](../src/EthernautCTF/GatekeeperThree.sol) || [GatekeeperThreeExploit](../test/EthernautCTF/GatekeeperThreeExploit.t.sol) | - Make sure the `constructor` method is spelled properly.<br>- Do not use `tx.origin` to check the origin of the caller.<br>- Private variables are not private on a public blockchain.<br>- It's easy to implement a contract that do not accepts ether. |
| 29 | [Switch](../src/EthernautCTF/Switch.sol) || | |
Expand Down

0 comments on commit 1cd3d1e

Please sign in to comment.