A simple PHP-based CTF created for a presentation on cybersecurity for the RCMP, OPP & Toronto Cyber Crime. This CTF utilizes knowledge of MySQL queries, upload bypass vulnerabilities, and extensive directory fuzzing.
- Edit the connection credentials found under /web/login/authenticate.php
- Copy contents of the /web/ folder to your httpd file serving directory (typically /var/www/html)
- Execute the MySQL Script
- Execute the bash script
- Head to <YOUR_SERVER_IP>/cyptianCTF
- Fuzz until you find backup.zip
- Identify MySQL credentials and connect to the remote MySQL server
- View permissions (UPDATE/INSERT) and either modify existing admin user or insert a new user (must utilize bcrypt generated password)
- Visit the login portal (/login/) and sign in with newly created credentials
- Use Burpsuite to modify the request by changing the content type, extension, and by adding some image data to the script
- visit /login/administration/uploads to access uploaded payload
- SUCC355