QNAP QTS / QuTS hero Improper Authorization Vulnerability in HBS 3 (QSA-21-13) - Nessus

Critical   Plugin ID: 160542

This page contains detailed information about the QNAP QTS / QuTS hero Improper Authorization Vulnerability in HBS 3 (QSA-21-13) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 160542
Name: QNAP QTS / QuTS hero Improper Authorization Vulnerability in HBS 3 (QSA-21-13)
Filename: qnap_qts_quts_hero_qsa-21-13.nasl
Vulnerability Published: 2021-04-22
This Plugin Published: 2022-05-05
Last Modification Time: 2022-05-05
Plugin Version: 1.1
Plugin Type: remote
Plugin Family: Misc.
Dependencies: qnap_qts_quts_hero_web_detect.nbin
Required KB Items [?]: installed_sw/QNAP QTS, Settings/ParanoidReport

Vulnerability Information


Severity: Critical
Vulnerability Published: 2021-04-22
Patch Published: 2021-04-22
CVE [?]: CVE-2021-28799
CPE [?]: cpe:/a:qnap:qts, cpe:/o:qnap:qts, cpe:/o:qnap:quts_hero

Synopsis

The remote device is missing a vendor-supplied security patch.

Description

The version of QNAP QTS or QuTS hero on the remote host is affected by an improper authorization vulnerability when running HBS 3 (Hybrid Backup Sync). If exploited, the vulnerability allows remote attackers to log in to a device.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Apply the workaround and upgrade to the relevant fixed version referenced in the QSA-21-13 advisory.

Public Exploits


Target Network Port(s): N/A
Target Asset(s): N/A
Exploit Available: True (GitHub)

Here's the list of publicly known exploits and PoCs for verifying the QNAP QTS / QuTS hero Improper Authorization Vulnerability in HBS 3 (QSA-21-13) vulnerability:

  1. GitHub: https://github.com/r0eXpeR/supplier
    [CVE-2021-28799]

Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.

WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.

Risk Information


CVSS Score Source [?]: CVE-2021-28799
CVSS V2 Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P
CVSS Base Score:7.5 (High)
Impact Subscore:6.4
Exploitability Subscore:10.0
CVSS Temporal Score:NA (None)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:7.5 (High)
CVSS V3 Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS Base Score:9.8 (Critical)
Impact Subscore:5.9
Exploitability Subscore:3.9
CVSS Temporal Score:NA (None)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:9.8 (Critical)

Go back to menu.

Plugin Source


This is the qnap_qts_quts_hero_qsa-21-13.nasl nessus plugin source code. This script is Copyright (C) 2022 and is owned by Tenable, Inc. or an Affiliate thereof.

##
# (C) Tenable, Inc.
##

include('compat.inc');

if (description)
{
  script_id(160542);
  script_version("1.1");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/05/05");

  script_cve_id("CVE-2021-28799");

  script_name(english:"QNAP QTS / QuTS hero Improper Authorization Vulnerability in HBS 3 (QSA-21-13)");

  script_set_attribute(attribute:"synopsis", value:
"The remote device is missing a vendor-supplied security patch.");
  script_set_attribute(attribute:"description", value:
"The version of QNAP QTS or QuTS hero on the remote host is affected by an improper authorization vulnerability when
running HBS 3 (Hybrid Backup Sync).  If exploited, the vulnerability allows remote attackers to log in to a device.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version 
number.");
  script_set_attribute(attribute:"see_also", value:"https://www.qnap.com/en/security-advisory/qsa-21-13");
  script_set_attribute(attribute:"solution", value:
"Apply the workaround and upgrade to the relevant fixed version referenced in the QSA-21-13 advisory.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2021-28799");

  script_set_attribute(attribute:"vuln_publication_date", value:"2021/04/22");
  script_set_attribute(attribute:"patch_publication_date", value:"2021/04/22");
  script_set_attribute(attribute:"plugin_publication_date", value:"2022/05/05");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:qnap:qts");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:qnap:qts");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:qnap:quts_hero");
  script_set_attribute(attribute:"potential_vulnerability", value:"true");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Misc.");

  script_copyright(english:"This script is Copyright (C) 2022 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("qnap_qts_quts_hero_web_detect.nbin");
  script_require_keys("installed_sw/QNAP QTS", "Settings/ParanoidReport");

  exit(0);
}

include('http.inc');
include('vcf_extras_qnap.inc');

var port = get_http_port(default:443, ignore_broken:TRUE);
var app_info = vcf::qnap::get_app_info(port:port);

# not checking HBS version
if (report_paranoia < 2)
  audit(AUDIT_PARANOID);

var constraints = [
  {'product':'QTS',       'min_version':'4.5.2',   'fixed_version':'4.5.3', 'fixed_display':'See vendor advisory'},
  {'product':'QTS',       'min_version':'4.3.3',   'fixed_version':'4.3.5', 'fixed_display':'See vendor advisory'},
  {'product':'QTS',       'min_version':'4.3.6',   'fixed_version':'4.3.7', 'fixed_display':'See vendor advisory'},
  {'product':'QuTS hero', 'min_version':'4.5.1',   'fixed_version':'4.5.2', 'fixed_display':'See vendor advisory'}
];

vcf::qnap::check_version_and_report(
  app_info:app_info,
  constraints:constraints,
  severity:SECURITY_HOLE
);

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/qnap_qts_quts_hero_qsa-21-13.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\qnap_qts_quts_hero_qsa-21-13.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/qnap_qts_quts_hero_qsa-21-13.nasl

Go back to menu.

How to Run


Here is how to run the QNAP QTS / QuTS hero Improper Authorization Vulnerability in HBS 3 (QSA-21-13) as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select Misc. plugin family.
  6. On the right side table select QNAP QTS / QuTS hero Improper Authorization Vulnerability in HBS 3 (QSA-21-13) plugin ID 160542.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. Run the scan.

Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.

Basic usage:

/opt/nessus/bin/nasl qnap_qts_quts_hero_qsa-21-13.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a qnap_qts_quts_hero_qsa-21-13.nasl -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - qnap_qts_quts_hero_qsa-21-13.nasl -t <IP/HOST>

Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):

/opt/nessus/bin/nasl -K /tmp/state qnap_qts_quts_hero_qsa-21-13.nasl -t <IP/HOST>

Go back to menu.

References


See also: Similar and related Nessus plugins:
  • 159895 - QNAP QTS / QuTS hero Command Injection (QSA-21-05)
  • 159576 - QNAP QTS / QuTS hero Out-of-Bounds Read (QSA-21-27)
  • 159569 - QNAP QTS / QuTS hero Out-of-Bounds Read (QSA-21-40)
  • 159504 - QNAP QTS / QuTS hero Multiple Vulnerabilities in Samba (QSA-22-03)
  • 117905 - QNAP Photo Station < 5.7.0 Cross-Site Scripting Vulnerability

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file qnap_qts_quts_hero_qsa-21-13.nasl version 1.1. For more plugins, visit the Nessus Plugin Library.

Go back to menu.