This is a deliberately vulnerable ReactJs, PHP website created for the purpose of practicing vulnerability testing. Please note that this website contains various types of security vulnerabilities such as SQL injection, shell execution, and cross-site scripting (XSS) that are intentionally coded to be exploited.
This website is not intended to be used for any illegal or malicious activities. Any misuse of this website may lead to legal consequences. Therefore, it is strongly recommended to use this website only for educational and ethical purposes.
-
Download the code from https://github.com/bindhumadhavavarma/pentest_vulnerable_site6
-
Create the database with any name using database.sql file.
-
Now edit the /api/Classes/database.php file with the database name that you used during the above step. Also change username, password, host and port if necessary.
-
Now edit the .env folder with the url to the api folder, by default it is set to ‘http://10.0.0.11/pentest_vulnerable_site6/api/’ edit this link with the link to your IP and folder name. Note : Dont forget to add the ‘/’ at the end like i did above (i.e …/api/).
-
Make sure you have installed npm. If you dont have npm you can download it from https://nodejs.org/en/download.
-
Run npm install
-
Run npm start
-
Now you will see the port at which the site is running by default it will be localhost:3000.
-
You have to finish the above web setup before you do this also ensure you have Android studio.
-
Run npm run build
-
Run ionic capacitor add android
-
Run npx cap open android. This will open the project in android studio.
-
After the code opens in android studio, Create file app/res/xml/network_security_config.xml and paste this inside:
Code:
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">10.0.0.11</domain>
</domain-config>
</network-security-config>
-
Make sure you edit the above code with your IP address.
-
Now go to app/manifests/AndroidManifest.xml, and make the below mention changes. The dots in the below code represent already present code. Just add the userpermisson tag and the specified application attribute below. Do not delete or edit any other piece of code.
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest ...>
<uses-permission android:name="android.permission.INTERNET" />
<application
...
android:networkSecurityConfig="@xml/network_security_config"
...>
...
</application>
</manifest>
-
Now to build the apk, on the top bar select, Build -> Build Bundle/APK -> Build APK
-
After the process executes you will get a popup where you can click on locate to find the .apk file alternatively you can navigate to /pentest_vulnerable_site5/android/app/build/outputs/apk/debug where you can find the apk file.
- User, Admin
-
/review-transactions
-
/manage-departments
-
/department-wise-reports
-
/companies
-
/accounts
- /login
- /add-transaction
Username : admin (admin account)
Password : admin@2023
Username : user (user account)
Password : user@2023
Please be cautious when using this website as it may cause harm to your computer or network. The vulnerabilities in this website are not patched, and any user who exploits them does so at their own risk. The creator of this website is not responsible for any damage caused by the misuse of this website.