Skip to content

Commit 68ef744

Browse files
Add files via upload
1 parent 7ba3e0d commit 68ef744

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+2866
-0
lines changed

TIWAP-master/Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM ubuntu:18.04
2+
3+
WORKDIR /app
4+
COPY . /app
5+
6+
RUN apt-get update
7+
RUN apt-get install iputils-ping -y
8+
RUN apt install python3 python3-pip -y
9+
RUN pip3 install -r requirements.txt
10+
11+
# EXPOSE 5001
12+
13+
# ENTRYPOINT ["python"]
14+
# CMD ["app.py"]

TIWAP-master/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Simardeep Singh
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

TIWAP-master/README.md

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
# Totally Insecure Web Application Project (TIWAP)
2+
3+
![Forks](https://img.shields.io/github/forks/tombstoneghost/TIWAP?style=for-the-badge)
4+
![Stars](https://img.shields.io/github/stars/tombstoneghost/TIWAP?style=for-the-badge)
5+
![OpenIssues](https://img.shields.io/github/issues/tombstoneghost/TIWAP?style=for-the-badge)
6+
![ClosedIssues](https://img.shields.io/github/issues-closed/tombstoneghost/TIWAP?style=for-the-badge)
7+
![Languages](https://img.shields.io/github/languages/count/tombstoneghost/TIWAP?style=for-the-badge)
8+
![License](https://img.shields.io/github/license/tombstoneghost/TIWAP?style=for-the-badge)
9+
10+
11+
12+
TIWAP is a web security testing lab made using Flask for budding security enthusiasts to learn about various web
13+
vulnerabilities. Inspired by DVWA, the contributors have tried their best to regenerate various web vulnerabilities
14+
15+
The application is solely made for educational purpose and to learn web hacking in a legal environment.
16+
17+
Read more about it [here](https://singh-simardeepsingh99.medium.com/tiwap-3a8b70043ce9)
18+
19+
## Disclaimer
20+
21+
We highly recommend installing the lab on a Virtual Machine instead of a live web server (Internal or External).
22+
23+
We do not take responsibility for the way in which anyone uses this application (TIWAP).
24+
The application has been made for educational purpose only and should not be used maliciously.
25+
If your web servers are compromised due to installation of this application,
26+
it is not our responsibility, it is the responsibility of the person/s who uploaded and installed it.
27+
28+
29+
## Setup and Installation
30+
To keep the installation and setup easy, we have configured everything for you. All you need is Docker on your system.
31+
32+
Once you are done with docker installation, run the following commands.
33+
34+
> git clone https://github.com/tombstoneghost/TIWAP <br/>
35+
> cd TIWAP <br/>
36+
> docker-compose up
37+
38+
<strong>Note: It works only on Linux as of now and windows compatibility is work under progress </strong>
39+
40+
Once the lab is started, you can log in using the default credentials.<br/>
41+
Username: `admin` <br/>
42+
Password: `admin`
43+
44+
## Tech Stack
45+
46+
Front-End: HTML, CSS and JavaScript <br/>
47+
Back-End: Python - Flask <br/>
48+
Databases: SQLite3 and MongoDB
49+
50+
## Vulnerabilities
51+
52+
Currently, we have 20 vulnerabilities in the lab. All listed below:
53+
54+
- SQL Injection
55+
- Blind SQL Injection
56+
- NoSQL Injection
57+
- Command Injection
58+
- Business Logic Flaw
59+
- Sensitive Data Exposure
60+
- XML External Entities
61+
- Security Misconfiguration
62+
- Reflected XSS
63+
- Stored XSS
64+
- DOM Based XSS
65+
- HTML Injection
66+
- Improper Certificate Validation
67+
- Hardcoded Credentials
68+
- Insecure File Upload
69+
- Brute Force
70+
- Directory Traversal
71+
- Cross-Site Request Forgery (CSRF)
72+
- Server-Side Request Forgery (SSRF)
73+
- Server-Side Template Injection (SSTI)
74+
75+
Each vulnerability is having 3 difficulty levels, namely Low, Medium and Hard.
76+
These levels can be set from the settings page.
77+
78+
79+
## Bugs and Issues
80+
81+
If you find any bugs or issues with the project, kindly raise the same on the below link.
82+
83+
https://github.com/tombstoneghost/TIWAP/issues
84+
85+
## Contributors
86+
87+
1. Simardeep Singh - [LinkedIn](https://www.linkedin.com/in/simardeepsingh99/) | [Twitter](https://twitter.com/simardeep99)
88+
2. Yash Giri - [LinkedIn](https://www.linkedin.com/in/yashgiri/)
89+
3. Sakshi Aggarwal - [LinkedIn](https://www.linkedin.com/in/s4ksh1/) | [Twitter](https://twitter.com/s4ksh1)
90+
91+
### Want to be a contributor?
92+
93+
1. Star this repository
94+
2. Fork this repository
95+
3. Clone the forked repository
96+
4. Navigate to the project directory
97+
5. Create a new branch with your name
98+
6. Make changes
99+
7. Stage your changes and commit
100+
8. Push your local changes to remote
101+
9. Create a Pull Request
102+
10. Congratulations! You did it.
103+
104+
## License
105+
106+
This project is under the MIT License - Click [here](https://github.com/tombstoneghost/TIWAP/blob/master/LICENSE) for details.
107+
108+
<strong>Happy Hacking! :)</strong>
109+

TIWAP-master/Static/Images/cat.jpg

88.1 KB
Loading

TIWAP-master/Static/Images/dog.jpg

53.2 KB
Loading
6.73 KB
Loading

TIWAP-master/Static/index.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
html, body {
2+
width: 100%;
3+
height: 100%;
4+
margin: 0px;
5+
padding: 0px;
6+
overflow-x: hidden;
7+
}
8+
9+
.vuln {
10+
width: 200px;
11+
height: 150px;
12+
margin: 25px;
13+
padding: 25px;
14+
}

TIWAP-master/Static/robots.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Disallowed:
2+
3+
/backups/card-db.bk

TIWAP-master/TIWAF.sqbpro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?xml version="1.0" encoding="UTF-8"?><sqlb_project><db path="D:/Projects/Python/TIWAP/TIWAF.db" readonly="0" foreign_keys="1" case_sensitive_like="0" temp_store="0" wal_autocheckpoint="1000" synchronous="2"/><attached/><window><main_tabs open="structure browser pragmas query" current="1"/></window><tab_structure><column_width id="0" width="300"/><column_width id="1" width="0"/><column_width id="2" width="125"/><column_width id="3" width="968"/><column_width id="4" width="0"/><expanded_item id="0" parent="1"/><expanded_item id="1" parent="1"/><expanded_item id="2" parent="1"/><expanded_item id="3" parent="1"/></tab_structure><tab_browse><current_table name="4,5:mainusers"/><default_encoding codec=""/><browse_table_settings><table schema="main" name="users" show_row_id="0" encoding="" plot_x_axis="" unlock_view_pk="_rowid_"><sort/><column_widths><column index="1" value="94"/><column index="2" value="649"/><column index="3" value="129"/></column_widths><filter_values/><conditional_formats/><row_id_formats/><display_formats/><hidden_columns/><plot_y_axes/><global_filter/></table></browse_table_settings></tab_browse><tab_sql><sql name="SQL 1">SELECT username FROM users WHERE username='' OR SELECT version()</sql><current_tab id="0"/></tab_sql></sqlb_project>

TIWAP-master/TIWAP.db

16 KB
Binary file not shown.

0 commit comments

Comments
 (0)