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

https://github.com/pyk/inverse-exploit

Reproduce Inverse Finance exploit using Foundry
https://github.com/pyk/inverse-exploit

Last synced: about 1 year ago
JSON representation

Reproduce Inverse Finance exploit using Foundry

Awesome Lists containing this project

README

          

# Inverse Finance Exploit

Reproduce Inverse Finance exploit using Foundry.

To learn more about the exploit,you can read about it [here][1] and [here][2].

I believe the exploiter have a good opsec before executing the attack.

[1]: https://twitter.com/FrankResearcher/status/1510239094777032713?s=20&t=-OoDI3sbMA2dvmHbr8XAkw
[2]: https://twitter.com/euler_mab/status/1510243496015368193?s=20&t=-OoDI3sbMA2dvmHbr8XAkw

## Lessons Learned

Gud highlight from [@euler_mob][3]:

1. Stop using thinly-traded illiquid assets as collateral!
2. Arbitrage bots provide protection against manipulation only
if there is an arbitrage opportunity.
3. Attackers may risk large amounts of stolen funds to fund attacks.

[3]: https://twitter.com/euler_mab/status/1510243498804588544?s=20&t=-OoDI3sbMA2dvmHbr8XAkw

## Reproduce

Run the following command to reproduce the exploit:

$ forge test --fork-block-number 14506359 --fork-url RPC_URL

Replace the `RPC_URL` with Alchemy or any other RPC that support archival node.