ID CVE-2014-0240
Summary The mod_wsgi module before 3.5 for Apache, when daemon mode is enabled, does not properly handle error codes returned by setuid when run on certain Linux kernels, which allows local users to gain privileges via vectors related to the number of running processes.
References
Vulnerable Configurations
  • cpe:2.3:a:modwsgi:mod_wsgi:1.0:*:*:*:*:*:*:*
    cpe:2.3:a:modwsgi:mod_wsgi:1.0:*:*:*:*:*:*:*
  • cpe:2.3:a:modwsgi:mod_wsgi:1.1:*:*:*:*:*:*:*
    cpe:2.3:a:modwsgi:mod_wsgi:1.1:*:*:*:*:*:*:*
  • cpe:2.3:a:modwsgi:mod_wsgi:1.2:*:*:*:*:*:*:*
    cpe:2.3:a:modwsgi:mod_wsgi:1.2:*:*:*:*:*:*:*
  • cpe:2.3:a:modwsgi:mod_wsgi:1.3:*:*:*:*:*:*:*
    cpe:2.3:a:modwsgi:mod_wsgi:1.3:*:*:*:*:*:*:*
  • cpe:2.3:a:modwsgi:mod_wsgi:1.4:*:*:*:*:*:*:*
    cpe:2.3:a:modwsgi:mod_wsgi:1.4:*:*:*:*:*:*:*
  • cpe:2.3:a:modwsgi:mod_wsgi:1.5:*:*:*:*:*:*:*
    cpe:2.3:a:modwsgi:mod_wsgi:1.5:*:*:*:*:*:*:*
  • cpe:2.3:a:modwsgi:mod_wsgi:1.6:*:*:*:*:*:*:*
    cpe:2.3:a:modwsgi:mod_wsgi:1.6:*:*:*:*:*:*:*
  • cpe:2.3:a:modwsgi:mod_wsgi:2.0:*:*:*:*:*:*:*
    cpe:2.3:a:modwsgi:mod_wsgi:2.0:*:*:*:*:*:*:*
  • cpe:2.3:a:modwsgi:mod_wsgi:2.1:*:*:*:*:*:*:*
    cpe:2.3:a:modwsgi:mod_wsgi:2.1:*:*:*:*:*:*:*
  • cpe:2.3:a:modwsgi:mod_wsgi:2.2:*:*:*:*:*:*:*
    cpe:2.3:a:modwsgi:mod_wsgi:2.2:*:*:*:*:*:*:*
  • cpe:2.3:a:modwsgi:mod_wsgi:2.3:*:*:*:*:*:*:*
    cpe:2.3:a:modwsgi:mod_wsgi:2.3:*:*:*:*:*:*:*
  • cpe:2.3:a:modwsgi:mod_wsgi:2.4:*:*:*:*:*:*:*
    cpe:2.3:a:modwsgi:mod_wsgi:2.4:*:*:*:*:*:*:*
  • cpe:2.3:a:modwsgi:mod_wsgi:2.5:*:*:*:*:*:*:*
    cpe:2.3:a:modwsgi:mod_wsgi:2.5:*:*:*:*:*:*:*
  • cpe:2.3:a:modwsgi:mod_wsgi:2.6:*:*:*:*:*:*:*
    cpe:2.3:a:modwsgi:mod_wsgi:2.6:*:*:*:*:*:*:*
  • cpe:2.3:a:modwsgi:mod_wsgi:2.7:*:*:*:*:*:*:*
    cpe:2.3:a:modwsgi:mod_wsgi:2.7:*:*:*:*:*:*:*
  • cpe:2.3:a:modwsgi:mod_wsgi:2.8:*:*:*:*:*:*:*
    cpe:2.3:a:modwsgi:mod_wsgi:2.8:*:*:*:*:*:*:*
  • cpe:2.3:a:modwsgi:mod_wsgi:3.0:*:*:*:*:*:*:*
    cpe:2.3:a:modwsgi:mod_wsgi:3.0:*:*:*:*:*:*:*
  • cpe:2.3:a:modwsgi:mod_wsgi:3.1:*:*:*:*:*:*:*
    cpe:2.3:a:modwsgi:mod_wsgi:3.1:*:*:*:*:*:*:*
  • cpe:2.3:a:modwsgi:mod_wsgi:3.2:*:*:*:*:*:*:*
    cpe:2.3:a:modwsgi:mod_wsgi:3.2:*:*:*:*:*:*:*
  • cpe:2.3:a:modwsgi:mod_wsgi:3.3:*:*:*:*:*:*:*
    cpe:2.3:a:modwsgi:mod_wsgi:3.3:*:*:*:*:*:*:*
  • cpe:2.3:a:modwsgi:mod_wsgi:3.4:*:*:*:*:*:*:*
    cpe:2.3:a:modwsgi:mod_wsgi:3.4:*:*:*:*:*:*:*
CVSS
Base: 6.2 (as of 21-12-2017 - 02:29)
Impact:
Exploitability:
CWE CWE-264
CAPEC
  • Manipulating Web Input to File System Calls
    An attacker manipulates inputs to the target software which the target software passes to file system calls in the OS. The goal is to gain access to, and perhaps modify, areas of the file system that the target software did not intend to be accessible.
  • Leverage Executable Code in Non-Executable Files
    An attack of this type exploits a system's trust in configuration and resource files. When the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high.
  • Using Malicious Files
    An attack of this type exploits a system's configuration that allows an attacker to either directly access an executable file, for example through shell access; or in a possible worst case allows an attacker to upload a file and then execute it. Web servers, ftp servers, and message oriented middleware systems which have many integration points are particularly vulnerable, because both the programmers and the administrators must be in synch regarding the interfaces and the correct privileges for each interface.
  • Target Programs with Elevated Privileges
    This attack targets programs running with elevated privileges. The attacker would try to leverage a bug in the running program and get arbitrary code to execute with elevated privileges. For instance an attacker would look for programs that write to the system directories or registry keys (such as HKLM, which stores a number of critical Windows environment variables). These programs are typically running with elevated privileges and have usually not been designed with security in mind. Such programs are excellent exploit targets because they yield lots of power when they break. The malicious user try to execute its code at the same level as a privileged system call.
  • 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.
Access
VectorComplexityAuthentication
LOCAL HIGH NONE
Impact
ConfidentialityIntegrityAvailability
COMPLETE COMPLETE COMPLETE
cvss-vector via4 AV:L/AC:H/Au:N/C:C/I:C/A:C
redhat via4
advisories
  • bugzilla
    id 1101863
    title CVE-2014-0240 mod_wsgi: possible privilege escalation in setuid() failure scenarios
    oval
    OR
    • comment Red Hat Enterprise Linux must be installed
      oval oval:com.redhat.rhba:tst:20070304026
    • AND
      • comment Red Hat Enterprise Linux 7 is installed
        oval oval:com.redhat.rhba:tst:20150364027
      • comment mod_wsgi is earlier than 0:3.4-12.el7_0
        oval oval:com.redhat.rhsa:tst:20141091001
      • comment mod_wsgi is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhsa:tst:20140788002
    rhsa
    id RHSA-2014:1091
    released 2014-08-25
    severity Important
    title RHSA-2014:1091: mod_wsgi security update (Important)
  • rhsa
    id RHSA-2014:0789
rpms
  • mod_wsgi-0:3.2-6.el6_5
  • mod_wsgi-debuginfo-0:3.2-6.el6_5
  • python27-mod_wsgi-0:3.4-12.el6
  • python27-mod_wsgi-0:3.4-13.el7
  • python27-mod_wsgi-debuginfo-0:3.4-12.el6
  • python27-mod_wsgi-debuginfo-0:3.4-13.el7
  • python33-mod_wsgi-0:3.4-13.el7
  • python33-mod_wsgi-0:3.4-14.el6
  • python33-mod_wsgi-debuginfo-0:3.4-13.el7
  • python33-mod_wsgi-debuginfo-0:3.4-14.el6
  • mod_wsgi-0:3.4-12.el7_0
  • mod_wsgi-debuginfo-0:3.4-12.el7_0
refmap via4
bid 67532
confirm
mlist [oss-security] 20140521 Security release for mod_wsgi (version 3.5)
secunia
  • 59551
  • 60094
Last major update 21-12-2017 - 02:29
Published 27-05-2014 - 14:55
Last modified 21-12-2017 - 02:29
Back to Top