Skip to content
RCE Write-up Intermediate

Decoding Skynet Unveiling The Enigmatic Cybernetic Labyrinth

The report describes a penetration test of a deliberately vulnerable machine called Skynet, where the tester found an SMB share containing a password list, used it to brute-force a SquirrelMail account, then exploited a file inclusion vulnerability in Cuppa CMS to gain a foothold, and finally used a tar wildcard injection during a cron backup to escalate to root. An attacker could read the user and root flags, demonstrating full compromise of the system.

CySec Sensei Follow

Published on systemweakness.com

This blog article covers a recent penetration testing journey in which I dived into the depths of a system known as Skynet. The path involves extensive reconnaissance, exploiting flaws, and eventually acquiring access to both user and root rights.

CySec Sensei, on systemweakness.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 multiple weaknesses: an anonymously accessible SMB share containing a password list, weak passwords, a file inclusion flaw in Cuppa CMS, and a cron job running tar with a wildcard in a writable directory.

Impact

An attacker could gain user-level access via the CMS file inclusion and then escalate to root via the tar wildcard injection, fully compromising the machine.

What the attacker needed

Network access to the target; SMB share anonymously readable; weak user password

How it was found

  1. Scan the target with nmap to find open ports and services.
  2. Enumerate SMB shares and find an anonymous share containing a password list.
  3. Brute-force the SquirrelMail login for user milesdyson using the password list.
  4. Log in to SquirrelMail and find an SMB password in the emails.
  5. Access the milesdyson SMB share and read important.txt, which hints at a CMS path.
  6. Enumerate the hinted path, find Cuppa CMS, and exploit its file inclusion to get a reverse shell.

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 deliberately vulnerable practice machine, not a real-world bug bounty. The tester found a file share that anyone could read, which contained a list of passwords. They used that list to guess a user's email password, then found a web page that let them run their own code, and finally tricked a backup program into giving them full control of the machine.

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.