Skip to content
SQL injection Disclosed report Intermediate

SQL Injection - https://███/█████████/MSI.portal

A form field on a web page was vulnerable to time-based blind SQL injection, allowing an attacker to run database queries. The database user had full DBA rights, so an attacker could read and write all database information and potentially execute commands on the database server.

arkaic Follow

Originally disclosed on HackerOne

  • Triaged in 11 hours
  • Fixed in 4 months
  • Disclosed after 9 months

Summary: https://███████/███████/MSI.portal has a form page which is vulnerable to SQL injection.

Description: URL: https://████/██████/MSI.portal?_nfpb=true&_pageLabel=msi_portal_page_61#query

The above url has a form where the field MSI_queryType is vulnerable to time based blind SQL injection. I verified that sqlmap could identify the DBMS, and if the account had DBA rights. No other data was collected about the database.

See attached screenshot for sqlmap output.

Impact

Critical - The database user which processes the form input has full DBA access, which allows the ability to read and write database information. There are also methods which would for executing commands as the database user, which could lead to compromise of the entire system housing the database.

Step-by-step Reproduction Instructions

  1. Visit this url, using an intercepting proxy - https://███/██████/MSI.portal?_nfpb=true&_pageLabel=msi_portal_page_61#query
  2. Pick various form options for a search query and submit.
  3. Capture POST via intercepting proxy
  4. Use sqlmap to process captured POST request.
  5. sqlmap is able to determine that form field MSI_queryType allows for time based blind SQL, along with details about the database type and user account.

Product, Version, and Configuration (If applicable)

Oracle 11g

Suggested Mitigation/Remediation Actions

Ensure that all parameters are sanitized before being processed as queries to the backend database, whether they are submitted via GET, POST, or any other means.

Perform rate limiting on the number of requests which can be submitted to the web site. Time based sql injection is slower than other methods, so would require a large amount of network traffic to retrieve data from the system.

Impact

An attacker would have full control over reading and writing information in the database. The could allow several things, such as retrieving all database information, altering existing information, displaying malicious code on the web site, and potentially full control of the system running the database.

The original report as published on HackerOne, by arkaic. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, the application inserted user-supplied form input directly into a database query without sanitisation or parameterisation.

Impact

An attacker could read and write all database information and potentially execute commands as the database user, which could lead to full system compromise.

What the attacker needed

Access to the form page; ability to intercept HTTP requests

How it was found

  1. Visit the form page using an intercepting proxy.
  2. Choose form options for a search query and submit.
  3. Capture the POST request in the proxy.
  4. Run sqlmap on the captured request.
  5. sqlmap confirms time-based blind SQL injection and reveals database type and user account details.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

SQL injection is when user input is inserted into a database command without proper handling, letting an attacker change the command. Here, a search form field was vulnerable, and the database account had full administrative rights, so an attacker could read or change any data and possibly take over the server.

What is SQL injection?

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.

More by arkaic

View all

1 more disclosed report, best first.

More from U.S. Dept Of Defense

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.