Home HtB - CA2023 - Hijack
Post
Cancel

HtB - CA2023 - Hijack

banner HackTheBox Cyber Apocalypse 2023

The security of the alien spacecrafts did not prove very robust, and you have gained access to an interface allowing you to upload a new configuration to their ship’s Thermal Control System. Can you take advantage of the situation without raising any suspicion?

Solution

We are given a small text-based UI upon connecting to the code via netcat. Enumeration of the code reveals the ability to upload PyYaml scripts encoded in base64.

To exploit this, we’ll simply create a PyYaml payload to cat flag.txt, base64 encode it, and upload that to the server;

  • payload
  • flag

And just like that we receive our flag;

Flag HTB{1s_1t_ju5t_m3_0r_iS_1t_g3tTing_h0t_1n_h3r3?}

This post is licensed under CC BY 4.0 by the author.

HtB - CA2023 - Didactic Octo Paddles

HtB - CA2023 - Labyrinth

Comments powered by Disqus.