Skip to content
SQL injection Write-up Intermediate

Blind SQL Injection in Oracle Database: Exfiltrating Data with Burp Collaborator — SQL Injection Labs

A blind SQL injection vulnerability exists in a tracking cookie used for analytics, where the cookie value is embedded in an asynchronously executed SQL query. An attacker can exploit this to trigger out-of-band interactions with an external domain and exfiltrate data, such as the administrator's password.

Bash Overflow Follow

Published on infosecwriteups.com

The Blind SQL Injection with Out-of-Band Data Exfiltration lab is a security exercise conducted in the PortSwigger environment. This lab demonstrates how a blind SQL injection vulnerability can be exploited to extract sensitive data using out-of-band (OOB) techniques.

Bash Overflow, on infosecwriteups.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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

How it worked

Root cause

Likely the application concatenates the tracking cookie value directly into a SQL query without proper parameterisation or validation.

Impact

An attacker could exfiltrate sensitive database information, such as user passwords, leading to data breaches and potential further exploitation like privilege escalation.

What the attacker needed

Access to the lab environment; Burp Suite with Collaborator

The fix

The application should use parameterized queries or prepared statements to prevent SQL injection.

How it was found

  1. Open the lab and visit a product category page.
  2. In Burp Suite, find the request in HTTP History and send it to Repeater.
  3. Use an Oracle SQL injection payload that triggers an external request to Burp Collaborator to extract the password for the Wiener user.
  4. Modify the payload to extract the administrator's password.
  5. Use the extracted credentials to log in as the administrator.

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 write-up has not been written yet. The Original tab links to the source.

A blind SQL injection is a flaw where user input is inserted into a database command, but the application does not show the results directly. Here, the input comes from a cookie used for tracking, and the database runs the query in the background. An attacker can make the database send a request to a server they control, carrying stolen data in the request, which is called out-of-band exfiltration.

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 Bash Overflow

View all

35 more disclosed reports, best first.

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.