SunWeb3Sec / DeFiHackLabs

Reproduce DeFi hacked incidents using Foundry.
5.33k stars 1.17k forks source link

feat: Add POC for VOW token misconfig #803

Closed alex0207s closed 2 months ago

alex0207s commented 2 months ago

Add a POC for VOW token incident.


[PASS] testExploit() (gas: 559216)
Logs:
  Attacker ETH Balance Before exploit: 0.000000000000000000
  Before exploit VOW balance of attacker:: 0.000000000000000000
  Before exploit USDT balance of attacker:: 0.000000
  Before exploit ETH balance of attacker:: 0.143035110757335249
  After exploit: VOW balance of attacker:: 5801632.714644004917570378
  After exploit: USDT balance of attacker:: 595970.517680
  After exploit: ETH balance of attacker:: 175.620817063726256189
  Attacker ETH Balance After exploit: 0.000000000000000000```