Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tynes/addr-zero
https://github.com/tynes/addr-zero
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tynes/addr-zero
- Owner: tynes
- Created: 2022-08-02T18:08:17.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-08-02T18:08:46.000Z (over 2 years ago)
- Last Synced: 2024-10-18T01:57:57.888Z (3 months ago)
- Language: Solidity
- Size: 2.93 KB
- Stars: 12
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AddressZero
Very bad things would happen if you could set `msg.sender` to `address(0)`
during actual execution. The Optimism bridge would be susceptible to attack.
The exploit is very simple, see `src/AddressZero.sol`.Run the exploit like so:
```bash
$ forge script \
-vvvvv src/AddressZero.sol \
--tc AddressZero \
--rpc-url
```