CVE-2021-28809

9.8 CRITICAL

📋 TL;DR

CVE-2021-28809 is an improper access control vulnerability in legacy versions of QNAP HBS 3 backup software. If exploited, attackers can compromise the operating system security. This affects QNAP NAS devices running specific QTS versions with vulnerable HBS 3 installations.

💻 Affected Systems

Products:
  • QNAP HBS 3 (Hybrid Backup Sync)
Versions: HBS 3 versions before v3.0.210506/v3.0.210507 depending on QTS version
Operating Systems: QTS 4.3.3, QTS 4.3.4, QTS 4.3.6
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects legacy QTS versions. QTS 5.x and later are not affected. HBS 3 must be installed and enabled.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete system compromise allowing attackers to execute arbitrary code, access sensitive data, and potentially pivot to other systems on the network.

🟠

Likely Case

Unauthorized access to backup data, file system manipulation, and potential privilege escalation on the QNAP device.

🟢

If Mitigated

Limited impact with proper network segmentation and access controls, though vulnerability still exists in software.

🌐 Internet-Facing: HIGH - QNAP devices are often exposed to the internet for remote access, making them prime targets for exploitation.
🏢 Internal Only: MEDIUM - Internal attackers or compromised internal systems could exploit this vulnerability to gain unauthorized access.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

CVSS 9.8 indicates critical severity with low attack complexity. While no public PoC exists, the high score suggests weaponization is likely.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: QTS 4.3.6: HBS 3 v3.0.210507+, QTS 4.3.4: HBS 3 v3.0.210506+, QTS 4.3.3: HBS 3 v3.0.210506+

Vendor Advisory: https://www.qnap.com/en/security-advisory/qsa-21-19

Restart Required: Yes

Instructions:

1. Log into QNAP NAS admin interface. 2. Go to App Center. 3. Check for HBS 3 updates. 4. Install latest version. 5. Restart HBS 3 service or reboot device.

🔧 Temporary Workarounds

Disable HBS 3

linux

Temporarily disable HBS 3 service if patching is not immediately possible

ssh admin@qnap-ip 'sudo /etc/init.d/hbs3.sh stop'

Network Isolation

linux

Restrict network access to QNAP device using firewall rules

iptables -A INPUT -p tcp --dport 8080 -j DROP
iptables -A INPUT -p tcp --dport 443 -s trusted-networks -j ACCEPT

🧯 If You Can't Patch

  • Upgrade to QTS 5.x or later which is not affected by this vulnerability
  • Implement strict network segmentation and firewall rules to limit access to QNAP devices

🔍 How to Verify

Check if Vulnerable:

Check HBS 3 version in QNAP App Center or via SSH: cat /etc/config/hbs3.conf | grep version

Check Version:

ssh admin@qnap-ip 'cat /etc/config/hbs3.conf | grep version'

Verify Fix Applied:

Verify HBS 3 version is v3.0.210506 or later for QTS 4.3.3/4.3.4, or v3.0.210507 or later for QTS 4.3.6

📡 Detection & Monitoring

Log Indicators:

  • Unauthorized access attempts to HBS 3 service
  • Unusual file system modifications in backup directories
  • Suspicious process execution from HBS 3 context

Network Indicators:

  • Unexpected connections to HBS 3 ports (typically 8080, 443)
  • Traffic patterns indicating data exfiltration from backup locations

SIEM Query:

source="qnap-logs" AND (event="unauthorized_access" OR process="hbs3" AND action="execute")

🔗 References

📤 Share & Export