Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tynes/addr-zero


https://github.com/tynes/addr-zero

Last synced: 2 months ago
JSON representation

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
```