Lucene search

K
nessusThis script is Copyright (C) 2024 and is owned by Tenable, Inc. or an Affiliate thereof.TENABLE_OT_DAHUASECURITY_CVE-2019-3948.NASL
HistoryJul 29, 2024 - 12:00 a.m.

Dahua Security Cameras Missing Authentication for Critical Function (CVE-2019-3948)

2024-07-2900:00:00
This script is Copyright (C) 2024 and is owned by Tenable, Inc. or an Affiliate thereof.
www.tenable.com
6
dahua
security cameras
authentication
cve-2019-3948
/videotalk
unauthorized access
audio capture
tenable.ot
remote access
vulnerability

CVSS2

5

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

CVSS3

7.5

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

NONE

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

AI Score

7.4

Confidence

Low

EPSS

0.074

Percentile

94.2%

The Amcrest IP2M-841B V2.520.AC00.18.R, Dahua IPC-XXBXX V2.622.0000000.9.R, Dahua IPC HX5X3X and HX4X3X V2.800.0000008.0.R, Dahua DH-IPC HX883X and DH-IPC-HX863X V2.622.0000000.7.R, Dahua DH- SD4XXXXX V2.623.0000000.7.R, Dahua DH-SD5XXXXX V2.623.0000000.1.R, Dahua DH-SD6XXXXX V2.640.0000000.2.R and V2.623.0000000.1.R, Dahua NVR5XX-4KS2 V3.216.0000006.0.R, Dahua NVR4XXX-4KS2 V3.216.0000006.0.R, and NVR2XXX-4KS2 do not require authentication to access the HTTP endpoint /videotalk. An unauthenticated, remote person can connect to this endpoint and potentionally listen to the audio of the capturing device.

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(502347);
  script_version("1.2");
  script_set_attribute(attribute:"plugin_modification_date", value:"2024/07/30");

  script_cve_id("CVE-2019-3948");

  script_name(english:"Dahua Security Cameras Missing Authentication for Critical Function (CVE-2019-3948)");

  script_set_attribute(attribute:"synopsis", value:
"The remote OT asset is affected by a vulnerability.");
  script_set_attribute(attribute:"description", value:
"The Amcrest IP2M-841B V2.520.AC00.18.R, Dahua IPC-XXBXX
V2.622.0000000.9.R, Dahua IPC HX5X3X and HX4X3X V2.800.0000008.0.R,
Dahua DH-IPC HX883X and DH-IPC-HX863X V2.622.0000000.7.R, Dahua DH-
SD4XXXXX V2.623.0000000.7.R, Dahua DH-SD5XXXXX V2.623.0000000.1.R,
Dahua DH-SD6XXXXX V2.640.0000000.2.R and V2.623.0000000.1.R, Dahua
NVR5XX-4KS2 V3.216.0000006.0.R, Dahua NVR4XXX-4KS2 V3.216.0000006.0.R,
and NVR2XXX-4KS2 do not require authentication to access the HTTP
endpoint /videotalk. An unauthenticated, remote person can connect to
this endpoint and potentionally listen to the audio of the capturing
device.

This plugin only works with Tenable.ot.
Please visit https://www.tenable.com/products/tenable-ot for more information.");
  # http://packetstormsecurity.com/files/153813/Amcrest-Cameras-2.520.AC00.18.R-Unauthenticated-Audio-Streaming.html
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?d8c8f655");
  # https://us.dahuasecurity.com/wp-content/uploads/2019/08/Cybersecurity_2019-08-02.pdf
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?4fbdb2ed");
  script_set_attribute(attribute:"see_also", value:"https://www.dahuasecurity.com/aboutUs/trustedCenter/details/522");
  script_set_attribute(attribute:"see_also", value:"https://www.tenable.com/security/research/tra-2019-36");
  script_set_attribute(attribute:"solution", value:
"Refer to the vendor 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:POC/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:P/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2019-3948");

  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_cwe_id(306);

  script_set_attribute(attribute:"vuln_publication_date", value:"2019/07/29");
  script_set_attribute(attribute:"patch_publication_date", value:"2019/07/29");
  script_set_attribute(attribute:"plugin_publication_date", value:"2024/07/29");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:dahuasecurity:dh-ipc-hx863x");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:dahuasecurity:dh-ipc-hx883x");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:dahuasecurity:dh-sd4xxxxx");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:dahuasecurity:dh-sd5xxxxx");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:dahuasecurity:dh-sd6xxxxx");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:dahuasecurity:ipc-hx4x3x");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:dahuasecurity:ipc-hx5x3x");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:dahuasecurity:ipc-bxbxx");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:dahuasecurity:ipc-dxbxx");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:dahuasecurity:ipc-txbxx");
  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/DahuaSecurity");

  exit(0);
}


include('tenable_ot_cve_funcs.inc');

get_kb_item_or_exit('Tenable.ot/DahuaSecurity');

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

var vuln_cpes = {
    "cpe:/o:dahuasecurity:dh-ipc-hx863x" :
        {"versionEndExcluding" : "2018-05-18", "family" : "DahuaSecurity"},
    "cpe:/o:dahuasecurity:dh-ipc-hx883x" :
        {"versionEndExcluding" : "2018-05-18", "family" : "DahuaSecurity"},
    "cpe:/o:dahuasecurity:dh-sd4xxxxx" :
        {"versionEndExcluding" : "2018-05-18", "family" : "DahuaSecurity"},
    "cpe:/o:dahuasecurity:dh-sd5xxxxx" :
        {"versionEndExcluding" : "2018-05-18", "family" : "DahuaSecurity"},
    "cpe:/o:dahuasecurity:dh-sd6xxxxx" :
        {"versionEndExcluding" : "2018-05-18", "family" : "DahuaSecurity"},
    "cpe:/o:dahuasecurity:ipc-hx4x3x" :
        {"versionEndExcluding" : "2018-05-18", "family" : "DahuaSecurity"},
    "cpe:/o:dahuasecurity:ipc-hx5x3x" :
        {"versionEndExcluding" : "2018-05-18", "family" : "DahuaSecurity"},
    "cpe:/o:dahuasecurity:ipc-bxbxx" :
        {"versionEndExcluding" : "2018-05-18", "family" : "DahuaSecurity"},
    "cpe:/o:dahuasecurity:ipc-dxbxx" :
        {"versionEndExcluding" : "2018-05-18", "family" : "DahuaSecurity"},
    "cpe:/o:dahuasecurity:ipc-txbxx" :
        {"versionEndExcluding" : "2018-05-18", "family" : "DahuaSecurity"}
};

tenable_ot::cve::compare_and_report(asset:asset, cpes:vuln_cpes, severity:SECURITY_WARNING);

CVSS2

5

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

CVSS3

7.5

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

NONE

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

AI Score

7.4

Confidence

Low

EPSS

0.074

Percentile

94.2%