https://github.com/aasaam/vulnerable-application
Vulnerable application is test case study for check protection mechanism.
https://github.com/aasaam/vulnerable-application
security-vulnerability sql-injection testing xss-vulnerability
Last synced: 11 months ago
JSON representation
Vulnerable application is test case study for check protection mechanism.
- Host: GitHub
- URL: https://github.com/aasaam/vulnerable-application
- Owner: aasaam
- License: mit
- Created: 2020-09-07T16:17:00.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-01-25T15:59:18.000Z (over 4 years ago)
- Last Synced: 2025-07-02T08:42:21.217Z (12 months ago)
- Topics: security-vulnerability, sql-injection, testing, xss-vulnerability
- Language: PHP
- Homepage:
- Size: 86.9 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This is the simple vulnerable application for testing using [sqlmap](https://github.com/sqlmapproject/sqlmap), [XSStrike](https://github.com/s0md3v/XSStrike), [testssl.sh](https://github.com/drwetter/testssl.sh) for testing the Web server, TLS, WAF rules, protection and etc...
It's use [aasaam web-server](https://github.com/aasaam/web-server) for edge waf/reverse/proxy/ssl off loader.
## Run
```bash
git clone --depth 1 https://github.com/aasaam/vulnerable-application
cd vulnerable-application
docker-compose up -d
# wait for all databases to be ready
```
You can see app run in browser
* `http://localhost:10800` Normal application
* `http://localhost:10801` Behind aasaam web-server WAF activated
* `https://localhost:10802` Behind aasaam web-server WAF and SSL/TLS activated
## SQL Injection check
```bash
git clone --depth 1 https://github.com/sqlmapproject/sqlmap.git tmp/sqlmap-dev
cd tmp/sqlmap-dev
# remove old tests result
rm ~/.local/share/sqlmap -rf
# no waf
python3 ./sqlmap.py -u 'http://localhost:10800/show.php?id=1&type=bXlzcWw=&title=DevOps+is+important'
rm ~/.local/share/sqlmap -rf
# with waf
python3 ./sqlmap.py -u 'http://localhost:10801/show.php?id=1&type=bXlzcWw=&title=DevOps+is+important'
rm ~/.local/share/sqlmap -rf
```
## XSS Check
```bash
git clone --depth 1 https://github.com/s0md3v/XSStrike.git tmp/XSStrike
cd tmp/XSStrike
# no waf
python3 xsstrike.py --fuzzer --blind -u 'http://localhost:10800/show.php?id=1&type=bXlzcWw=&title=DevOps+is+important'
# with waf
python3 xsstrike.py --fuzzer --blind -u 'http://localhost:10801/show.php?id=1&type=bXlzcWw=&title=DevOps+is+important'
```
## Test SSL/TLS
```bash
git clone --depth 1 https://github.com/drwetter/testssl.sh tmp/testssl.sh
cp addon/ssl/ca.pem tmp/testssl.sh/ca.pem
cd tmp/testssl.sh
./testssl.sh --add-ca ca.pem 'https://localhost:10802'
```
## Benchmark
```bash
mkdir -p tmp/cassowary
cp addon/ssl/ca.pem tmp/cassowary/ca.pem
cd tmp/cassowary
wget -O cassowary.tgz https://github.com/rogerwelin/cassowary/releases/download/v0.11.0/cassowary_0.11.0_Linux_x86_64.tar.gz
tar -xf cassowary.tgz
./cassowary run --ca ca.pem -c 100 -n 10000 -u 'https://localhost:10802/benchmark/upstream'
./cassowary run --ca ca.pem -c 100 -n 10000 -u 'https://localhost:10802/benchmark/webserver'
```