Lucene search
+L

Embedthis GoAhead 2.5.0 HTTP Header Injection Vulnerability - Active Check

🗓️ 23 Sep 2019 00:00:00Reported by Copyright (C) 2019 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 604 Views

Embedthis GoAhead 2.5.0 HTTP Header Injection Vulnerability - Active Chec

Related
Refs
Code
ReporterTitlePublishedViews
Family
zdt
zdt
GoAhead 2.5.0 - Host Header Injection Vulnerability
30 Sep 201900:00
zdt
cve
CVE
CVE-2019-16645
20 Sep 201918:24
cve
cvelist
Cvelist
CVE-2019-16645
20 Sep 201918:24
cvelist
exploitdb
Exploit DB
GoAhead 2.5.0 - Host Header Injection
30 Sep 201900:00
exploitdb
ics
ICS
Hitachi Energy MSM
10 May 202321:13
ics
nvd
NVD
CVE-2019-16645
20 Sep 201919:15
nvd
osv
OSV
CVE-2019-16645
20 Sep 201919:15
osv
packetstorm
Packet Storm
GoAhead 2.5.0 Host Header Injection
30 Sep 201900:00
packetstorm
prion
Prion
Design/Logic Flaw
20 Sep 201919:15
prion
redhatcve
RedhatCVE
CVE-2019-16645
7 Jan 202609:30
redhatcve
# SPDX-FileCopyrightText: 2019 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

CPE = "cpe:/a:embedthis:goahead";

if (description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.114133");
  script_version("2024-09-25T05:06:11+0000");
  script_tag(name:"last_modification", value:"2024-09-25 05:06:11 +0000 (Wed, 25 Sep 2024)");
  script_tag(name:"creation_date", value:"2019-09-23 15:56:48 +0200 (Mon, 23 Sep 2019)");
  script_tag(name:"cvss_base", value:"5.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:N/I:P/A:N");
  script_tag(name:"severity_vector", value:"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N");
  script_tag(name:"severity_origin", value:"NVD");
  script_tag(name:"severity_date", value:"2020-08-24 17:37:00 +0000 (Mon, 24 Aug 2020)");

  script_cve_id("CVE-2019-16645");

  script_tag(name:"qod_type", value:"remote_vul");

  script_tag(name:"solution_type", value:"WillNotFix");

  script_name("Embedthis GoAhead 2.5.0 HTTP Header Injection Vulnerability - Active Check");

  script_category(ACT_ATTACK);

  script_copyright("Copyright (C) 2019 Greenbone AG");
  script_family("Web Servers");
  script_dependencies("gb_embedthis_goahead_http_detect.nasl");
  script_require_ports("Services/www", 80);
  script_mandatory_keys("embedthis/goahead/http/detected");

  script_tag(name:"summary", value:"Embedthis GoAhead is prone to an HTTP header injection
  vulnerability.");

  script_tag(name:"vuldetect", value:"Send multiple crafted HTTP POST requests and checks the
  responses.");

  script_tag(name:"insight", value:"For certain pages, Embedthis GoAhead creates links containing a
  hostname obtained from an arbitrary HTTP Host header sent by an attacker.");

  script_tag(name:"impact", value:"An attacker can potentially use this vulnerability in a phishing
  attack.");

  script_tag(name:"affected", value:"Embedthis GoAhead version 2.5.0 is known to be affected. Other
  versions might be affected as well.");

  script_tag(name:"solution", value:"No known solution was made available for at least one year
  since the disclosure of this vulnerability. Likely none will be provided anymore. General solution
  options are to upgrade to a newer release, disable respective features, remove the product or
  replace the product by another one.");

  script_xref(name:"URL", value:"https://github.com/Ramikan/Vulnerabilities/blob/master/GoAhead%20Web%20server%20HTTP%20Header%20Injection");

  exit(0);
}

include("http_func.inc");
include("misc_func.inc");
include("host_details.inc");
include("http_keepalive.inc");

if(!port = get_app_port(cpe:CPE, service:"www"))
  exit(0);

if(!get_app_location(cpe:CPE, port:port, nofork:TRUE))
  exit(0);

vuln_urls = make_array();

poc_urls = make_list(
  "/goform/login", #POC: 1
  "/config/log_off_page.htm", #POC: 2
  "/"); #POC: 3

foreach poc_url (poc_urls) {

  vt_strings = get_vt_strings();
  host_header = vt_strings["lowercase_rand"];

  req = http_post_put_req(port: port, url: poc_url, data: "testdata");
  req = ereg_replace(string: req, pattern: '(Host\\s*: [^\r\n]+)', replace: "Host: " + host_header);
  res = http_keepalive_send_recv(port: port, data: req);
  if(!res)
    continue;

  if(match = egrep(string: res, pattern: "(^Location\s*:|This document has moved to a new).+" + host_header, icase: TRUE)) {
    vuln_urls[poc_url] = chomp(match);
    VULN = TRUE;
  }
}

if(VULN) {
  report = "It was possible to inject a host header and create a manipulated link via a HTTP POST-request to:";
  foreach vuln_url (keys(vuln_urls)) {
    report += '\n\nURL:         ' + http_report_vuln_url(port: port, url: vuln_url, url_only: TRUE);
    report += '\nResponse(s): ' + vuln_urls[vuln_url];
  }
  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

25 Sep 2024 00:00Current
8.6High risk
Vulners AI Score8.6
CVSS 25
CVSS 3.18.6
EPSS0.08183
604