Ubiquiti Networks Unifi Video Default Credentials (HTTP)
🗓️ 17 Dec 2018 00:00:00Reported by Copyright (C) 2018 Greenbone AGType
openvas🔗 plugins.openvas.org👁 32 Views
| Source | Link |
|---|---|
| customvideosecurity | www.customvideosecurity.com/research/blog/default-passwords-for-most-ip-network-camera-brands/ |
# SPDX-FileCopyrightText: 2018 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.114049");
script_version("2023-07-20T05:05:18+0000");
script_tag(name:"cvss_base", value:"9.0");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:C/A:P");
script_tag(name:"last_modification", value:"2023-07-20 05:05:18 +0000 (Thu, 20 Jul 2023)");
script_tag(name:"creation_date", value:"2018-12-17 19:08:14 +0100 (Mon, 17 Dec 2018)");
script_name("Ubiquiti Networks Unifi Video Default Credentials (HTTP)");
script_category(ACT_ATTACK);
script_copyright("Copyright (C) 2018 Greenbone AG");
script_family("Default Accounts");
script_dependencies("gb_ubnt_unifi_video_detect.nasl", "gb_default_credentials_options.nasl");
script_require_ports("Services/www", 80);
script_mandatory_keys("ubnt/unifi_video/detected");
script_exclude_keys("default_credentials/disable_default_account_checks");
script_tag(name:"summary", value:"The remote installation of Unifi Video is using known default credentials.");
script_tag(name:"impact", value:"This issue may be exploited by a remote attacker to gain access
to sensitive information or modify system configuration.");
script_tag(name:"insight", value:"The installation of Unifi Video is lacking a proper
password configuration, which makes critical information and actions accessible for people with knowledge
of the default credentials.");
script_tag(name:"vuldetect", value:"Checks if a successful login to Unifi Video is possible.");
script_tag(name:"solution", value:"Change the passwords for user and admin access.");
script_tag(name:"solution_type", value:"Mitigation");
script_tag(name:"qod_type", value:"remote_vul");
script_xref(name:"URL", value:"https://customvideosecurity.com/research/blog/default-passwords-for-most-ip-network-camera-brands/");
exit(0);
}
if(get_kb_item("default_credentials/disable_default_account_checks"))
exit(0);
include("host_details.inc");
include("misc_func.inc");
include("http_func.inc");
CPE = "cpe:/a:ui:unifi_video";
if(!port = get_app_port(cpe: CPE))
exit(0);
if(!get_app_location(cpe: CPE, port: port, nofork: TRUE))
exit(0);
creds = make_array("ubnt", "ubnt",
"root", "ubnt",
"admin", "admin");
#Host type is one of the following:
#Session; Portal; NoSessionEmail; NoSession
#It is logically guaranteed to not be null at this point in time, so no further check is required.
hostType = get_kb_item("ubnt/unifi_video/hostType");
foreach cred(keys(creds)) {
if(hostType == "NoSession") {
url = "/api/1.1/login";
#{"username":"ubnt","password":"ubnt"}
data = '{"username":"' + cred + '","password":"' + creds[cred] + '"}';
req = http_post_put_req(port: port, url: url, data: data, add_headers: make_array("Accept-Encoding", "gzip, deflate",
"Content-Type", "application/json",
"Accept", "application/json, text/plain, */*"));
}
else if(hostType == "Session") {
url = "/api/2.0/login";
#Initial request to acquire the sessionID
req = http_get_req(port: port, url: url, add_headers: make_array("Accept-Encoding", "gzip, deflate",
"Content-Type", "application/json",
"Accept", "application/json, text/javascript, */*; q=0.01",
"X-Requested-With", "XMLHttpRequest"));
res = http_send_recv(port: port, data: req);
sessID = eregmatch(pattern: "Set-Cookie:\s*JSESSIONID_AV=([0-9a-zA-Z]+);", string: res);
if(isnull(sessID[1])) continue;
sessionID = sessID[1];
#{"username":"ubnt","password":"ubnt"}
data = '{"username":"' + cred + '","password":"' + creds[cred] + '"}';
req = http_post_put_req(port: port, url: url, data: data, add_headers: make_array("Accept-Encoding", "gzip, deflate",
"Content-Type", "application/json",
"Accept", "application/json, text/javascript, */*; q=0.01",
"X-Requested-With", "XMLHttpRequest",
"Cookie", "JSESSIONID_AV=" + sessionID));
}
else if(hostType == "NoSessionEmail") {
url = "/api/2.0/login";
#An email address is expected, but maybe the default credentials work anyways.
#{"email":"ubnt","password":"ubnt"}
data = '{"email":"' + cred + '","password":"' + creds[cred] + '"}';
req = http_post_put_req(port: port, url: url, data: data, add_headers: make_array("Accept-Encoding", "gzip, deflate",
"Content-Type", "application/json",
"Accept", "application/json, text/javascript, */*; q=0.01",
"X-Requested-With", "XMLHttpRequest"));
}
else exit(99); #Portal just redirects to another host on the internal network or to itself on another port
res = http_send_recv(port: port, data: req);
if("authId=" >< res) {
VULN = TRUE;
report += '\nusername: "' + cred + '", password: "' + creds[cred] + '"';
}
}
if(VULN) {
report = "It was possible to login with the following default credentials: " + report;
security_message(port: port, data: report);
exit(0);
}
exit(99);
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
20 Jul 2023 00:00Current
7.5High risk
Vulners AI Score7.5