Skip to content
RCE Write-up Intermediate

Beyond the Root Prompt: Demystifying Legacy Exploits and Overcoming Subnet Routing Barriers

The text describes exploiting two known vulnerabilities in a Metasploitable2 lab: a backdoor in vsftpd 2.3.4 that opens a root shell on port 6200, and a Samba usermap_script flaw allowing remote code execution. The author also discusses a WSL network routing issue that blocked reverse shells and how switching to a bind shell bypassed it.

Queen Samuel Follow

Published on medium.com

In the realm of security engineering, dropping a pre-compiled exploit module against an unpatched target machine is often viewed as a basic, linear task. The script runs, a connection bridges, and an administrative shell returns.

Queen Samuel, 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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 7 min read.

Context

This is a lab write-up, not a live bug bounty submission. The target is a Metasploitable2 host instance, a deliberately vulnerable virtual machine used for training, and the exercise covers two legacy infrastructure flaws: the vsftpd 2.3.4 backdoor and the Samba usermap_script configuration flaw. The goal was not only to obtain root but to work through the raw network behaviour behind each exploit and to deal with a routing problem created by the attacker's own environment.

The author then maps the same exploitation behaviours onto a public case study, the agapayNG infrastructure breach, using Shostack's Four-Question Threat Modeling Framework, and closes with a defender's view of what the two compromises leave behind in process telemetry.

Setup

  • Target: Metasploitable2, reachable at [redacted] on a Host-Only adapter range (192.168.56.x).
  • Services targeted: an FTP daemon (vsftpd 2.3.4) on port 21, and Samba via the usermap_script module.
  • Attacker platform: Kali running inside a Windows Subsystem for Linux (WSL) instance, confined to a separate 172.23.33.x subnet.
  • Framework: Metasploit, with the modules exploit/unix/ftp/vsftpd_234_backdoor and exploit/multi/samba/usermap_script.
  • Preconditions: the target VM can receive outbound attack packets from the WSL subnet, but return traffic towards the attacker is blocked at the internal Windows host network firewall boundary.

Finding it

The first observation is behavioural rather than a vulnerability discovery. After the vsftpd module fires, Metasploit prints a success line and then the console goes quiet: no prompt, no cursor, no banner. The author's point is that this silence is easy to misread as failure, when in fact it is the expected signature of this particular backdoor. The second observation comes from the Samba phase, where the module reports Exploit completed, but no session was created even though the exploit itself ran, which points at the network path rather than at the payload.

Exploitation

Step 1: Fire the vsftpd 2.3.4 backdoor module

The module is loaded and pointed at the target host:

Text
exploit/unix/ftp/vsftpd_234_backdoor

with the target address set to [redacted]. On execution the console returns:

Text
[+] [redacted]:21 - Backdoor has been spawned!

After that line nothing arrives: no interactive prompt and no session. The reason is the mechanics of CVE-2011-2523. The vsftpd 2.3.4 source archive was tampered with so that a login attempt whose username contains the smiley token :) causes the daemon to branch away from its normal routines and fork an interactive root shell onto a listening socket on TCP port 6200. Because the backdoor is compiled into the target binary, no separate payload delivery is needed; the exploit module only has to trigger the condition. The Metasploit handler, however, waits for an explicit return sequence that this backdoor never sends, so it times out and reports that no session was created.

Step 2: Connect to the backdoor socket manually

Knowing the shell is already listening, the author opens a separate terminal on the attacking host and connects with Netcat:

Bash
nc -v 192.168.56.101 6200

The connection succeeds and then pauses with no output. Commands are typed blind into the empty terminal:

Text
whoami
id

The target answers with root and uid=0(root), confirming that the silent socket is a fully privileged shell.

Step 3: Attempt Samba usermap_script with a reverse shell

The second target is Samba, through the module:

Text
exploit/multi/samba/usermap_script

Unlike the vsftpd backdoor, this is a remote code execution flaw that needs an explicit payload so the target knows how to hand a command prompt back to the attacker. The initial choice is a standard reverse shell:

Text
cmd/unix/reverse

This instructs the target to call back to the attacker's handler. It fails because of the network layout: the Kali environment sits inside WSL on the 172.23.33.x subnet, while the target lives on 192.168.56.x. Outbound attack packets reach the target, but the reverse connection back towards the WSL subnet is dropped by the internal Windows host firewall boundary. Metasploit reports:

Text
Exploit completed, but no session was created

Step 4: Pivot to a bind shell

Rather than fight the firewall, the author changes the direction of the connection. The reverse payload is dropped and the module is reconfigured with:

Text
set PAYLOAD cmd/unix/bind_netcat

A reverse shell makes the target call the attacker; a bind shell makes the target open a listening socket on itself, by default on port 4444, and the attacker connects forward into it. Because the target is reachable from the attacker's subnet, this direction is not blocked. The exploit command is run again and the session stabilises immediately. Running whoami and id confirms administrative access as root.

Step 5: Threat model the agapayNG case

The lab behaviours are then mapped onto the agapayNG breach using Shostack's four questions:

  1. What are we building? A cloud-native web application infrastructure integrated with automated continuous delivery scripts and internal database microservices.
  2. What can go wrong? Attackers can exploit exposed environmental storage assets, bypass application access parameters, or harvest sensitive files.
  3. What are we going to do about it? Enforce strict environment file isolation policies, encrypt system secrets, and maintain rigorous egress filtering boundaries.
  4. Did we do a good job? Conduct continuous configuration posture reviews to ensure access controls are actively hardened.

The review concludes that the front-end components carried standard access control risks, but the root breach vector maps to OWASP A02/A03, Cryptographic Failures and Security Misconfigurations. Sensitive administrative parameters and unencrypted, plain-text database passwords had been committed and exposed inside a public environment configuration file. That oversight let external actors run unauthorised orchestration across internal network segments, which mirrors the access control bypasses performed in the Metasploit lab.

Root cause

There are three distinct causes here.

  • vsftpd: the distributed 2.3.4 source archive contained a backdoor inserted by a malicious actor. A hardcoded check on the :) token in the username forks a root shell onto port 6200. The flaw is in the shipped binary, so no payload is required.
  • Samba: the usermap_script configuration flaw allows remote command execution. The report does not describe the vulnerable configuration line itself.
  • agapayNG: secrets, including plain-text database passwords, were placed in a public environment configuration file. The report does not state which controls should have caught the commit.

The WSL failure is not a vulnerability but an environment constraint: the attacker's subnet and the target's subnet sit on opposite sides of the Windows host firewall, so only inbound-to-target traffic passes.

Impact

In the lab, both flaws yield an interactive root shell on the target. The vsftpd case needs no payload: the backdoor is already in the binary. The Samba case gives the same level of access, but only when a payload direction that survives the network path is chosen; with a reverse payload and a blocking firewall, the exploit runs and yields nothing.

In the agapayNG case, the exposed configuration file gave external actors administrative parameters and database credentials, and with them the ability to orchestrate across internal network segments. The report frames this as an access control bypass comparable to the lab exploits.

Fix

For the agapayNG class of issue, the report recommends strict environment file isolation, encryption of system secrets, rigorous egress filtering, and continuous configuration posture reviews so that access controls stay hardened.

Defender's takeaway

Both compromises leave a clear behavioural trail. An FTP daemon or a Samba file-sharing service should never spawn an interactive shell binary such as /bin/sh under any legitimate operating condition. That parent-child process deviation is a strong anomaly, and EDR and host-based tracking tools are built to flag exactly this kind of process-lineage error. Watching for behavioural anomalies catches active attacks even when the specific malware signature is unknown.

Variants to test

  1. Backdoored vsftpd builds elsewhere. Connect to FTP and send a login whose username contains :), then try TCP port 6200 on the same host. A positive result is an immediate root shell on the second connection with no payload delivered.
  2. Samba usermap_script behind a firewall. Run the module with cmd/unix/bind_netcat when reverse traffic is filtered. A positive result is a stabilised session and id returning uid=0(root).
  3. Any exploit where the handler times out. Check whether the target opened a listening socket of its own (for example port 4444 for a bind payload) and connect to it directly. A positive result is a shell on a port the framework never reported.
  4. Public configuration files in cloud-native projects. Search repositories and deployed assets for environment files containing credentials. A positive result is a plain-text secret that grants access to a database or orchestration plane.
  5. Process lineage on file-sharing and FTP hosts. Alert on any shell binary spawned by vsftpd, smbd or similar daemons. A positive result is a real compromise caught without a signature.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 19 min read.

What happened, in plain words

Someone set up a deliberately broken computer on purpose, then attacked it from another computer to learn how attacks work. The broken computer is a virtual machine called Metasploitable2: a machine that exists only as software, built to be full of old, known weaknesses so that people can practise on it safely. The attacker's machine was a Kali system, which is a Linux distribution that comes with security tools preinstalled, running inside Windows Subsystem for Linux (WSL), a feature of Windows that lets you run a Linux environment as if it were an app on your desktop.

Two old weaknesses were used. The first is in vsftpd 2.3.4, a program that lets people upload and download files over a network using a protocol called FTP. That particular version was quietly sabotaged by someone before it was released, so it contains a hidden way in. The second is in Samba, a program that lets Linux machines share files and printers with Windows machines, and the weakness is in a part of its configuration called usermap_script.

The interesting part is not that the attacks worked. It is what happened around them. The first attack appeared to fail because the screen went silent, and the author had to understand why silence was actually success. The second attack really did fail, not because the weakness was absent but because the attacker's own network setup blocked the reply. The author fixed that by changing the direction of the connection. Finally, the same ideas were applied to a real public incident, the agapayNG breach, and the write-up ends with what a defender would see in the logs.

The setup, explained

Before any attack, you need to know where everything sits.

  • Target: Metasploitable2, reachable at [redacted] on a Host-Only adapter range (192.168.56.x).
  • Services targeted: an FTP daemon (vsftpd 2.3.4) on port 21, and Samba via the usermap_script module.
  • Attacker platform: Kali running inside a Windows Subsystem for Linux (WSL) instance, confined to a separate 172.23.33.x subnet.
  • Framework: Metasploit, with the modules exploit/unix/ftp/vsftpd_234_backdoor and exploit/multi/samba/usermap_script.
  • Preconditions: the target VM can receive outbound attack packets from the WSL subnet, but return traffic towards the attacker is blocked at the internal Windows host network firewall boundary.

A few of those words need unpacking.

An IP address is like a postal address for a computer on a network. [redacted] is the address of the target machine. The 192.168.56.x notation means "any address that starts with 192.168.56", the way you might say "any house on this street".

A subnet is a group of addresses that belong together, like one street or one neighbourhood. The attacker's machine sits on a different subnet, 172.23.33.x, which matters later: two machines on different subnets can have trouble talking back to each other.

A port is like a numbered door on a computer. One machine can run many services at once, and each listens on its own door number. FTP traditionally uses port 21. When you connect to a service, you connect to an address plus a port.

A daemon is simply a program that runs in the background, waiting for requests, rather than one you sit and use directly. The FTP daemon is the program waiting on port 21 for someone to log in.

Metasploit is a framework: a collection of ready-made attack tools with a common interface. Each attack is packaged as a module, which is a bit like a recipe card the framework can load and run. You tell it which module to use and what address to aim at.

A firewall is a filter that decides which network traffic is allowed through and which is dropped. The Windows host firewall here sits between the attacker's subnet and the target's subnet, and it only lets traffic pass in one direction.

Finding it

The first observation is behavioural rather than a vulnerability discovery. After the vsftpd module fires, Metasploit prints a success line and then the console goes quiet: no prompt, no cursor, no banner. The author's point is that this silence is easy to misread as failure, when in fact it is the expected signature of this particular backdoor. The second observation comes from the Samba phase, where the module reports Exploit completed, but no session was created even though the exploit itself ran, which points at the network path rather than at the payload.

In plain terms: the tool told the author two different stories. In the first case it said it had succeeded, and then nothing visible happened. In the second case it said the attack ran but no connection came back. Both messages are easy to misread if you do not know what the underlying programs are actually doing.

Exploitation

Step 1: Fire the vsftpd 2.3.4 backdoor module

The module is loaded and pointed at the target host:

Text
exploit/unix/ftp/vsftpd_234_backdoor

This line is the name of the module inside Metasploit. The path reads like a folder structure: exploit is the category, unix narrows it to Unix-like systems, ftp says which service, and vsftpd_234_backdoor names the specific weakness. Choosing a module is like choosing the right key from a keyring before you walk up to a door.

With the target address set to [redacted], the module is executed. On execution the console returns:

Text
[+] [redacted]:21 - Backdoor has been spawned!

The [+] is Metasploit's way of marking good news. The line says that on the target at [redacted], at port 21, a backdoor has been started. A backdoor is a hidden way into a system that bypasses the normal login, like a secret servant's entrance that was built into the house without the owner knowing.

After that line nothing arrives: no interactive prompt and no session. A session in Metasploit means a live connection to the target through which you can type commands. Getting a session is normally the goal, so a success message with no session looks contradictory.

The reason is the mechanics of CVE-2011-2523. A CVE is a public catalogue number for a known security flaw, so CVE-2011-2523 is simply the official identifier for this one. The vsftpd 2.3.4 source archive was tampered with so that a login attempt whose username contains the smiley token :) causes the daemon to branch away from its normal routines and fork an interactive root shell onto a listening socket on TCP port 6200.

That sentence is dense, so take it apart. The source archive is the package of original code that gets compiled into the program people install. Someone modified that package before release, which means every copy built from it carries the change. A login attempt is what happens when a client sends a username and password. The username is the name part of a login. The backdoor watches for the two characters :) inside that username. If they appear, the program stops doing its normal job and instead starts a shell: a program that accepts typed commands and runs them. Fork means to start a new process alongside the current one, the way a shop assistant might call a colleague over to serve a second queue. Root is the all-powerful administrator account on a Linux system, the equivalent of the owner's master key. A socket is one end of a network conversation, and a listening socket is one that waits for someone to connect. TCP is the common protocol that carries reliable, ordered connections across a network, and port 6200 is the door the shell is told to wait behind.

Because the backdoor is compiled into the target binary, no separate payload delivery is needed; the exploit module only has to trigger the condition. A payload is the extra piece of code an attack usually has to smuggle onto the target to do something useful once the weakness is reached. Here the useful code is already inside the program, so the attack only has to say the magic word. The comparison is a lock that was manufactured with a second keyhole: you do not need to bring a key, you just need to know the second keyhole exists.

The Metasploit handler, however, waits for an explicit return sequence that this backdoor never sends, so it times out and reports that no session was created. The handler is the part of the framework that listens for the target to connect back and then turns that connection into a session. It expects a particular opening message, a kind of handshake. This backdoor never sends one, so the handler waits, gives up, and reports failure even though the shell is sitting there waiting.

Step 2: Connect to the backdoor socket manually

Knowing the shell is already listening, the author opens a separate terminal on the attacking host and connects with Netcat:

Bash
nc -v 192.168.56.101 6200

Netcat is a small utility that opens a raw network connection and lets you type into it, like a bare telephone line with no app in between. nc is its command name. -v means verbose, so it reports what it is doing. [redacted] is the target address and 6200 is the port, the door the backdoor shell was told to wait behind. The command says: open a connection to that address on that port and tell me what happens.

The connection succeeds and then pauses with no output. That pause is expected: the shell on the other side is waiting for input and has nothing to say first. There is no welcome banner because this is not a normal login service, just a raw command interpreter.

Commands are typed blind into the empty terminal:

Text
whoami
id

whoami asks the system to print the name of the user you are currently running as. id asks for more detail: your user identifier and the groups you belong to. These are the two simplest ways to answer the question "what am I on this machine?".

The target answers with root and uid=0(root), confirming that the silent socket is a fully privileged shell. root is the administrator account name, and uid=0 means user identifier zero, which on Linux is always the all-powerful account. So the blank screen was not a failure at all: it was a working administrator shell that simply does not introduce itself.

Step 3: Attempt Samba usermap_script with a reverse shell

The second target is Samba, through the module:

Text
exploit/multi/samba/usermap_script

Again this is a module path. multi means it applies to more than one kind of target platform, samba names the service, and usermap_script names the specific configuration weakness. Samba is the software that lets Linux machines share files and printers with Windows machines, so it is common in mixed networks and often exposed.

Unlike the vsftpd backdoor, this is a remote code execution flaw that needs an explicit payload so the target knows how to hand a command prompt back to the attacker. Remote code execution, usually shortened to RCE, means an attacker can make the target run commands of their choosing over the network. Because the weakness does not come with a built-in shell the way the vsftpd backdoor does, the attacker has to supply instructions for how to send one back.

The initial choice is a standard reverse shell:

Text
cmd/unix/reverse

This is the name of the payload. cmd says it produces a command shell, unix says it is for Unix-like systems, and reverse says the direction: the target will reach out to the attacker. A reverse shell is a connection where the victim machine calls the attacker's machine and hands over a command prompt. It is popular because firewalls often allow outgoing connections more readily than incoming ones, the same way a building may let people leave freely but check everyone at the entrance.

This instructs the target to call back to the attacker's handler. It fails because of the network layout: the Kali environment sits inside WSL on the 172.23.33.x subnet, while the target lives on 192.168.56.x. Outbound attack packets reach the target, but the reverse connection back towards the WSL subnet is dropped by the internal Windows host firewall boundary. A packet is a small chunk of network data; every message on a network is chopped into packets. The attack packets travel from the attacker to the target without trouble, but the reply has to travel the other way, and that direction is blocked.

Metasploit reports:

Text
Exploit completed, but no session was created

This line means the attack itself ran to completion, but no usable connection came back. It is the framework's way of saying "the attempt happened, the result did not arrive". The cause is not the weakness and not the payload logic; it is the path between the two machines.

Step 4: Pivot to a bind shell

Rather than fight the firewall, the author changes the direction of the connection. The reverse payload is dropped and the module is reconfigured with:

Text
set PAYLOAD cmd/unix/bind_netcat

set is the Metasploit command for changing an option. PAYLOAD is the option name. cmd/unix/bind_netcat is the new value: a payload that produces a command shell on a Unix-like system by using Netcat in bind mode. A bind shell is the opposite of a reverse shell: the target opens a door on itself and waits, and the attacker walks through it.

A reverse shell makes the target call the attacker; a bind shell makes the target open a listening socket on itself, by default on port 4444, and the attacker connects forward into it. Because the target is reachable from the attacker's subnet, this direction is not blocked. The comparison is a phone call: with a reverse shell you ask the other person to call you, and if your phone cannot receive calls that fails; with a bind shell you ask them to stay by a phone you can dial, and you make the call yourself.

The exploit command is run again and the session stabilises immediately. Running whoami and id confirms administrative access as root.

Step 5: Threat model the agapayNG case

The lab behaviours are then mapped onto the agapayNG breach using Shostack's four questions. Threat modelling is the practice of systematically asking what could go wrong with a system before it does, rather than reacting afterwards. Shostack's framework is a well-known set of four questions that structure that thinking.

  1. What are we building? A cloud-native web application infrastructure integrated with automated continuous delivery scripts and internal database microservices.
  2. What can go wrong? Attackers can exploit exposed environmental storage assets, bypass application access parameters, or harvest sensitive files.
  3. What are we going to do about it? Enforce strict environment file isolation policies, encrypt system secrets, and maintain rigorous egress filtering boundaries.
  4. Did we do a good job? Conduct continuous configuration posture reviews to ensure access controls are actively hardened.

Some of those terms need explaining. Cloud-native means software designed to run in a cloud provider's environment, using its managed services rather than a single physical server. Continuous delivery is the practice of automatically building and shipping software changes, often many times a day. A microservice is a small, focused piece of an application that talks to other small pieces over the network, rather than one giant program doing everything. An environment file is a small configuration file that holds settings a program needs at startup, often including passwords and connection strings. Egress filtering means controlling what traffic is allowed to leave a network, as opposed to ingress filtering, which controls what comes in. Encryption is scrambling data with a key so that only someone holding the key can read it.

The review concludes that the front-end components carried standard access control risks, but the root breach vector maps to OWASP A02/A03, Cryptographic Failures and Security Misconfigurations. OWASP is a well-known organisation that publishes lists of common web application security problems, and A02 and A03 are its category numbers for those two classes. Cryptographic failures means secrets were not protected properly, for example stored unencrypted. Security misconfiguration means a system was set up insecurely, for example leaving a sensitive file publicly readable. Sensitive administrative parameters and unencrypted, plain-text database passwords had been committed and exposed inside a public environment configuration file. Plain text means not encrypted at all, readable by anyone who finds it. Committed refers to saving a change into a version control system, the shared record of every change to a codebase, which is how such a file ends up published.

That oversight let external actors run unauthorised orchestration across internal network segments, which mirrors the access control bypasses performed in the Metasploit lab. Orchestration here means controlling and directing systems automatically, so an outsider with the right credentials could direct internal systems as if they were staff.

Root cause

There are three distinct causes here.

  • vsftpd: the distributed 2.3.4 source archive contained a backdoor inserted by a malicious actor. A hardcoded check on the :) token in the username forks a root shell onto port 6200. The flaw is in the shipped binary, so no payload is required. A binary is the compiled program that actually runs on the machine, as opposed to its source code. Hardcoded means the check is written directly into the program rather than being a setting someone can change.
  • Samba: the usermap_script configuration flaw allows remote command execution. The report does not describe the vulnerable configuration line itself.
  • agapayNG: secrets, including plain-text database passwords, were placed in a public environment configuration file. The report does not state which controls should have caught the commit.

The WSL failure is not a vulnerability but an environment constraint: the attacker's subnet and the target's subnet sit on opposite sides of the Windows host firewall, so only inbound-to-target traffic passes.

Impact

In the lab, both flaws yield an interactive root shell on the target. The vsftpd case needs no payload: the backdoor is already in the binary. The Samba case gives the same level of access, but only when a payload direction that survives the network path is chosen; with a reverse payload and a blocking firewall, the exploit runs and yields nothing.

In the agapayNG case, the exposed configuration file gave external actors administrative parameters and database credentials, and with them the ability to orchestrate across internal network segments. Credentials are the username and password pair that prove identity. The report frames this as an access control bypass comparable to the lab exploits.

Fix

For the agapayNG class of issue, the report recommends strict environment file isolation, encryption of system secrets, rigorous egress filtering, and continuous configuration posture reviews so that access controls stay hardened. Configuration posture means the overall state of a system's settings, judged against a security baseline.

Defender's takeaway

Both compromises leave a clear behavioural trail. An FTP daemon or a Samba file-sharing service should never spawn an interactive shell binary such as /bin/sh under any legitimate operating condition. Spawning means starting a new process. /bin/sh is the standard Unix shell program, the thing that runs typed commands. A file-sharing service has no reason to start one, so when it does, something is wrong.

That parent-child process deviation is a strong anomaly, and EDR and host-based tracking tools are built to flag exactly this kind of process-lineage error. EDR, endpoint detection and response, is software that watches individual machines for suspicious behaviour. Process lineage is the record of which process started which other process, like a family tree of running programs. Anomaly means something that does not fit the normal pattern. Watching for behavioural anomalies catches active attacks even when the specific malware signature is unknown. A signature is a known fingerprint of a particular piece of malicious software; behaviour-based detection does not need one, because it looks at what a program does rather than what it is.

Variants to test

  1. Backdoored vsftpd builds elsewhere. Connect to FTP and send a login whose username contains :), then try TCP port 6200 on the same host. A positive result is an immediate root shell on the second connection with no payload delivered.
  2. Samba usermap_script behind a firewall. Run the module with cmd/unix/bind_netcat when reverse traffic is filtered. A positive result is a stabilised session and id returning uid=0(root).
  3. Any exploit where the handler times out. Check whether the target opened a listening socket of its own (for example port 4444 for a bind payload) and connect to it directly. A positive result is a shell on a port the framework never reported.
  4. Public configuration files in cloud-native projects. Search repositories and deployed assets for environment files containing credentials. A positive result is a plain-text secret that grants access to a database or orchestration plane.
  5. Process lineage on file-sharing and FTP hosts. Alert on any shell binary spawned by vsftpd, smbd or similar daemons. A positive result is a real compromise caught without a signature.

Glossary

  • Anomaly: something that does not fit the normal pattern of behaviour.
  • Backdoor: a hidden way into a system that bypasses the normal login.
  • Binary: the compiled program that actually runs on a machine, as opposed to its source code.
  • Bind shell: a shell where the target opens a listening port and the attacker connects to it.
  • Cloud-native: software designed to run in a cloud provider's environment using its managed services.
  • Configuration posture: the overall state of a system's settings judged against a security baseline.
  • Continuous delivery: the practice of automatically building and shipping software changes.
  • Credentials: the username and password pair that prove identity.
  • Cryptographic failures: a security category for secrets that were not protected properly, for example stored unencrypted.
  • CVE: a public catalogue number for a known security flaw.
  • Daemon: a program that runs in the background waiting for requests.
  • EDR: endpoint detection and response, software that watches individual machines for suspicious behaviour.
  • Egress filtering: controlling what network traffic is allowed to leave a network.
  • Encryption: scrambling data with a key so only someone holding the key can read it.
  • Environment file: a small configuration file holding settings a program needs at startup, often including passwords.
  • Firewall: a filter that decides which network traffic is allowed through and which is dropped.
  • Fork: to start a new process alongside the current one.
  • FTP: file transfer protocol, an old standard for uploading and downloading files over a network.
  • Handler: the part of an attack framework that listens for the target to connect back and turns that into a session.
  • Hardcoded: written directly into a program rather than being a changeable setting.
  • Host-Only adapter: a virtual network mode where virtual machines can talk to the host and each other but not to the outside network.
  • IP address: the numeric address of a computer on a network.
  • Kali: a Linux distribution that comes with security tools preinstalled.
  • Listening socket: a network socket that waits for incoming connections.
  • Metasploit: a framework of ready-made attack tools with a common interface.
  • Metasploitable2: a deliberately vulnerable virtual machine used for training.
  • Microservice: a small, focused piece of an application that talks to other pieces over the network.
  • Module: a packaged attack inside a framework such as Metasploit.
  • Netcat: a small utility that opens a raw network connection and lets you type into it.
  • Orchestration: automatically controlling and directing systems.
  • OWASP: an organisation that publishes lists of common web application security problems.
  • Packet: a small chunk of network data.
  • Payload: the extra code an attack delivers to do something useful once the weakness is reached.
  • Plain text: not encrypted at all, readable by anyone who finds it.
  • Port: a numbered door on a computer that a particular service listens on.
  • Process lineage: the record of which process started which other process.
  • Remote code execution (RCE): a flaw that lets an attacker make the target run commands of their choosing over the network.
  • Reverse shell: a shell where the target connects back to the attacker.
  • Root: the all-powerful administrator account on a Linux system.
  • Samba: software that lets Linux machines share files and printers with Windows machines.
  • Security misconfiguration: a security category for systems set up insecurely.
  • Session: a live connection to a target through which you can type commands.
  • Shell: a program that accepts typed commands and runs them.
  • Signature: a known fingerprint of a particular piece of malicious software.
  • Socket: one end of a network conversation.
  • Source archive: the package of original code that gets compiled into an installable program.
  • Spawning: starting a new process.
  • Subnet: a group of network addresses that belong together.
  • TCP: the common protocol that carries reliable, ordered connections across a network.
  • Threat modelling: systematically asking what could go wrong with a system before it does.
  • Username: the name part of a login.
  • Virtual machine: a computer that exists only as software running on another computer.
  • vsftpd: a popular FTP server program.
  • WSL: Windows Subsystem for Linux, a Windows feature that runs a Linux environment as if it were an app.

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.