Skip to content
SQL injection Write-up Intermediate

Full-Chain Exploitation: From Recon to Blind SQLi

The report describes multiple vulnerabilities found on a private VDP program, including HTML injection in emails, bypassing email verification via response manipulation, a publicly accessible API log file exposing PII and API keys, reflected and stored XSS, and a time-based blind SQL injection. An attacker could exploit these to access sensitive data, execute scripts in victims' browsers, or manipulate database queries.

medium.com

Published on medium.com

Hi everyone! I recently received an invitation to a private VDP program and decided to take a quick look.

samet, on medium.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 multiple root causes: missing input sanitisation for HTML/XSS, client-side trust for verification status, improper access control on log files, and unsanitised SQL queries.

Impact

The vulnerabilities could allow an attacker to access sensitive user data, bypass email verification, execute scripts in victims' browsers, and extract database information via blind SQL injection; some findings were rated high or critical, but the email verification bypass was limited by an additional information requirement.

What the attacker needed

Access to the target application; ability to intercept and modify requests; knowledge of the /api.log path; ability to submit tickets

The fix

The report states that the API log file and the blind SQL injection were fixed by the team, but does not specify fixes for the other issues.

How it was found

  1. Gather subdomains and filter live ones by status code.
  2. Find a sign-up form and test the name field for HTML injection.
  3. Intercept the verification request and change the status from false to true.
  4. Run dirsearch on a 404 domain to find /api.log.
  5. Visit /api.log and observe sensitive data in the partially loaded content.
  6. Use arjun to discover parameters vulnerable to XSS on various pages.

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.

This report covers several common web security issues. HTML injection lets an attacker insert HTML into a page, which can be used for phishing. Response manipulation means tricking the server into thinking a verification code was correct by changing the response. A publicly accessible log file leaked personal data and API keys. Cross-site scripting (XSS) lets attackers run scripts in other users' browsers. Blind SQL injection lets attackers extract database information by observing delays in responses.

What is SQL injection?

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

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.