Lucene search

K
openvasCopyright (C) 2017 Greenbone AGOPENVAS:1361412562310108087
HistoryFeb 28, 2017 - 12:00 a.m.

PayPal PHP Merchant SDK <= 3.9.1 Cross-site Scripting Vulnerability

2017-02-2800:00:00
Copyright (C) 2017 Greenbone AG
plugins.openvas.org
13

4.3 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:M/Au:N/C:N/I:P/A:N

6.1 Medium

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

NONE

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

0.001 Low

EPSS

Percentile

47.4%

This host has installed the PayPal PHP Merchant SDK and is
prone to a cross-site scripting vulnerability.

# SPDX-FileCopyrightText: 2017 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:paypal:merchant-sdk-php";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.108087");
  script_version("2023-10-27T05:05:28+0000");
  script_cve_id("CVE-2017-6099");
  script_tag(name:"cvss_base", value:"4.3");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:N/I:P/A:N");
  script_tag(name:"last_modification", value:"2023-10-27 05:05:28 +0000 (Fri, 27 Oct 2023)");
  script_tag(name:"severity_vector", value:"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N");
  script_tag(name:"severity_origin", value:"NVD");
  script_tag(name:"severity_date", value:"2019-03-13 17:24:00 +0000 (Wed, 13 Mar 2019)");
  script_tag(name:"creation_date", value:"2017-02-28 07:21:29 +0100 (Tue, 28 Feb 2017)");
  script_name("PayPal PHP Merchant SDK <= 3.9.1 Cross-site Scripting Vulnerability");
  script_category(ACT_ATTACK);
  script_copyright("Copyright (C) 2017 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("gb_paypal_merchant-sdk-php_detect.nasl");
  script_require_ports("Services/www", 80);
  script_mandatory_keys("paypal/merchant-sdk-php/installed");

  script_xref(name:"URL", value:"https://github.com/paypal/merchant-sdk-php/issues/129");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/96432");

  script_tag(name:"summary", value:"This host has installed the PayPal PHP Merchant SDK and is
  prone to a cross-site scripting vulnerability.");

  script_tag(name:"vuldetect", value:"Send a crafted HTTP GET request and check
  the response.");

  script_tag(name:"insight", value:"The flaw is due to an input passed via
  the samples/AccountAuthentication/GetAuthDetails.html.php script to the 'token'
  parameter which is not properly sanitized.");

  script_tag(name:"impact", value:"Successful exploitation will allow attacker to
  execute arbitrary HTML and script code in a user's browser session in the context
  of an affected site.");

  script_tag(name:"affected", value:"PHP Merchant SDK versions up to 3.9.1");

  script_tag(name:"solution", value:"Remove the /samples directory from this host.");

  script_tag(name:"solution_type", value:"Workaround");
  script_tag(name:"qod_type", value:"remote_analysis");

  exit(0);
}

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

if( ! port = get_app_port( cpe:CPE ) ) exit( 0 );
if( ! dir = get_app_location( cpe:CPE, port:port ) ) exit( 0 );

if( dir == "/" ) dir = "";

url = dir + "/samples/AccountAuthentication/GetAuthDetails.html.php?token=><script>alert(document.cookie)</script>";

if( http_vuln_check( port:port, url:url, check_header:TRUE,
    pattern:"value=><script>alert\(document\.cookie\)</script> />",
    extra_check:make_list( "GetAuthDetails</title>", "GetAuthDetails</h3>" ) ) ) {
  report = http_report_vuln_url( port:port, url:url );
  security_message( port:port, data:report );
  exit( 0 );
}

exit( 99 );

4.3 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:M/Au:N/C:N/I:P/A:N

6.1 Medium

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

NONE

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

0.001 Low

EPSS

Percentile

47.4%

Related for OPENVAS:1361412562310108087