tic4301 project
This folder contains the relevant files to run the program to simulate a vulnerable Wedding Website for users to leave comments.
To Start:
- Run Vagrant
- Provision to Host - welcome.php, index.php, admin.php, config.php
- Also include the .sql files to the host machine.
- Provision to Attacker - SQL.txt, User.txt, Password.txt.
- Import SQL localhost.sql and tic4301.sql into PHPmyAdmin.
- To run the webpage, make sure that config.php is configured properly.
- Start index.php on the host machine.
- Use the Attacker machine to log on to the same webpage.
SQL Injection - Login Page (index.php)
- Using the tool of your choice, you can insert SQL.txt to test the source codes.
- The next test is to bypass login.
- User.txt is for the user_id field, and Password.txt is for the password field
SQL Injection reference - https://book.hacktricks.xyz/pentesting-web/login-bypass/sql-login-bypass
XSS - Form Page (welcome.php)
-
For XSS, you can use the scripts below to insert into the Form Page.
-
Stored XSS
- Reflected XSS
- CSRF