Vulnerabilities > CVE-2014-6448 - Improper Privilege Management vulnerability in Juniper Junos

047910
CVSS 7.8 - HIGH
Attack vector
LOCAL
Attack complexity
LOW
Privileges required
LOW
Confidentiality impact
HIGH
Integrity impact
HIGH
Availability impact
HIGH
local
low complexity
juniper
CWE-269
nessus

Summary

Juniper Junos OS 13.2 before 13.2R5, 13.2X51, 13.2X52, and 13.3 before 13.3R3 allow local users to bypass intended restrictions and execute arbitrary Python code via vectors involving shell access.

Vulnerable Configurations

Part Description Count
OS
Juniper
10

Common Weakness Enumeration (CWE)

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Restful Privilege Elevation
    Rest uses standard HTTP (Get, Put, Delete) style permissions methods, but these are not necessarily correlated generally with back end programs. Strict interpretation of HTTP get methods means that these HTTP Get services should not be used to delete information on the server, but there is no access control mechanism to back up this logic. This means that unless the services are properly ACL'd and the application's service implementation are following these guidelines then an HTTP request can easily execute a delete or update on the server side. The attacker identifies a HTTP Get URL such as http://victimsite/updateOrder, which calls out to a program to update orders on a database or other resource. The URL is not idempotent so the request can be submitted multiple times by the attacker, additionally, the attacker may be able to exploit the URL published as a Get method that actually performs updates (instead of merely retrieving data). This may result in malicious or inadvertent altering of data on the server.

Nessus

NASL familyJunos Local Security Checks
NASL idJUNIPER_JSA10695.NASL
descriptionAccording to its self-reported version number, the remote Juniper Junos device is potentially affected by multiple unspecified flaws related to Python. A local attacker can exploit these to run arbitrary Python code and thus gain elevated privileges.
last seen2020-06-01
modified2020-06-02
plugin id86605
published2015-10-26
reporterThis script is Copyright (C) 2015-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/86605
titleJuniper Junos Multiple Python Privilege Escalation (JSA10695)
code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(86605);
  script_version("1.7");
  script_cvs_date("Date: 2018/07/12 19:01:16");

  script_cve_id("CVE-2014-6448");
  script_xref(name:"JSA", value:"JSA10695");

  script_name(english:"Juniper Junos Multiple Python Privilege Escalation (JSA10695)");
  script_summary(english:"Checks the Junos version.");

  script_set_attribute(attribute:"synopsis", value:
"The remote device is missing a vendor-supplied security patch.");
  script_set_attribute(attribute:"description", value:
"According to its self-reported version number, the remote Juniper
Junos device is potentially affected by multiple unspecified flaws
related to Python. A local attacker can exploit these to run arbitrary
Python code and thus gain elevated privileges.");
  script_set_attribute(attribute:"see_also", value:"https://kb.juniper.net/InfoCenter/index?page=content&id=JSA10695");
  script_set_attribute(attribute:"solution", value:
"Apply the relevant Junos software release referenced in Juniper
advisory JSA10695.");
  script_set_cvss_base_vector("CVSS2#AV:L/AC:L/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"false");

  script_set_attribute(attribute:"vuln_publication_date", value:"2015/10/14");
  script_set_attribute(attribute:"patch_publication_date", value:"2015/10/14");
  script_set_attribute(attribute:"plugin_publication_date", value:"2015/10/26");

  script_set_attribute(attribute:"plugin_type", value:"combined");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:juniper:junos");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Junos Local Security Checks");

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

  script_dependencies("junos_version.nasl");
  script_require_keys("Host/Juniper/JUNOS/Version", 'Host/Juniper/model');

  exit(0);
}

include("audit.inc");
include("junos.inc");
include("misc_func.inc");

ver = get_kb_item_or_exit('Host/Juniper/JUNOS/Version');
model = get_kb_item_or_exit('Host/Juniper/model');

report = FALSE;
fix = NULL;
if((model =~ "^EX" || model =~ "^QFX") && ver =~ "^13.2X5[1-2]($|[^0-9])") {
  report = 
   '\n  Version : '+ver+
   '\n  Model   : '+model+
   '\n  Note    : The device may be affected but no fix has been'+
   '\n            issued by Juniper. Applying the workaround is'+
   '\n            suggested.'+
   '\n';
}
else
{
  fixes = make_array();
  fixes['13.2'   ] = '13.2R5';
  fixes['13.3'   ] = '13.3R3';

  fix = check_junos(ver:ver, fixes:fixes, exit_on_fail:TRUE);
}

if (report_verbosity > 0)
{
  if(!report)
    report = get_report(ver:ver, fix:fix);
  security_hole(port:0, extra:report);
}
else security_hole(0);