QNAP removes backdoor account in NAS backup, disaster recovery app

Update: QNAP confirmed that Qlocker ransomware has used the removed backdoor account to hack into some customers' NAS devices and encrypt their files.

[T]he so-called Qlocker ransomware took advantage of one of the patched vulnerabilities in HBS to launch a hostile campaign, targeting QNAP NAS directly connected to the Internet with unpatched old versions of HBS.


QNAP has addressed a critical vulnerability allowing attackers to log into QNAP NAS (network-attached storage) devices using hardcoded credentials.

The hard-coded credentials vulnerability tracked as CVE-2021-28799 was found by Taiwan-based ZUSO ART in HBS 3 Hybrid Backup Sync, the company's disaster recovery and data backup solution. 

The company says that the security bug is already fixed in the following HBS versions and advises customers to update the software to the latest released version:

  • QTS 4.5.2: HBS 3 Hybrid Backup Sync 16.0.0415 and later
  • QTS 4.3.6: HBS 3 Hybrid Backup Sync 3.0.210412 and later
  • QuTS hero h4.5.1: HBS 3 Hybrid Backup Sync 16.0.0419 and later
  • QuTScloud c4.5.1~c4.5.4: HBS 3 Hybrid Backup Sync 16.0.0419 and later

To update HBS on your NAS device, you have to log into QTS or QuTS hero as administrator. Next, search for "HBS 3 Hybrid Backup Sync" in App Center, and then click Update and OK to update the application (the Update option is not available if HBS is already up to date.)

While QNAP published the security announcing that CVE-2021-28799 was fixed today, the app's release notes for version 16.0.0415 lists it as fixed almost a week ago, on April 16th.

A QNAP spokesperson told BleepingComputer that the disclosure delay was caused by the additional time needed to release patches for QuTS hero and QuTScloud HBS versions (the security update for QTS was released six days ago).

QNAP also added that its PSIRT team has not found evidence of active exploitation of this vulnerability in the wild.

On the same day, QNAP fixed two other HBS command injection vulnerabilities, as well as two more critical vulnerabilities, a command injection bug in QTS and QuTS hero (CVE-2020-2509) and an SQL Injection vulnerability in Multimedia Console and the Media Streaming Add-On (CVE-2020-36195), that could allow attackers to gain full access to NAS devices.

Ongoing Qlocker ransomware campaign targeting QNAP users

Critical security bugs such as these allow threat actors to take over NAS devices and, in some cases, deploy ransomware to encrypt the users' files and ask hefty ransoms for a decryptor.

Threat actors are also known to take over NAS devices and use them to "proxy their connection to interact with the webshells they placed on these devices" and hide their malicious activity within regular remote work traffic, according to CISA.

QNAP told BleepingComputer that they believe a new ransomware strain known as Qlocker exploits the SQL Injection vulnerability (CVE-2020-36195) to encrypt data on vulnerable devices.

This is precisely what has been happening since at least April 19th, when attackers behind a massive campaign deploying a new ransomware strain known as Qlocker started moving QNAP customers' files in password-protected 7zip archives and asking for ransoms.

During these last four days, BleepingComputer's ransomware support forum has seen a considerable amount of activity, and ID-Ransomware has recorded a surge of Qlocker sample submissions from victims.

ID-R Qlocker submissions
ID-R Qlocker submissions

QNAP devices targeted by ransomware before

Qlocker is not the first ransomware to target QNAP devices, given that they are commonly used to store sensitive personal files and are the perfect leverage to force victims into paying a ransom to decrypt their data.

In June 2020, QNAP warned of eCh0raix ransomware attacks targeting Photo Station app security flaws. 

eCh0raix (aka QNAPCrypt) returned one year later, trying to gain access to QNAP devices by exploiting known vulnerabilities and brute-forcing accounts with weak passwords.

QNAP also alerted customers in September 2020 of an AgeLocker ransomware campaign targeting publicly exposed NAS devices by exploiting older and vulnerable Photo Station versions.

QNAP customers are advised to go through the following procedure to secure their NAS devices and check for malware:

  • Change all passwords for all accounts on the device
  • Remove unknown user accounts from the device
  • Make sure the device firmware is up-to-date, and all of the applications are also updated
  • Remove unknown or unused applications from the device
  • Install QNAP MalwareRemover application via the App Center functionality
  • Set an access control list for the device (Control panel -> Security -> Security level)

Related Articles:

Over 92,000 exposed D-Link NAS devices have a backdoor account

QNAP warns of critical auth bypass flaw in its NAS devices

Critical RCE bug in 92,000 D-Link NAS devices now exploited in attacks

WP Automatic WordPress plugin hit by millions of SQL injection attacks

Maximum severity Flowmon bug has a public exploit, patch now