Skip to content
SQL injection Disclosed report Beginner

SQL Injection Union Based

The site ID parameter in the comment history URL was vulnerable to SQL injection, allowing an attacker to inject arbitrary SQL commands. An attacker could retrieve database version and current user information, and potentially access private user data.

fuzzme Follow

Originally disclosed on HackerOne

Critical View original
  • Triaged in 5 days
  • Fixed in 6 days
  • Paid in 6 days
  • Disclosed after 34 days

Summary:

Hello,

I have found a SQL Injection Union Based on https://intensedebate.com/commenthistory/$YourSiteId The $YourSiteId into the url is vulnerable to SQL Injection.

Steps to reproduce

  1. Logging into https://intensedebate.com

  2. After create your own site on https://intensedebate.com/install and follow all steps

  3. Now you need to know your site id, to get then you need go to https://intensedebate.com/user-dashboard and you can see on the right side of the page your site list, choice your site and click to the link Overview.

You will be redirected to https://intensedebate.com/dash/$YourSiteId.

  1. Now you have your site id, go to the vulnerable URL with your site id https://intensedebate.com/commenthistory/$YourSiteId.

  2. Now Trigger the SQL Injection with this following link https://intensedebate.com/commenthistory/$YourSiteId%20union%20select%201,2,@@VERSION%23 (!) You need to do this with your own site id (!)

  3. Now you can see 10.1.32-MariaDB on the page.

POC

@@VERSION

version.png
version.png From the original on HackerOne

current_user()

currentUser.png
currentUser.png From the original on HackerOne

Video POC

IMPORTANT

Can you see my comment into #1044698 ?? And I no longer want to put all SQL Injection issues on into my initial report #1042746, because i don't win any reputations

Thank you,

Fuzzme.

Impact

Full database access holding private user information and Reflected Cross-Site-Scripting

Attachments

The original report as published on HackerOne, by fuzzme. 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 site ID from the URL was concatenated directly into a SQL query without proper sanitisation or parameterisation.

Impact

The report claims full database access with private user information and reflected cross-site scripting.

What the attacker needed

A free account; create a site to get a site ID

How it was found

  1. Log in to the site.
  2. Create a site and follow the setup steps.
  3. Find your site ID from the user dashboard.
  4. Visit the comment history URL with your site ID.
  5. Trigger the SQL injection by adding a union select statement to the site ID in the URL.
  6. Observe the database version displayed on the page.

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 a website puts user input directly into a database query without checking it. Here, the site ID in the URL was inserted into a database command, so an attacker could add extra database instructions to read information that should be hidden.

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 fuzzme

View all

10 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.