Skip to content
RCE Write-up Intermediate

[CMesS] — Gila CMS 1.10.9

A development subdomain exposed valid credentials for a CMS administrator, and the CMS version in use had a known authenticated remote code execution flaw. After gaining a web server shell, a root-run backup job that used tar with a wildcard allowed privilege escalation to root.

infosecwriteups.com

Published on infosecwriteups.com

The engagement began with standard reconnaissance techniques. A full TCP port scan and service enumeration revealed two exposed services:

Bash Overflow, on infosecwriteups.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 a combination of exposed credentials on a development subdomain, an outdated CMS with a known authenticated RCE, and a root cron backup that passed a wildcard to tar without guarding against option injection.

Impact

An attacker could gain a web server shell and then escalate to root, giving full control of the host.

What the attacker needed

Target reachable on SSH and HTTP; leaked admin credentials; public exploit for the CMS version; root cron backup using tar wildcard

How it was found

  1. Add the target domain to the hosts file and scan ports, finding SSH and HTTP.
  2. Fuzz directories and find the admin login panel, then try SQL injection on it without success.
  3. Fuzz the host header to discover a development subdomain that leaks credentials.
  4. Log in to the admin panel with the leaked credentials and confirm the CMS version.
  5. Run a public exploit for that version to obtain a web server shell.
  6. Find backup credentials under /opt, log in over SSH, and abuse the root cron tar backup to get 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.

A website's admin login details were left visible on a separate development site, so anyone who found that site could log in as an administrator. The content management system running there had a known bug that let a logged-in admin run commands on the server. Later, a scheduled backup task run by the most powerful account on the machine could be tricked into running the attacker's commands, giving full control.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.