6.1 Medium
AI Score
Confidence
Low
6.8 Medium
CVSS2
Access Vector
Access Complexity
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
PARTIAL
AV:N/AC:M/Au:N/C:P/I:P/A:P
0.885 High
EPSS
Percentile
98.7%
Oracle GlassFish Server is prone to multiple vulnerabilities.
# 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
CPE = "cpe:/a:oracle:glassfish_server";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.802624");
script_version("2024-03-04T14:37:58+0000");
script_cve_id("CVE-2012-0550", "CVE-2012-0551");
script_tag(name:"cvss_base", value:"6.8");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:P/I:P/A:P");
script_tag(name:"last_modification", value:"2024-03-04 14:37:58 +0000 (Mon, 04 Mar 2024)");
script_tag(name:"creation_date", value:"2012-05-07 16:16:16 +0530 (Mon, 07 May 2012)");
script_tag(name:"solution_type", value:"VendorFix");
script_name("Oracle GlassFish Server Multiple XSS and CSRF Vulnerabilities");
script_xref(name:"URL", value:"http://secunia.com/advisories/48798");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/53118");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/53136");
script_xref(name:"URL", value:"http://securitytracker.com/id/1026941");
script_xref(name:"URL", value:"http://www.exploit-db.com/exploits/18764");
script_xref(name:"URL", value:"http://www.oracle.com/technetwork/topics/security/cpuapr2012-366314.html");
script_xref(name:"URL", value:"http://www.security-assessment.com/files/documents/advisory/Oracle_GlassFish_Server_REST_CSRF.pdf");
script_xref(name:"URL", value:"http://www.security-assessment.com/files/documents/advisory/Oracle_GlassFish_Server_Multiple_XSS.pdf");
script_tag(name:"qod_type", value:"remote_banner");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2012 Greenbone AG");
script_family("Web Servers");
script_dependencies("GlassFish_detect.nasl");
script_mandatory_keys("GlassFish/installed");
script_tag(name:"impact", value:"Successful exploitation will allow remote attackers to insert arbitrary HTML
and script code, which will be executed in a user's browser session in the context of an affected site.");
script_tag(name:"affected", value:"Oracle GlassFish Server version 3.1.1");
script_tag(name:"insight", value:"Multiple flaws are due to
- Input passed via multiple parameters to various scripts is not properly sanitised before being returned to the
user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an
affected site.
- The application allows users to perform certain actions via HTTP requests without performing proper validity
checks to verify the requests.");
script_tag(name:"summary", value:"Oracle GlassFish Server is prone to multiple vulnerabilities.");
script_tag(name:"solution", value:"Apply the patch from the referenced advisory.");
exit(0);
}
include("host_details.inc");
include("version_func.inc");
if (!port = get_app_port(cpe: CPE))
exit(0);
if (!version = get_app_version(cpe: CPE, port: port))
exit(0);
if (version_is_equal(version: version, test_version: "3.1.1")) {
report = report_fixed_ver(installed_version:version, vulnerable_range:"Equal to 3.1.1");
security_message(port: port, data: report);
exit(0);
}
exit(99);
secunia.com/advisories/48798
securitytracker.com/id/1026941
www.exploit-db.com/exploits/18764
www.oracle.com/technetwork/topics/security/cpuapr2012-366314.html
www.security-assessment.com/files/documents/advisory/Oracle_GlassFish_Server_Multiple_XSS.pdf
www.security-assessment.com/files/documents/advisory/Oracle_GlassFish_Server_REST_CSRF.pdf
www.securityfocus.com/bid/53118
www.securityfocus.com/bid/53136