Researchers have uncovered a worm that’s designed to plant backdoors on QNAP network-attached storage (NAS) devices. The malware is distributed through the exploitation of the GNU Bash vulnerability known as ShellShock.
Cybercriminals started exploiting ShellShock to gain full access to the contents of NAS devices developed by Taiwan-based QNAP shortly after the existence of the vulnerability came to light. The vendor released updates to address the flaw in its product at the beginning of October, but because the patches are not easy to apply many systems remain vulnerable.
The SANS Institute reports that a worm is currently spreading among QNAP devices, which run an embedded Linux operating system, by exploiting the Bash vulnerability.
“The attack targets a QNAP CGI script, ‘/cgi-bin/authLogin.cgi’, a well known vector for Shellshock on QNAP devices,” Johannes Ullrich of the SANS Internet Storm Center wrote in a blog post. “This script is called during login, and reachable without authentication. The exploit is then used to launch a simple shell script that will download and execute a number of additional pieces of malware.”
One of the worm’s malicious components is designed for click fraud and it targets the online advertisement network JuiceADV.
The threat also sets up backdoors on infected devices by creating an SSH server on port 26, by adding a user (named “request“) with administrator privileges, and by copying some CGI scripts with backdoor functionality to the “cgi-bin” directory. The malware modifies the “autorun.sh” file in order to run the backdoors on reboot.
Researchers have also noticed that the worm sets the DNS server on the infected machine to 8.8.8.8, which is actually Google’s DNS server. It’s possible that the attackers do this in order to get a more reliable DNS server, since as Ullrich explains, QNAP devices sometime use internal DNS servers which aren’t fully recursive. By using this method, the attackers might also be trying to evade potential logging mechanisms.
The worm is dangerous because it abuses infected systems to look for other vulnerable devices on the network, Ullrich noted.
Interestingly, the malware also patches the ShellShock vulnerability on infected devices by downloading the applying the security updates from QNAP. Experts believe the threat does this to prevent additional exploitation.
NAS devices are also a tempting target for ransomware attacks. This summer, a piece of ransomware dubbed SynoLocker was used to infect Synology NAS servers by exploiting a vulnerability that was patched in December 2013.

Eduard Kovacs (@EduardKovacs) is a contributing editor at SecurityWeek. He worked as a high school IT teacher for two years before starting a career in journalism as Softpedia’s security news reporter. Eduard holds a bachelor’s degree in industrial informatics and a master’s degree in computer techniques applied in electrical engineering.
More from Eduard Kovacs
- Intel Boasts Attack Surface Reduction With New 13th Gen Core vPro Platform
- Dole Says Employee Information Compromised in Ransomware Attack
- High-Severity Vulnerabilities Found in WellinTech Industrial Data Historian
- CISA Expands Cybersecurity Committee, Updates Baseline Security Goals
- Exploitation of 55 Zero-Day Vulnerabilities Came to Light in 2022: Mandiant
- Organizations Notified of Remotely Exploitable Vulnerabilities in Aveva HMI, SCADA Products
- Waterfall Security, TXOne Networks Launch New OT Security Appliances
- Hitachi Energy Blames Data Breach on Zero-Day as Ransomware Gang Threatens Firm
Latest News
- Intel Co-founder, Philanthropist Gordon Moore Dies at 94
- Google Leads $16 Million Investment in Dope.security
- US Charges 20-Year-Old Head of Hacker Site BreachForums
- Tesla Hacked Twice at Pwn2Own Exploit Contest
- CISA Ships ‘Untitled Goose Tool’ to Hunt for Microsoft Azure Cloud Infections
- Critical WooCommerce Payments Vulnerability Leads to Site Takeover
- PoC Exploit Published for Just-Patched Veeam Data Backup Solution Flaw
- CISA Gets Proactive With New Pre-Ransomware Alerts
