
HTB Business CTF 2024 - Solving the Watersnake challenge by Ippsec
Source: YouTube · Hack The Box · published May 17, 2024 · 25:46
This video demonstrates how to exploit the "Water Snake" CTF challenge, which utilizes a SnakeYAML deserialization vulnerability in a Spring Boot application to achieve Remote Code Execution (RCE) and retrieve the flag 0:00.
Key Takeaways:
• Initial analysis identifies a YAML submission point on the "firmware update" page, suggesting a potential deserialization attack vector 1:22
• Source code review reveals a gadget chain where the getWaterLevel function triggers a ProcessBuilder to execute arbitrary shell commands 4:50
• The exploit is verified by sending a YAML payload to execute a sleep command, followed by using curl to exfiltrate the flag file to an external server 11:30
• If outbound connections are blocked, an alternative approach involves copying the flag to the web directory to retrieve it locally via HTTP 14:24
• The presenter concludes by loading a custom JAR file via URLClassLoader to establish a reverse shell, demonstrating a more advanced exploitation technique 18:29
The walkthrough highlights the importance of analyzing source code for gadget chains and adapting exploitation methods to bypass network restrictions.
Sources:
Generate CPE Credits
Generate a professional CPE document from this video's transcript.
Estimated credit: 0.5 CPE hours
Estimate uses the video runtime (1 hour ≈ 1 CPE, rounded to the nearest 0.5, minimum 0.5, maximum 2.0). The final amount can be lower after review, never higher.
Topic: Cybersecurity. Commonly maps to: Security and Risk Management, Security Operations. Exact CISSP domains are assigned during generation.
Free account. One generation at a time, with a daily limit.
CPEBuddy is independent and not affiliated with or endorsed by ISC2, ISACA, or any certification body. Exports are formatted for common CPE submissions; acceptance is at your certification body's discretion.
Transcript Preview
First 800 characters of the transcript
what is going on everyone this is ipac and I hope you've been enjoying the business CTF 2024 talks and are excited for the CF this upcoming weekend I know everyone at hack the box is super excited for you to play the challenges a lot of work has gone into this and I decided for my little 30 minutes I have here to talk to you today I just help you prepare for the CF by walking through one of the challenges that was put on on last year's CTF and that challenge was water snake it is a web- based Challenge and it's in the easy category it has a derealization vulnerability in it which sounds a bit odd for being easy because normally those two don't get along but let's just see exactly what this is about for all the challenges you'll generally get a Target on the website and that's just going to…