SSL (Secure Sockets Later)


Overview

SSL (Secure Sockets Later)e Welcome to another post in our series of beginner-friendly challenges—we’re getting close to the end! This time, we’ll cover essential OpenSSL concepts, how to connect using the tool, and most importantly, how it all works. And as always, we’ll stick to The Principle of Parsimony as our go-to method for solving challenges on this blog

Challenge Info

Flag name Challenge description
SSL (Secure Sockets Later) We identified a strange service. Can you identify the flag in the service response?
The system can be reached on 10.6.0.2.
hint: you may need to replace two characters ;)

Tools

  • Kali linux (optional)
  • Nmap
  • openssl

Enumeration

After establishing the VPN connection, properly enumerating the available protocols and services will be essential. Here are the key points to keep in mind:

  • To list files and directories (using ffuf, wfuzz, feroxbuster, etc).
  • To check if the web application has a robots.txt file.
  • To review commented or hidden content within the front-end.
  • Test connections with other services.

  • We checked the main directories and important sections of the web application but didn’t find anything that stood out. Let’s move on to analyzing the challenge.

    Flag: SSL (Secure Sockets Later)

    Based on the challenge name and the data collected during the reconnaissance phase, our approach should focus on interacting with an SSL service. The initial step is to test the connection using the openssl utility, specifically the s_client option, by providing the target IP address and port.
    After connecting to the server with OpenSSL, we notice something unusual in the certificate—it contains the acronym ‘CTF’. The challenge hints at replacing two characters, so we copy the string and swap ‘/’ for ‘{}’, which gives us the flag.
    This is everything, I hope you enjoyed the write-up and learned something new. Happy hacking! :)

  • https://www.liquidweb.com/blog/how-to-test-ssl-connection-using-openssl/
  • https://medium.com/@MakeComputerScienceGreatAgain/demystifying-openssl-how-it-works-to-secure-your-data-ba2792474e1e