vendor:
Simple Online College Entrance Exam System
by:
Amine ismail
8.8
CVSS
HIGH
Unauthenticated password change leading to account takeover
20
CWE
Product Name: Simple Online College Entrance Exam System
Affected Version From: 1
Affected Version To: 1
Patch Exists: YES
Related CWE:
CPE: a:sourcecodester:simple_online_college_entrance_exam_system
Platforms Tested: Windows 10, Kali Linux
2021
Simple Online College Entrance Exam System 1.0 – Account Takeover
By setting the parameter old_password as array, the MD5 function on it returns null, so md5($old_password) == $_SESSION['password'] since we have no session, thus bypassing the check, after that we can use SQLI and inject our custom data.
Mitigation:
Ensure that the old_password parameter is not an array and that the MD5 function is properly used to check the old password.