Giter Site home page Giter Site logo

zzzuhaibmohd / defihacks_via_foundry Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 600 KB

In this repository, I try to perform a mainnet fork and then simulate popular smart contract exploits on various DEFI Protocols using Foundry Framework.

Solidity 100.00%

defihacks_via_foundry's Introduction

defiHacks_via_Foundry

In this repository, I try to perform a mainnet fork and then simulate popular smart contract exploits on various DEFI Protocols using Foundry Framework.

TreasureDAO NFT Zero Fee Exploit PoC

forge test --contracts ./test/1_TreasureDAO.sol -vv

Reference - https://slowmist.medium.com/analysis-of-the-treasuredao-zero-fee-exploit-73791f4b9c14


Cover Protocol Unrestricted Mint Exploit PoC

forge test --contracts ./test/2_Cover.sol --match-contract CoverProtocolHack -vv

Reference - https://mudit.blog/cover-protocol-hack-analysis-tokens-minted-exploit/


$APE Airdrop Flash Loan Exploit PoC

forge test --contracts ./test/3_ApeAirdrop.sol --match-contract ApeAirdropExploit -vv

Reference - https://medium.com/amber-group/reproducing-the-ape-airdrop-flash-loan-arbitrage-exploit-93f79728fcf5


Redacted Cartel Custom Approval Logic Exploit PoC

forge test --contracts ./test/4_RedatedCartel.sol --match-contract RedactedCartelExploit -vv

Reference - https://medium.com/immunefi/redacted-cartel-custom-approval-logic-bugfix-review-9b2d039ca2c5


Visor Finance Logic Bug and Rentrancy Exploit PoC

forge test --contracts ./test/5_VisorFinance.sol --match-contract VisorFinanceExploit -vv

Reference - https://beosin.medium.com/two-vulnerabilities-in-one-function-the-analysis-of-visor-finance-exploit-a15735e2492


ShadowFi Public Burn Function Exploit PoC

forge test --contracts test/6_ShadowFi.sol --match-contract ShadowFiExploit -vv

Reference - https://medium.com/quillhash/shadowfi-301k-burn-function-exploit-analysis-quillaudits-45a17ce04193


Discover Flashloan Exploit PoC

forge test --contracts ./test/7_Discover.sol --match-contract DiscoverExploit -vv

Reference - https://www.twitter.com/BeosinAlert/status/1533734518623899648

https://www.anquanke.com/post/id/274003


Bad Guys by RPF Business Logic Flaw Exploit PoC

forge test --contracts ./test/8_BadGuysbyRPF --match-contract BadGuysbyRPFExploit -vv

Reference - https://twitter.com/RugDoctorApe/status/1565739119606890498

https://etherscan.io/tx/0xb613c68b00c532fe9b28a50a91c021d61a98d907d0217ab9b44cd8d6ae441d9f


Special Mention

https://github.com/SunWeb3Sec

defihacks_via_foundry's People

Contributors

zzzuhaibmohd avatar mdzuhaib44 avatar

Stargazers

0xOse avatar Sithari avatar LGrok avatar

Watchers

 avatar  avatar

Forkers

web3secresearch

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.