Atlassian Crucible 2.5.8 / 2.6.8 / 2.7.12 XML Parsing Vulnerability

2012-06-01T00:00:00
ID CRUCIBLE_2_7_12.NASL
Type nessus
Reporter Tenable
Modified 2018-06-13T00:00:00

Description

According to its self-reported version, the version of Atlassian Crucible running on the remote host is potentially affected by an XML parsing vulnerability. This vulnerability may allow an unauthenticated, remote attacker to perform a denial of service attack against Crucible. This vulnerability may also allow an unauthenticated, remote attacker to read any local files that the Crucible user can access.

                                        
                                            #
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(59327);
  script_version("1.7");
  script_cvs_date("Date: 2018/06/13 18:56:26");

  script_bugtraq_id(53603);

  script_name(english:"Atlassian Crucible 2.5.8 / 2.6.8 / 2.7.12 XML Parsing Vulnerability");
  script_summary(english:"Checks version of Crucible.");

  script_set_attribute(attribute:"synopsis", value:
"The version of Atlassian Crucible installed on the remote host may be
affected by an XML parsing vulnerability.");
  script_set_attribute(attribute:"description", value:
"According to its self-reported version, the version of Atlassian
Crucible running on the remote host is potentially affected by an XML
parsing vulnerability. This vulnerability may allow an
unauthenticated, remote attacker to perform a denial of service attack
against Crucible. This vulnerability may also allow an
unauthenticated, remote attacker to read any local files that the
Crucible user can access.");

  script_set_attribute(attribute:"solution", value:"Upgrade to Crucible 2.5.8 / 2.6.8 / 2.7.12 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:N/A:N");
  script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");

   # https://confluence.atlassian.com/display/CRUCIBLE/FishEye+and+Crucible+Security+Advisory+2012-05-17
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?fc2fbea3");
  script_set_attribute(attribute:"see_also", value:"https://jira.atlassian.com/browse/FE-4016");

  script_set_attribute(attribute:"vuln_publication_date", value:"2012/03/26");
  script_set_attribute(attribute:"patch_publication_date", value:"2012/05/17");
  script_set_attribute(attribute:"plugin_publication_date", value:"2012/06/01");

  script_set_attribute(attribute:"potential_vulnerability", value:"true");
  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:atlassian:crucible");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"CGI abuses");

  script_copyright(english:"This script is Copyright (C) 2012-2018 Tenable Network Security, Inc.");

  script_dependencies("crucible_detect.nasl");
  script_require_keys("installed_sw/crucible", "Settings/ParanoidReport");
  script_require_ports("Services/www", 8060);

  exit(0);
}

include("audit.inc");
include("global_settings.inc");
include("http.inc");
include("misc_func.inc");
include("install_func.inc");

# Get the ports that webservers have been found on, defaulting to
# what Crucible uses.
port = get_http_port(default:8060);

app = "Crucible";
app_name = tolower(app);

get_install_count(app_name:app_name, exit_if_zero:TRUE);

install = get_single_install(
  app_name : app_name,
  port     : port,
  exit_if_unknown_ver : TRUE
);

dir = install['path'];
ver = install['version'];
url = build_url(port:port, qs:dir);

# Prevent potential false positives.
if (report_paranoia < 2) audit(AUDIT_PARANOID);

fix = "";
vuln = 0;

if (ver =~ "^2\.5([^0-9]|$)")
{
  fix = "2.5.8";
  vuln = ver_compare(ver:ver, fix:fix, strict:FALSE);
}
else if (ver =~ "^2\.6([^0-9]|$)")
{
  fix = "2.6.8";
  vuln = ver_compare(ver:ver, fix:fix, strict:FALSE);
}
else if (ver =~ "^2\.7([^0-9]|$)")
{
  fix = "2.7.12";
  vuln = ver_compare(ver:ver, fix:fix, strict:FALSE);
}

if (vuln >= 0) audit(AUDIT_WEB_APP_NOT_AFFECTED, app, url, ver);

# Report our findings.
report = NULL;
if (report_verbosity > 0)
{
  report =
    '\n  URL               : ' + url +
    '\n  Installed version : ' + ver +
    '\n  Fixed version     : ' + fix +
    '\n';
}
security_hole(port:port, extra:report);