Lucene search

K
nessusThis script is Copyright (C) 2024 and is owned by Tenable, Inc. or an Affiliate thereof.TENABLE_OT_HANWHAVISION_CVE-2021-32934.NASL
HistoryJun 26, 2024 - 12:00 a.m.

ThroughTek P2P SDK Cleartext Transmission of Sensitive Information (CVE-2021-32934)

2024-06-2600:00:00
This script is Copyright (C) 2024 and is owned by Tenable, Inc. or an Affiliate thereof.
www.tenable.com
4
throughtek p2p sdk
cleartext transmission
sensitive information
cve-2021-32934
ot asset
vulnerability
unauthorized access
exploitation
ip cameras
recorders
cloud platform
tenable.ot

5 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

AV:N/AC:L/Au:N/C:P/I:N/A:N

9.1 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

7.1 High

AI Score

Confidence

Low

0.001 Low

EPSS

Percentile

50.6%

ThroughTek supplies multiple original equipment manufacturers of IP cameras & recorders with P2P connections as part of its cloud platform. Successful exploitation of this vulnerability could permit unauthorized access to sensitive information, such as camera audio/video feeds.

This plugin only works with Tenable.ot.
Please visit https://www.tenable.com/products/tenable-ot for more information.

#%NASL_MIN_LEVEL 80900
##
# (C) Tenable, Inc.
##

include('compat.inc');

if (description)
{
  script_id(502280);
  script_version("1.4");
  script_set_attribute(attribute:"plugin_modification_date", value:"2024/06/28");

  script_cve_id("CVE-2021-32934");

  script_name(english:"ThroughTek P2P SDK Cleartext Transmission of Sensitive Information (CVE-2021-32934)");

  script_set_attribute(attribute:"synopsis", value:
"The remote OT asset is affected by a vulnerability.");
  script_set_attribute(attribute:"description", value:
"ThroughTek supplies multiple original equipment manufacturers of IP cameras & recorders 
with P2P connections as part of its cloud platform. Successful exploitation of this vulnerability 
could permit unauthorized access to sensitive information, such as camera audio/video feeds.

This plugin only works with Tenable.ot.
Please visit https://www.tenable.com/products/tenable-ot for more information.");
  # https://www.hanwhavision.com/wp-content/uploads/2021/10/NVR-Vulnerability-Report-210909-1.pdf
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?b9e1ef0c");
  script_set_attribute(attribute:"see_also", value:"https://www.cisa.gov/news-events/ics-advisories/icsa-21-166-01");
  script_set_attribute(attribute:"solution", value:
"The following text was originally created by the Cybersecurity and Infrastructure Security Agency (CISA). The original
can be found at CISA.gov.

ThroughTek recommends original equipment manufacturers to implement the following mitigations:

- If SDK is Version 3.1.10 and above, enable authkey and DTLS.
- If SDK is any version prior to 3.1.10, upgrade library to v3.3.1.0 or v3.4.2.0 and enable authkey/DTLS.

Additional information can be found in ThroughTekรขย€ย™s advisory.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2021-32934");

  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"false");

  script_set_attribute(attribute:"vuln_publication_date", value:"2022/05/19");
  script_set_attribute(attribute:"patch_publication_date", value:"2022/05/19");
  script_set_attribute(attribute:"plugin_publication_date", value:"2024/06/26");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:xrn-2010a_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:xrn-2011a_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:xrn-3010a_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:xrn-1610a_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:xrn-1610sa_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:lrn-410s_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:lrn-810s_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:xrn-810s_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:xrn-410s_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:qrn-810_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:qrn-410_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:xrn-420s_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:qrn-430s_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:qrn-1610s_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:qrn-810s_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:qrn-410s_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:qrn-420s_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:qrn-820s_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:hrx-1621_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:hrx-1620_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:hrx-821_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:hrx-820_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:hrx-421_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:hrx-420_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:hrx-1632_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:hrx-835_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:hrx-435_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:hrx-434_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:prn-3210b2_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:prn-1610b2_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:prn-3200b2_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:prn-1600b2_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:prn-3205b2_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:prn-1605b2_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:prn-6410db4_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:prn-6410b4_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:prn-3210b4_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:prn-6400db4_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:prn-6400b4_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:prn-3200b4_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:prn-6405db4_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:prn-6405b4_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:prn-3205b4_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:xrn-6410db4_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:xrn-6410b4_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:xrn-3210b4_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:xrn-6410rb2_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:xrn-6410b2_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:xrn-3210rb2_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:xrn-3210b2_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:xrn-1620b2_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:xrn-1620sb1_firmware");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:hanwhavision:xrn-820s_firmware");
  script_set_attribute(attribute:"generated_plugin", value:"former");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Tenable.ot");

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

  script_dependencies("tenable_ot_api_integration.nasl");
  script_require_keys("Tenable.ot/HanwhaVision");

  exit(0);
}


include('tenable_ot_cve_funcs.inc');

get_kb_item_or_exit('Tenable.ot/HanwhaVision');

var asset = tenable_ot::assets::get(vendor:'HanwhaVision');

var vuln_cpes = {
    "cpe:/o:hanwhavision:xrn-2010a_firmware" :
        {"versionEndIncluding" : "2.46", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:xrn-2011a_firmware" :
        {"versionEndIncluding" : "2.46", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:xrn-3010a_firmware" :
        {"versionEndIncluding" : "2.46", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:xrn-1610a_firmware" :
        {"versionEndIncluding" : "2.48", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:xrn-1610sa_firmware" :
        {"versionEndIncluding" : "2.48", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:lrn-410s_firmware" :
        {"versionEndIncluding" : "3.06.12", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:lrn-810s_firmware" :
        {"versionEndIncluding" : "3.06.12", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:xrn-810s_firmware" :
        {"versionEndIncluding" : "2.46", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:xrn-410s_firmware" :
        {"versionEndIncluding" : "2.46", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:qrn-810_firmware" :
        {"versionEndIncluding" : "2.46", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:qrn-410_firmware" :
        {"versionEndIncluding" : "2.46", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:xrn-420s_firmware" :
        {"versionEndIncluding" : "4.10.00", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:qrn-430s_firmware" :
        {"versionEndIncluding" : "4.10.00", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:qrn-1610s_firmware" :
        {"versionEndIncluding" : "2.46", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:qrn-810s_firmware" :
        {"versionEndIncluding" : "2.46", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:qrn-410s_firmware" :
        {"versionEndIncluding" : "2.46", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:qrn-420s_firmware" :
        {"versionEndIncluding" : "3.07.11", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:qrn-820s_firmware" :
        {"versionEndIncluding" : "3.07.11", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:lrn-1610s_firmware" :
        {"versionEndIncluding" : "3.06.12", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:hrx-1621_firmware" :
        {"versionEndIncluding" : "3.05.12", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:hrx-1620_firmware" :
        {"versionEndIncluding" : "3.05.12", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:hrx-821_firmware" :
        {"versionEndIncluding" : "3.05.12", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:hrx-820_firmware" :
        {"versionEndIncluding" : "3.05.12", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:hrx-421_firmware" :
        {"versionEndIncluding" : "3.05.12", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:hrx-420_firmware" :
        {"versionEndIncluding" : "3.05.12", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:hrx-1632_firmware" :
        {"versionEndIncluding" : "4.09.00", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:hrx-835_firmware" :
        {"versionEndIncluding" : "4.09.00", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:hrx-435_firmware" :
        {"versionEndIncluding" : "4.09.00", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:hrx-434_firmware" :
        {"versionEndIncluding" : "4.09.00", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:prn-3210b2_firmware" :
        {"versionEndIncluding" : "4.04.22", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:prn-1610b2_firmware" :
        {"versionEndIncluding" : "4.04.22", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:prn-3200b2_firmware" :
        {"versionEndIncluding" : "4.04.22", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:prn-1600b2_firmware" :
        {"versionEndIncluding" : "4.04.22", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:prn-3205b2_firmware" :
        {"versionEndIncluding" : "4.04.22", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:prn-1605b2_firmware" :
        {"versionEndIncluding" : "4.04.22", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:prn-6410db4_firmware" :
        {"versionEndIncluding" : "4.05.22", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:prn-6410b4_firmware" :
        {"versionEndIncluding" : "4.05.22", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:prn-3210b4_firmware" :
        {"versionEndIncluding" : "4.05.22", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:prn-6400db4_firmware" :
        {"versionEndIncluding" : "4.05.22", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:prn-6400b4_firmware" :
        {"versionEndIncluding" : "4.05.22", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:prn-3200b4_firmware" :
        {"versionEndIncluding" : "4.05.22", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:prn-6405db4_firmware" :
        {"versionEndIncluding" : "4.05.22", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:prn-6405b4_firmware" :
        {"versionEndIncluding" : "4.05.22", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:prn-3205b4_firmware" :
        {"versionEndIncluding" : "4.05.22", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:xrn-6410db4_firmware" :
        {"versionEndIncluding" : "4.06.22", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:xrn-6410b4_firmware" :
        {"versionEndIncluding" : "4.06.22", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:xrn-3210b4_firmware" :
        {"versionEndIncluding" : "4.06.22", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:xrn-6410rb2_firmware" :
        {"versionEndIncluding" : "4.04.22", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:xrn-6410b2_firmware" :
        {"versionEndIncluding" : "4.04.22", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:xrn-3210rb2_firmware" :
        {"versionEndIncluding" : "4.04.22", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:xrn-3210b2_firmware" :
        {"versionEndIncluding" : "4.04.22", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:xrn-1620b2_firmware" :
        {"versionEndIncluding" : "4.07.12", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:xrn-1620sb1_firmware" :
        {"versionEndIncluding" : "4.07.12", "family" : "HanwhaVideoRecorders"},
    "cpe:/o:hanwhavision:xrn-820s_firmware" :
        {"versionEndIncluding" : "4.07.12", "family" : "HanwhaVideoRecorders"}
};

tenable_ot::cve::compare_and_report(asset:asset, cpes:vuln_cpes, severity:SECURITY_WARNING);
VendorProductVersionCPE
hanwhavisionprn-3210b2_firmwarecpe:/o:hanwhavision:prn-3210b2_firmware
hanwhavisionxrn-1610sa_firmwarecpe:/o:hanwhavision:xrn-1610sa_firmware
hanwhavisionprn-3200b4_firmwarecpe:/o:hanwhavision:prn-3200b4_firmware
hanwhavisionxrn-1620b2_firmwarecpe:/o:hanwhavision:xrn-1620b2_firmware
hanwhavisionqrn-430s_firmwarecpe:/o:hanwhavision:qrn-430s_firmware
hanwhavisionprn-6400db4_firmwarecpe:/o:hanwhavision:prn-6400db4_firmware
hanwhavisionxrn-410s_firmwarecpe:/o:hanwhavision:xrn-410s_firmware
hanwhavisionprn-6410db4_firmwarecpe:/o:hanwhavision:prn-6410db4_firmware
hanwhavisionxrn-3210rb2_firmwarecpe:/o:hanwhavision:xrn-3210rb2_firmware
hanwhavisionqrn-420s_firmwarecpe:/o:hanwhavision:qrn-420s_firmware
Rows per page:
1-10 of 531

5 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

AV:N/AC:L/Au:N/C:P/I:N/A:N

9.1 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

7.1 High

AI Score

Confidence

Low

0.001 Low

EPSS

Percentile

50.6%

Related for TENABLE_OT_HANWHAVISION_CVE-2021-32934.NASL