Code Monkey home page Code Monkey logo

chaos-camp / code-challenge-find-the-race-condition Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3 KB

A code challenge for API testing to hunt down race conditions.

Dockerfile 17.97% Python 82.03%
api-testing backend-testing code-challenge concurrency database-testing devops docker fastapi load-testing penetration-testing performance-testing python race-conditions security security-audit sqlite stress-testing vulnerability-testing bug-discovery testing-challenge

code-challenge-find-the-race-condition's Introduction

Code Challenge: Expose Race Conditions

Objective: Your mission, should you choose to accept it, is to write a series of tests targeting our given environment to expose potential race conditions. After testing, provide a detailed report on the discovered vulnerabilities and how you found them.

Running the Test Server using Docker

Before diving into the challenge, you must set up and run the provided test server. Ensure you have both Docker and Docker-compose installed on your machine.

Building the Docker Image:

  1. Navigate to the directory containing the Dockerfile and other server files.
  2. Build the Docker image with the following command:
docker build -t test-server-image .

Running the Test Server:

  1. After building the image, start the test server using:
docker run -p 8000:8000 test-server-image
  1. The FastAPI application should be accessible at http://localhost:8000 from your host machine.

Challenge Details:

  1. Set Up the Environment using the provided Docker file and instructions above.
  2. Develop the Tests: Use any testing tools/frameworks you prefer. Race conditions often require many requests in quick succession or a particular sequence. Your tests should reproduce race conditions reliably.
  3. Report: For each discovered race condition, provide:
    • A description of the vulnerability.
    • Steps to reproduce it.
    • Potential risks associated with the vulnerability.
    • Relevant code snippets or scripts used during testing.
    • Additional notes or observations.

Your submission will be evaluated based on your testing thoroughness, the clarity of your report, and your ability to discover and reproduce race conditions.

code-challenge-find-the-race-condition's People

Contributors

copyleftdev avatar donzuub avatar

Watchers

 avatar

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.