Giter Club home page Giter Club logo

cosmwasm-ctf's Introduction

CosmWasm CTF

CosmWasm CTF (or CW-CTF for short) is a repository that consists of intentionally written vulnerable CosmWasm smart contracts. You can think of this as a CosmWasm version of OpenZeppelin Ethernaut challenge. While the challenges here will be as native CosmWasm as possible (i.e., bugs that would only appear in the CW environment), it would be beneficial to add other challenges that work across different blockchain environments such as Solidity or Solana ecosystems.

Please do not use this in production.

Challenges

Every challenge in the repo comes with an associated proof of concept (POC) exploit code. The exploit code is written as test cases with their test case name as exploit(). Most of the time, you can reproduce the vulnerability by running the following command:

cargo test

Having a proof of concept exploit code will give you an idea of how the contract is vulnerable and how an attacker can exploit it, which can serve as a good learning opportunity.

Contributing

Did you happen to find an unintended bug in the challenge? Or have a new vulnerable contract you want to share? Or maybe just a simple efficiency suggestion? Feel free to open an issue or submit a pull request! Please keep in mind that for now, only bugs with an exploitable scenario and an accompanying proof of concept exploit code will be accepted.

Good to know

  • If you're entirely new to Rust or CosmWasm, the Terra Academy is an excellent tutorial to pick up the basics.
  • For simplicity, the OSMO denomination used in the contract assumes 0 decimals.

cosmwasm-ctf's People

Contributors

sushiwushi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

yubrew

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.