82

Github GitHub - InsiderPhD/Generic-University: Vulnerable API

 3 years ago
source link: https://github.com/InsiderPhD/Generic-University
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Generic University

Generic University's IT department are excited to release their new tool so students can see all their grades online! Although still under construction some hacker has used Sublist3r and found it despite it being under construction. Thankfully Generic University have a bug bounty program and *.genericuniversity.ac.uk is in scope, no one seems to have noticed this under construction tool yet so get out there are find those bugs!

Vulnerable API

This is a Laravel App which I've used for several demos which is vulnerable to a number of vulnerabilities on the OWASP API top 10. This is not a CTF, the bugs are quite clear and not hidden, however I suspect this will be a useful demo!

Vulnerabilities

Find out more about the OWASP API Top 10

  • API1:2019 Broken Object Level Authorization
  • API2:2019 Broken User Authentication
  • API3:2019 Excessive Data Exposure
  • API5:2019 Broken Function Level Authorization
  • API6:2019 Mass Assignment
  • API7:2019 Security Misconfiguration

Your Goals

  1. Find the emails of the administrator
  2. Brute force the API to find new endpoints
  3. Find out what grades everyone got in a class
  4. Edit someone's grade
  5. Make an account
  6. Login to your account
  7. Access admin API
  8. NEW Find out what vulnerabilities the IT admins have ignored
  9. NEW Make your account an admin
  10. NEW Access the admin control panel
  11. NEW Fire a blind XSS in the admin control panel and validate with your new admin account
  12. Delete everything
  13. Restore everything

Inital Setup

You will need to setup PHP, a webserver and a database suitable for laravel, you can use something like XAMPP on windows, or set it up yourself, to these requirements. You can google to find manual setup instructions, @kofler86 has contributed a setup guide for Kali Linux.

  1. Clone git clone https://github.com/InsiderPhD/Generic-University/
  2. run composer update
  3. Change the .env
  4. run php artisan migrate
  5. run php artisan db:seed

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK