Skip to content
RCE Write-up Intermediate

Complex Attack Types: Sample Scenarios 39

The report describes a penetration test against a WordPress site where an outdated Jellyfin server and a vulnerable Monitorr application were found. The attacker exploited a remote code execution vulnerability in Monitorr to upload a web shell, then escalated privileges to root using a local privilege escalation exploit.

brsdncr Follow

Published on medium.com

This article will strengthen your penetration ability in many ways. In particular, you will see the importance of exploit research, how it should be implemented, and how important it is to edit existing scripts.

Baris Dincer, 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 Monitorr application version 1.7.6m contains a remote code execution vulnerability that allows uploading a PHP file with a double extension to bypass file type restrictions.

Impact

An attacker could execute arbitrary commands on the server, leading to full compromise and privilege escalation to root.

What the attacker needed

Access to the target network; Monitorr version 1.7.6m; ability to run Python scripts

How it was found

  1. Scan the target with Nmap to discover open ports and services.
  2. Identify the Monitorr application on a subdomain and check its version.
  3. Search for exploits using searchsploit and download the RCE exploit.
  4. Modify the exploit script to handle SSL errors and add cookie for isHuman.
  5. Change the uploaded file name to a double extension like .gif.phtml to bypass filters.
  6. Run the exploit to upload a shell and trigger it to get a reverse connection.

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 hacking exercise. The tester found an old version of a program called Monitorr that had a known security hole. By tweaking a public exploit script, they were able to upload a malicious file and take control of the server.

What is RCE?

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

More by brsdncr

View all

7 more disclosed reports, best first.

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.