Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Xib3rR4dAr/WannaRace
WebApp intentionally made vulnerable to Race Condition for practicing Race Condition
https://github.com/Xib3rR4dAr/WannaRace
Last synced: 21 days 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 (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-23T08:04:26.000Z (almost 3 years ago)
- Last Synced: 2024-08-05T17:43:28.174Z (4 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
![image](https://user-images.githubusercontent.com/24238512/146770441-7bda5572-b6db-4127-bd0a-234a1e5b1910.png)
Four vouchers worth 400 units available for recharge
![image](https://user-images.githubusercontent.com/24238512/146770559-0f8548a8-6f38-4511-a071-f36c404fb3f4.png)
Task is to buy Mega box (which is worth 401 units) by exploiting race condition
![image](https://user-images.githubusercontent.com/24238512/146770648-d9bb2bb2-cabc-4766-bc7a-ec86e11ef9ec.png)
### Challenge #2
Same as Challenge #1 but requires login so that PHPSESSID and appropriate cookies are set
![image](https://user-images.githubusercontent.com/24238512/146770999-4bde814c-82da-4d34-83f5-c0d1664f2547.png)
## π‘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