Skip to content

Xib3rR4dAr/WannaRace

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
web
 
 
 
 
 
 
 
 

๐Ÿš€ WannaRace

WebApp intentionally made vulnerable to Race Condition

๐Ÿค– Description

Race Condition vulnerability can be practiced in the developed WebApp. Task is to buy a Mega Box using race condition that costs more than available vouchers. Two challenges are made for practice. Challenge B is to be solved when PHPSESSID cookie is present, cookie is auto created when user is logged in. Happy learning ๐ŸŽ‰.

๐Ÿ›  Building and running the Docker image

Build the Docker image with:

git clone https://github.com/Xib3rR4dAr/WannaRace && cd WannaRace
docker build -t xib3rr4dar/wanna_race:1.0 .

Run Docker image:

docker run -it --rm xib3rr4dar/wanna_race:1.0

OR

docker run -it --rm -p 9050:80 xib3rr4dar/wanna_race:1.0

Then open in browser relevant IP:PORT

๐ŸŽด Screenshots

Challenge #1

Main Page

image

Four vouchers worth 400 units available for recharge

image

Task is to buy Mega box (which is worth 401 units) by exploiting race condition

image

Challenge #2

Same as Challenge #1 but requires login so that PHPSESSID and appropriate cookies are set

image

๐Ÿ’กSolutions

Challenge #1 Solution

๐Ÿ“ TODOs

โœ… Add Solution for Challenge #1
๐Ÿ•˜ Add Solution for Challenge #2

About

WebApp intentionally made vulnerable to Race Condition for practicing Race Condition

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published