Skip to content
SQL injection Write-up Intermediate

Daily Bugle  —  Joomla 3.7.0

The report describes exploiting a known unauthenticated SQL injection in Joomla 3.7.0 to dump user credentials, then using admin access to upload a reverse shell and escalate privileges via a sudo misconfiguration. An attacker could gain database access, execute commands as the web user, and finally obtain root.

medium.com

Published on medium.com

Joomla is a widely-used open-source content management system (CMS) that allows users to build and manage websites efficiently. Written in PHP, it is highly extensible with plugins, templates, and modules.

Bash Overflow, 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

Impact

An attacker could gain unauthorised access to the database, execute commands as the web server user, and escalate to root, leading to full system compromise.

What the attacker needed

Network access to the target; Joomla 3.7.0 running; Public exploit script available

How it was found

  1. Scan the target with Joomscan to identify the Joomla version and components.
  2. Download and run a public exploit script for CVE-2017-8917 to dump usernames and password hashes.
  3. Crack the password hash using an online service.
  4. Log into the Joomla administrator panel with the recovered credentials.
  5. Create a new template file containing a PHP reverse shell and trigger it via the browser.
  6. Use the shell to read configuration.php, switch to another user, and exploit sudo yum to gain root.

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 is a walkthrough of a known Joomla bug that lets anyone read the site's database without logging in. The attacker steals usernames and password hashes, cracks a password, logs into the admin panel, and uploads a malicious file to run commands on the server. Finally, a misconfigured sudo setting lets them become the root user.

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.