
Expanded Exploit based on CVE-2024-41570
This SSRF-RCE Chain was inspired by chebuya's CVE-2024-41570 SSRF POC and IncludeSecurity's Havoc Auth RCE both exploits are amazing and well crafted, please do give these creators appriciation for their hardwork!
The SSRF vulnerability works by spoofing a demon agent registration and checkins to open a TCP socket on the teamserver and read/write data from it. The RCE vulnerability works by exploiting a flaw in Havoc's Payload creation by injecting code within the Service-Name, unfiltered string, allowing a Authenticated User to run System Commands on the teamserver.
With a teamserver's websocket port being inaccessible to the public, we can create functions that create WebSocket frames that we can push to the Closed/Filtered Teamserver port via the SSRF.
Hackers (1995) - Hack The Planet!