Grandstream GXP IP Phone Detection (HTTP)
🗓️ 26 Oct 2012 00:00:00Reported by Copyright (C) 2012 Greenbone AGType
openvas🔗 plugins.openvas.org👁 22 Views
# SPDX-FileCopyrightText: 2012 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.103594");
script_version("2026-02-25T05:57:40+0000");
script_tag(name:"last_modification", value:"2026-02-25 05:57:40 +0000 (Wed, 25 Feb 2026)");
script_tag(name:"creation_date", value:"2012-10-26 11:15:41 +0200 (Fri, 26 Oct 2012)");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:N/I:N/A:N");
script_tag(name:"cvss_base", value:"0.0");
script_tag(name:"qod_type", value:"remote_banner");
script_name("Grandstream GXP IP Phone Detection (HTTP)");
script_category(ACT_GATHER_INFO);
script_family("Product detection");
script_copyright("Copyright (C) 2012 Greenbone AG");
script_dependencies("find_service.nasl", "httpver.nasl", "global_settings.nasl");
script_require_ports("Services/www", 80);
script_exclude_keys("Settings/disable_cgi_scanning");
script_tag(name:"summary", value:"HTTP based detection of Grandstream GXP IP phones.");
exit(0);
}
include("host_details.inc");
include("http_func.inc");
include("http_keepalive.inc");
include("misc_func.inc");
include("port_service_func.inc");
port = http_get_port(default: 80);
url = "/cgi-bin/login";
banner = http_get_remote_headers(port: port, file: url);
# Server: Grandstream GXP1400
# Server: Grandstream GXP2010 1.1.6.27
# Server: Grandstream GXP1165
# Server: Grandstream GXP280 1.2.5.2
if (!banner || !concl = egrep(string: banner, pattern: "^[Ss]erver\s*:\s*Grandstream GXP", icase: FALSE)) {
url = "/";
res = http_get_cache(port: port, item: url);
if (res !~ "^HTTP/1\.[01] 200" || "<title>Loading Web Application</title>" >!< res)
exit(0);
url = "/cgi-bin/api.values.get";
headers = make_array("Content-Type", "application/x-www-form-urlencoded");
data = "request=68:phone_model";
req = http_post_put_req(port: port, url: url, data: data, add_headers: headers);
res = http_keepalive_send_recv(port: port, data: req);
# { "response": "success", "body": { "68": "1.0.11.54", "phone_model": "GXP2140" } }
if (res !~ "^HTTP/1\.[01] 200" || res !~ '"phone_model"\\s*:\\s*"GXP[0-9]')
exit(0);
}
conclUrl = http_report_vuln_url(port: port, url: url, url_only: TRUE);
model = "unknown";
version = "unknown";
set_kb_item(name: "grandstream/gxp/detected", value: TRUE);
set_kb_item(name: "grandstream/gxp/http/port", value: port);
if (concl) {
concluded = chomp(concl);
vers = eregmatch(pattern: "[Ss]erver\s*:\s*Grandstream (GXP[^\r\n ]+)( ([0-9.]+))?", string: banner, icase: FALSE);
if (!isnull(vers[1]))
model = vers[1];
if (!isnull(vers[3]))
version = vers[3];
} else {
body = http_extract_body_from_response(data: res);
mod = eregmatch(pattern: '"phone_model"\\s*:\\s*"([^"]+)"', string: body);
if (!isnull(mod[1])) {
model = mod[1];
concluded = chomp(body);
}
vers = eregmatch(pattern: '"68"\\s*:\\s*"([0-9.]+)"', string: body);
if (!isnull(vers[1])) {
version = vers[1];
if (!concluded)
concluded = chomp(body);
}
}
set_kb_item(name: "grandstream/gxp/http/" + port + "/model", value: model);
set_kb_item(name: "grandstream/gxp/http/" + port + "/version", value: version);
set_kb_item(name: "grandstream/gxp/http/" + port + "/concludedUrl", value: conclUrl);
set_kb_item(name: "grandstream/gxp/http/" + port + "/concluded", value: concluded);
exit(0);
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
25 Feb 2026 00:00Current
5.3Medium risk
Vulners AI Score5.3