Lucene search
+L

libupnp Unhandled POST Write Vulnerability

🗓️ 27 Jul 2016 00:00:00Reported by Copyright (C) 2016 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 89 Views

libupnp Unhandled POST Write Vulnerability. Upgrade to version 1.6.21 or late

Related
Refs
Code
ReporterTitlePublishedViews
Family
zdt
MiCasa VeraLite Remote Code Execution Exploit
22 Oct 201600:00
zdt
ArchLinux
libupnp: arbitrary filesystem access
8 Aug 201600:00
archlinux
CNVD
Libupnp Arbitrary File Write Vulnerability
29 Jul 201600:00
cnvd
CVE
CVE-2016-6255
7 Mar 201716:00
cve
Cvelist
CVE-2016-6255
7 Mar 201716:00
cvelist
Debian
[SECURITY] [DLA 597-1] libupnp security update
18 Aug 201600:12
debian
Debian
[SECURITY] [DSA 3736-1] libupnp security update
16 Dec 201613:01
debian
Debian
[SECURITY] [DSA 3736-1] libupnp security update
16 Dec 201613:01
debian
Debian CVE
CVE-2016-6255
7 Mar 201716:00
debiancve
Tenable Nessus
Debian DLA-597-1 : libupnp security update
18 Aug 201600:00
nessus
Rows per page
# SPDX-FileCopyrightText: 2016 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:libupnp_project:libupnp";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.106155");
  script_name("libupnp Unhandled POST Write Vulnerability");
  script_version("2023-07-21T05:05:22+0000");
  script_tag(name:"last_modification", value:"2023-07-21 05:05:22 +0000 (Fri, 21 Jul 2023)");
  script_tag(name:"creation_date", value:"2016-07-27 15:23:00 +0700 (Wed, 27 Jul 2016)");
  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.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N");
  script_tag(name:"severity_origin", value:"NVD");
  script_tag(name:"severity_date", value:"2017-11-03 01:29:00 +0000 (Fri, 03 Nov 2017)");
  script_cve_id("CVE-2016-6255");
  script_category(ACT_ATTACK);
  script_copyright("Copyright (C) 2016 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("gb_libupnp_consolidation.nasl");
  script_mandatory_keys("libupnp/detected");

  script_xref(name:"URL", value:"http://www.openwall.com/lists/oss-security/2016/07/20/5");
  script_xref(name:"URL", value:"http://pupnp.sourceforge.net/ChangeLog");

  script_tag(name:"summary", value:"libupnp is prone to a unhandled POST write vulnerability");

  script_tag(name:"vuldetect", value:"Tries to write a file und retrieve it again.");

  script_tag(name:"insight", value:"If there's no registered handler for a POST request, the default
  behaviour is to write it to the filesystem. Therefore it is possible to write arbitrary files to it.");

  script_tag(name:"impact", value:"An unauthenticated attacker may write arbitrary files to the filesystem.");

  script_tag(name:"solution", value:"Upgrade to version 1.6.21 or later.");

  script_tag(name:"qod_type", value:"exploit");
  script_tag(name:"solution_type", value:"VendorFix");

  exit(0);
}

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

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

if( ! infos = get_app_location_and_proto( cpe:CPE, port:port ) )
  exit( 0 );

proto = infos["proto"];
vtstrings = get_vt_strings();

file = '/' + vtstrings["lowercase"] + '_cve_2016_6255.test';
data = vtstrings["lowercase_rand"];

req  = http_post_put_req( port:port, url:file, data:data,
                          add_headers:make_array( "Content-Type", "application/x-www-form-urlencoded" ) );
res = http_keepalive_send_recv( port:port, data:req );

if( ! res || res !~ "^HTTP/1\.[01] 200" )
  exit( 0 );

if( http_vuln_check( port:port, url:file, pattern:data, check_header:TRUE ) ) {
  report = http_report_vuln_url( port:port, url:file );
  report += "\n\nPlease delete this uploaded test file.";
  security_message( port:port, data:report, proto:proto );
  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

21 Jul 2023 00:00Current
8.6High risk
Vulners AI Score8.6
CVSS 25
CVSS 37.5
EPSS0.26818
89