In this write-up, we will walk through the steps to exploit the "Caesar 2" challenge, specifically focusing on the "Get into PC" level. This challenge is designed to test one's skills in identifying and exploiting vulnerabilities to gain unauthorized access to a system.
Upon closer inspection of the web application, entering a string in the caesar= parameter results in an encrypted string. This indicates the application might be using a Caesar cipher for encryption. Further testing reveals that the shift is .
nmap -sV -p 1-65535 <target IP> The scan reveals that several ports are open, but one port in particular catches our attention: and 80 (HTTP) .
Knowing the shift value, we can potentially decode messages or create encoded messages that the system can understand. However, to gain access to the PC, we need to find a way to leverage this vulnerability.
Upon initial assessment, we are provided with limited information about the system. The challenge hints at potential vulnerabilities but does not provide explicit details about the services running or the system's configuration.
The hint "caesar 2" suggests a possible Caesar cipher vulnerability. A Caesar cipher is a type of substitution cipher in which each character in the plaintext is 'shifted' a certain number of places down the alphabet.
The first step in any exploitation process is to gather as much information as possible about the target system. Using basic network scanning techniques:
The objective of this challenge is to gain access to a PC by exploiting vulnerabilities in the Caesar 2 system.
By analyzing the application's behavior, we observe that if we submit an encoded string with specific values (especially crafted to the Caesar shift of 2), we can potentially trick the system into performing actions not intended by the developers.