ID CVE-2015-1815
Summary The get_rpm_nvr_by_file_path_temporary function in util.py in setroubleshoot before 3.2.22 allows remote attackers to execute arbitrary commands via shell metacharacters in a file name.
References
Vulnerable Configurations
  • cpe:2.3:a:selinux:setroubleshoot:*:*:*:*:*:*:*:*
    cpe:2.3:a:selinux:setroubleshoot:*:*:*:*:*:*:*:*
  • cpe:2.3:o:fedoraproject:fedora:22:*:*:*:*:*:*:*
    cpe:2.3:o:fedoraproject:fedora:22:*:*:*:*:*:*:*
CVSS
Base: 10.0 (as of 13-02-2023 - 00:47)
Impact:
Exploitability:
CWE CWE-77
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.
  • Command Injection
    An adversary looking to execute a command of their choosing, injects new items into an existing command thus modifying interpretation away from what was intended. Commands in this context are often standalone strings that are interpreted by a downstream component and cause specific responses. This type of attack is possible when untrusted values are used to build these command strings. Weaknesses in input validation or command construction can enable the attack and lead to successful exploitation.
  • Manipulating Writeable Configuration Files
    Generally these are manually edited files that are not in the preview of the system administrators, any ability on the attackers' behalf to modify these files, for example in a CVS repository, gives unauthorized access directly to the application, the same as authorized users.
  • LDAP Injection
    An attacker manipulates or crafts an LDAP query for the purpose of undermining the security of the target. Some applications use user input to create LDAP queries that are processed by an LDAP server. For example, a user might provide their username during authentication and the username might be inserted in an LDAP query during the authentication process. An attacker could use this input to inject additional commands into an LDAP query that could disclose sensitive information. For example, entering a * in the aforementioned query might return information about all users on the system. This attack is very similar to an SQL injection attack in that it manipulates a query to gather additional information or coerce a particular return value.
  • Command Delimiters
    An attack of this type exploits a programs' vulnerabilities that allows an attacker's commands to be concatenated onto a legitimate command with the intent of targeting other resources such as the file system or database. The system that uses a filter or a blacklist input validation, as opposed to whitelist validation is vulnerable to an attacker who predicts delimiters (or combinations of delimiters) not present in the filter or blacklist. As with other injection attacks, the attacker uses the command delimiter payload as an entry point to tunnel through the application and activate additional attacks through SQL queries, shell commands, network scanning, and so on.
  • IMAP/SMTP Command Injection
    An attacker exploits weaknesses in input validation on IMAP/SMTP servers to execute commands on the server. Web-mail servers often sit between the Internet and the IMAP or SMTP mail server. User requests are received by the web-mail servers which then query the back-end mail server for the requested information and return this response to the user. In an IMAP/SMTP command injection attack, mail-server commands are embedded in parts of the request sent to the web-mail server. If the web-mail server fails to adequately sanitize these requests, these commands are then sent to the back-end mail server when it is queried by the web-mail server, where the commands are then executed. This attack can be especially dangerous since administrators may assume that the back-end server is protected against direct Internet access and therefore may not secure it adequately against the execution of malicious commands.
  • Manipulating Writeable Terminal Devices
    This attack exploits terminal devices that allow themselves to be written to by other users. The attacker sends command strings to the target terminal device hoping that the target user will hit enter and thereby execute the malicious command with their privileges. The attacker can send the results (such as copying /etc/passwd) to a known directory and collect once the attack has succeeded.
  • Exploiting Multiple Input Interpretation Layers
    An attacker supplies the target software with input data that contains sequences of special characters designed to bypass input validation logic. This exploit relies on the target making multiples passes over the input data and processing a "layer" of special characters with each pass. In this manner, the attacker can disguise input that would otherwise be rejected as invalid by concealing it with layers of special/escape characters that are stripped off by subsequent processing steps. The goal is to first discover cases where the input validation layer executes before one or more parsing layers. That is, user input may go through the following logic in an application: <parser1> --> <input validator> --> <parser2>. In such cases, the attacker will need to provide input that will pass through the input validator, but after passing through parser2, will be converted into something that the input validator was supposed to stop.
Access
VectorComplexityAuthentication
NETWORK LOW NONE
Impact
ConfidentialityIntegrityAvailability
COMPLETE COMPLETE COMPLETE
cvss-vector via4 AV:N/AC:L/Au:N/C:C/I:C/A:C
redhat via4
advisories
bugzilla
id 1203352
title CVE-2015-1815 setroubleshoot: command injection via crafted file name
oval
OR
  • comment Red Hat Enterprise Linux must be installed
    oval oval:com.redhat.rhba:tst:20070304026
  • AND
    • comment Red Hat Enterprise Linux 5 is installed
      oval oval:com.redhat.rhba:tst:20070331005
    • OR
      • AND
        • comment setroubleshoot is earlier than 0:2.0.5-7.el5_11
          oval oval:com.redhat.rhsa:tst:20150729001
        • comment setroubleshoot is signed with Red Hat redhatrelease key
          oval oval:com.redhat.rhsa:tst:20080061004
      • AND
        • comment setroubleshoot-server is earlier than 0:2.0.5-7.el5_11
          oval oval:com.redhat.rhsa:tst:20150729003
        • comment setroubleshoot-server is signed with Red Hat redhatrelease key
          oval oval:com.redhat.rhsa:tst:20080061006
  • AND
    • comment Red Hat Enterprise Linux 6 is installed
      oval oval:com.redhat.rhba:tst:20111656003
    • OR
      • AND
        • comment setroubleshoot is earlier than 0:3.0.47-6.el6_6.1
          oval oval:com.redhat.rhsa:tst:20150729006
        • comment setroubleshoot is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhba:tst:20152287002
      • AND
        • comment setroubleshoot-doc is earlier than 0:3.0.47-6.el6_6.1
          oval oval:com.redhat.rhsa:tst:20150729008
        • comment setroubleshoot-doc is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhsa:tst:20150729009
      • AND
        • comment setroubleshoot-server is earlier than 0:3.0.47-6.el6_6.1
          oval oval:com.redhat.rhsa:tst:20150729010
        • comment setroubleshoot-server is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhba:tst:20152287004
  • AND
    • comment Red Hat Enterprise Linux 7 is installed
      oval oval:com.redhat.rhba:tst:20150364027
    • OR
      • AND
        • comment setroubleshoot is earlier than 0:3.2.17-4.1.el7_1
          oval oval:com.redhat.rhsa:tst:20150729013
        • comment setroubleshoot is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhba:tst:20152287002
      • AND
        • comment setroubleshoot-server is earlier than 0:3.2.17-4.1.el7_1
          oval oval:com.redhat.rhsa:tst:20150729014
        • comment setroubleshoot-server is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhba:tst:20152287004
rhsa
id RHSA-2015:0729
released 2015-03-26
severity Important
title RHSA-2015:0729: setroubleshoot security update (Important)
rpms
  • setroubleshoot-0:2.0.5-7.el5_11
  • setroubleshoot-0:3.0.47-6.el6_6.1
  • setroubleshoot-0:3.2.17-4.1.ael7b_1
  • setroubleshoot-0:3.2.17-4.1.el7_1
  • setroubleshoot-debuginfo-0:3.0.47-6.el6_6.1
  • setroubleshoot-debuginfo-0:3.2.17-4.1.ael7b_1
  • setroubleshoot-debuginfo-0:3.2.17-4.1.el7_1
  • setroubleshoot-doc-0:3.0.47-6.el6_6.1
  • setroubleshoot-server-0:2.0.5-7.el5_11
  • setroubleshoot-server-0:3.0.47-6.el6_6.1
  • setroubleshoot-server-0:3.2.17-4.1.ael7b_1
  • setroubleshoot-server-0:3.2.17-4.1.el7_1
refmap via4
bid 73374
confirm
exploit-db 36564
fedora
  • FEDORA-2015-4792
  • FEDORA-2015-4833
  • FEDORA-2015-4838
misc https://github.com/stealth/troubleshooter
mlist [oss-security] 20150326 Fwd: setroubleshoot root exploit (CVE-Request)
osvdb 119966
Last major update 13-02-2023 - 00:47
Published 30-03-2015 - 14:59
Last modified 13-02-2023 - 00:47
Back to Top