$$
Red40
$$
- The VM needed for this challenge can be downloaded here.
- The unzip password is: RED39
- You’ll need Kali Linux.
Lab Objectives:
- Exploit an XXE condition on the target VM to find the flag
- The flag is of the form Flag-SOMEVALUE
First Steps:
-
You will not have the login credentials to the machine.
-
Before you power it on, go to the machine settings and give the network adapter a custom MAC address.
- This way you will be able to locate it with the arp-scan utility within Kali.
- Don’t use the MAC address I have below. Everyone in the class needs something different.
- Manually randomize the MAC Address you give your machine!

Once you have started the CTF machine, launch a root shell in Kali and do the following:
- use the
*arp-scan* utility to scan the entire subnet and report back on MAC addresses that are present.
- Your Kali Linux machine must be on the same subnet as the CTF machine.
- Use
grep to filter for the MAC address that you gave the CTF Machine.
- NOTE: I only grep for the OUI of the MAC address. You should grep for the entire MAC Address!
- Use all 6 Hex characters in your grep

An initial NMAP scan shows that we have a website on port 80.
nmap -sC -sV IP_OF_TARGET_VM

The front page looks like this.
- We’ll start by looking into the ‘approved notes’ link.
