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.
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.
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
- Find a Joomla site with the JCK Editor component by browsing a known vulnerable path.
- Insert a crafted value into the 'parent' parameter to test for SQL injection.
- Confirm the injection by retrieving database(), user(), and version().
- Use sqlmap on the same URL and parameter to list all databases.
- 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.