Skip to content

Commit

Permalink
doc: document why the Delegation exploit does not work
Browse files Browse the repository at this point in the history
  • Loading branch information
leovct committed Sep 24, 2024
1 parent 12caf6a commit 44eac71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/EthernautCTF/DelegationExploit.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ contract DelegationExploit is Test {

vm.startPrank(exploiter);
// Call the `fallback` method using Delegate's `pwn` selector.
// TODO: Understand why the exploit does not work?!
// https://github.com/foundry-rs/foundry/issues/824
(bool success, ) = address(target).call(abi.encodeWithSignature('pwn()'));
assertTrue(success);
vm.stopPrank();
Expand Down

0 comments on commit 44eac71

Please sign in to comment.