Skip to content
SQL injection Write-up Beginner

How I Found Critical Bugs :: SQL Injection → Compromised 10+ G

Multiple Indian government websites running the Joomla JCK Editor component were vulnerable to SQL injection through the 'parent' parameter, allowing an attacker to extract database names, user credentials, and other sensitive data. The author used sqlmap to dump data from over ten databases across several domains.

Professor.0xx01 Follow

Published on medium.com

SQL injection (SQLi) is a web security vulnerability that allows an attacker to interfere with the queries that an application makes to its database. This can allow an attacker to view data that they are not normally able to retrieve.

Professor.0xx01, 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 the 'parent' parameter in the JCK Editor's links.php was inserted into an SQL query without proper sanitisation, allowing UNION-based injection.

Impact

An attacker could read sensitive data from the databases, including usernames, passwords, emails, and OTP keys, potentially leading to further compromise.

What the attacker needed

Target runs Joomla with JCK Editor 6.4.4; no authentication needed

How it was found

  1. Find a Joomla site with the JCK Editor component by browsing a known vulnerable path.
  2. Insert a crafted value into the 'parent' parameter to test for SQL injection.
  3. Confirm the injection by retrieving database(), user(), and version().
  4. Use sqlmap on the same URL and parameter to list all databases.
  5. Dump sensitive columns such as username, password, email, and otpKey from the databases.

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.

SQL injection is a way to sneak database commands into a website's input so the site runs them by mistake. Here, a part of the website that builds database queries from a URL parameter did not clean the input, so the author could ask the database to reveal its own name, version, and stored user records.

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.