Post

Beach Bar

At the Beach Bar, even shell access is complimentary. The jukebox takes requests. Any kind.

Beach Bar

image-1385

Scenario

image-1386 image-1390

Questions

image-1388


Reconnaissance

rustscan -a 10.48.171.194 -- -sV -sC

image-1392

image-1393

Ports 22(SSH) and 80(HTTP) are open


Website

image-1391

image-1394

Found credentials dj:dj in the page source

image-1395

image-1396


YAML Injection

Inside, we are allowed to import a .yml file

But if they haven’t configured security here, we might be able to run python code. So let’s try to use !!python/object/apply:os.system <COMMAND>

image-1398

and it works. Now, let’s try to do a reverse shell

Use nc -lnvp 4444 to wait for a connection

image-1399

image-1401image-1400

And we’re in!

image-1402

and we can find the first flag at /home/bartender/user.txt

image-1403


Get Root

Next I try enumerating the machine and find something interesting

image-1405

We can see jukeboxd.py, and it shows the password for jukebox SunsetSpritz2024!. Then I try using this password with the root user

image-1407

and now we are root!

image-1408

Finally, we got the flag!

DONE!!!


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