Vulnerabilities > CVE-2011-5247 - Cleartext Storage of Sensitive Information vulnerability in Prophecyinternational Snare

047910
CVSS 7.5 - HIGH
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
HIGH
Integrity impact
NONE
Availability impact
NONE
network
low complexity
prophecyinternational
CWE-312
nessus

Summary

Snare for Linux before 1.7.0 has password disclosure because the rendered page contains the field RemotePassword.

Vulnerable Configurations

Part Description Count
Application
Prophecyinternational
1

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Footprinting
    An attacker engages in probing and exploration activity to identify constituents and properties of the target. Footprinting is a general term to describe a variety of information gathering techniques, often used by attackers in preparation for some attack. It consists of using tools to learn as much as possible about the composition, configuration, and security mechanisms of the targeted application, system or network. Information that might be collected during a footprinting effort could include open ports, applications and their versions, network topology, and similar information. While footprinting is not intended to be damaging (although certain activities, such as network scans, can sometimes cause disruptions to vulnerable applications inadvertently) it may often pave the way for more damaging attacks.
  • Lifting Data Embedded in Client Distributions
    An attacker can resort to stealing data embedded in client distributions or client code in order to gain certain information. This information can reveal confidential contents, such as account numbers, or can be used as an intermediate step in a larger attack (such as by stealing keys/credentials).

Nessus

NASL familyCGI abuses
NASL idSNARE_LINUX_1_7_0.NASL
descriptionAccording to its self-reported version number, the installation of Snare Agent for Linux hosted on the remote web server is affected by multiple vulnerabilities in the optionally configured web interface: - The web interface discloses a hashed password for remote logins. An attacker can view the page source at /remote and see the hashed password in the
last seen2020-06-01
modified2020-06-02
plugin id63334
published2012-12-24
reporterThis script is Copyright (C) 2012-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
sourcehttps://www.tenable.com/plugins/nessus/63334
titleSnare Agent for Linux < 1.7.0 / 2.0.0 Multiple Vulnerabilities
code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(63334);
  script_version("1.7");
  script_cvs_date("Date: 2019/12/04");

  script_cve_id("CVE-2011-5247", "CVE-2011-5249", "CVE-2011-5250");
  script_bugtraq_id(56883);

  script_name(english:"Snare Agent for Linux < 1.7.0 / 2.0.0 Multiple Vulnerabilities");
  script_summary(english:"Checks version of Snare Agent for Linux");

  script_set_attribute(attribute:"synopsis", value:
"The remote web server hosts an auditing application that is affected by
multiple vulnerabilities.");
  script_set_attribute(attribute:"description", value:
"According to its self-reported version number, the installation of
Snare Agent for Linux hosted on the remote web server is affected by
multiple vulnerabilities in the optionally configured web interface:

  - The web interface discloses a hashed password for
    remote logins.  An attacker can view the page source
    at /remote and see the hashed password in the
    'RemotePassword' field. (CVE-2011-5247)

  - The web interface suffers from a cross-site scripting
    vulnerability because the application fails to
    sanitize input passed via logged events.  An attacker
    could create a specially crafted request that would
    execute arbitrary script code in a user's browser.
    (CVE-2011-5249)

  - The web interface suffers from a cross-site request
    forgery (CSRF) vulnerability because it fails to
    properly implement the 'ChToken' parameter used to
    prevent CSRF attacks. (CVE-2011-5250)");
  script_set_attribute(attribute:"see_also", value:"https://seclists.org/bugtraq/2012/Dec/76");
  script_set_attribute(attribute:"see_also", value:"https://seclists.org/bugtraq/2012/Dec/77");
  script_set_attribute(attribute:"see_also", value:"https://seclists.org/bugtraq/2012/Dec/78");
  # https://sourceforge.net/p/snare/news/2011/08/snare-for-linux-170-and-200-released/
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?3546e793");
  script_set_attribute(attribute:"solution", value:
"Upgrade to version 1.7.0 / 2.0.0 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N");
  script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2011-5249");

  script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_cwe_id(20, 74, 79, 442, 629, 711, 712, 722, 725, 750, 751, 800, 801, 809, 811, 864, 900, 928, 931, 990);

  script_set_attribute(attribute:"vuln_publication_date", value:"2011/08/09");
  script_set_attribute(attribute:"patch_publication_date", value:"2011/08/09");
  script_set_attribute(attribute:"plugin_publication_date", value:"2012/12/24");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:intersect_alliance:snare_agent");
  script_end_attributes();

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

  script_copyright(english:"This script is Copyright (C) 2012-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("snare_agent_detect.nasl");
  script_require_keys("www/snare_linux");
  script_exclude_keys("Settings/disable_cgi_scanning");
  script_require_ports("Services/www", 80, 6161);

  exit(0);
}

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

port = get_http_port(default:6161, embedded:TRUE);

install = get_install_from_kb(
  appname      : "snare_linux",
  port         : port,
  exit_on_fail : TRUE
);

dir = install["dir"];
version = install["ver"];
install_url = build_url(port:port, qs:dir+"/");

if (version == UNKNOWN_VER) audit(AUDIT_UNKNOWN_WEB_APP_VER, "Snare Agent for Linux", install_url);

ver = split(version, sep:'.', keep:FALSE);
  for (i=0; i<max_index(ver); i++)
    ver[i] = int(ver[i]);

# versions less than 1.7.0 / 2.0.0 are affected
if (
  ver[0] < 1 ||
  (ver[0] == 1 && ver[1] < 7)
)
{
  set_kb_item(name:'www/'+port+'/XSS', value:TRUE);
  set_kb_item(name:'www/'+port+'/XSRF', value:TRUE);

  if (report_verbosity > 0)
  {
    report =
      '\n  URL               : ' +install_url+
      '\n  Installed version : ' +version+
      '\n  Fixed version     : 1.7.0 / 2.0.0\n';
    security_warning(port:port, extra:report);
  }
  else security_warning(port);
}
else audit(AUDIT_WEB_APP_NOT_AFFECTED, "Snare Agent for Linux", install_url, version);