https://github.com/Xib3rR4dAr/WannaRace
WebApp intentionally made vulnerable to Race Condition for practicing Race Condition
https://github.com/Xib3rR4dAr/WannaRace
Last synced: 5 months ago
JSON representation
WebApp intentionally made vulnerable to Race Condition for practicing Race Condition
- Host: GitHub
- URL: https://github.com/Xib3rR4dAr/WannaRace
- Owner: Xib3rR4dAr
- License: mit
- Created: 2021-12-18T10:33:39.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-23T08:04:26.000Z (about 3 years ago)
- Last Synced: 2024-08-05T17:43:28.174Z (9 months ago)
- Language: PHP
- Size: 19.5 KB
- Stars: 22
- Watchers: 3
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-hacking-lists - Xib3rR4dAr/WannaRace - WebApp intentionally made vulnerable to Race Condition for practicing Race Condition (PHP)
README
# π 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:```bash
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 #1Main Page

Four vouchers worth 400 units available for recharge

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

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

## π‘Solutions
[Challenge #1 Solution](https://github.com/Xib3rR4dAr/WannaRace/blob/master/challenge-1-solution.md)
## π TODOs
β Add Solution for Challenge #1
π Add Solution for Challenge #2