Coder Social home page Coder Social logo

matrix-fuzz's Introduction

Matrix Fuzzing

Matrix fuzzing is a dumb fuzzer fuzzing a few matrix endpoints. It requires a HS and a user to exist.

Project room

#matrix-fuzz:midnightthoughts.space

Current targets

  • /_matrix/client/v3/createRoom - tests::tests::fuzz_create_room - createRoom

Usage of fuzzcheck-rs

  1. Create a HS
  2. Setup a user
  3. Set MATRIX_USERNAME and MATRIX_PASSWORD to the username and password of the user you want to fuzz as.
  4. Install fuzzcheck -> https://github.com/loiclec/fuzzcheck-rs#setup
  5. Run cargo fuzzcheck <target>
  6. Wait until it crashes
  7. Verify the error by trying the output json yourself
  8. Please make sure to follow https://matrix.org/security-disclosure-policy/ for found errors instead of posting them in public unless you are 100% sure they are not a security issue. If you are in doubt prefer the security disclosure policy.

Usage of afl.rs

  1. Create a HS
  2. Setup a user
  3. Install afl.rs -> cargo install afl
  4. Run cargo afl build
  5. Set MATRIX_USERNAME and MATRIX_PASSWORD to the username and password of the user you want to fuzz as.
  6. Run cargo afl fuzz -i ./afl/<target>/in -o ./afl/<target>/out ./target/debug/<target>
  7. Wait until it crashes
  8. Verification is a little harder. See rust-fuzz/afl.rs#215 on how to reproduce things
  9. Please make sure to follow https://matrix.org/security-disclosure-policy/ for found errors instead of posting them in public unless you are 100% sure they are not a security issue. If you are in doubt prefer the security disclosure policy.

Hall of Explosions (Bugs found)

Known bugs in the fuzzer

The fuzzer generates arbitrary json objects currently very poorly. Resulting in a lot less cases than it should. Its a workaround for now until there is a nicer way.

matrix-fuzz's People

Contributors

mtrnord avatar

Watchers

 avatar  avatar

matrix-fuzz's Issues

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.