ID CVE-2018-1000119
Summary Sinatra rack-protection versions 1.5.4 and 2.0.0.rc3 and earlier contains a timing attack vulnerability in the CSRF token checking that can result in signatures can be exposed. This attack appear to be exploitable via network connectivity to the ruby application. This vulnerability appears to have been fixed in 1.5.5 and 2.0.0.
References
Vulnerable Configurations
  • Sinatrarb rack-protection 2.0.0 Release Candidate 1
    cpe:2.3:a:sinatrarb:rack-protection:2.0.0:rc1
  • Sinatrarb rack-protection 2.0.0 Release Candidate 2
    cpe:2.3:a:sinatrarb:rack-protection:2.0.0:rc2
  • Sinatrarb rack-protection 2.0.0 Release Candidate 3
    cpe:2.3:a:sinatrarb:rack-protection:2.0.0:rc3
CVSS
Base: 4.3
Impact:
Exploitability:
CWE CWE-200
CAPEC
  • Subverting Environment Variable Values
    The attacker directly or indirectly modifies environment variables used by or controlling the target software. The attacker's goal is to cause the target software to deviate from its expected operation in a manner that benefits the attacker.
  • 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.
  • Exploiting Trust in Client (aka Make the Client Invisible)
    An attack of this type exploits a programs' vulnerabilities in client/server communication channel authentication and data integrity. It leverages the implicit trust a server places in the client, or more importantly, that which the server believes is the client. An attacker executes this type of attack by placing themselves in the communication channel between client and server such that communication directly to the server is possible where the server believes it is communicating only with a valid client. There are numerous variations of this type of attack.
  • Browser Fingerprinting
    An attacker carefully crafts small snippets of Java Script to efficiently detect the type of browser the potential victim is using. Many web-based attacks need prior knowledge of the web browser including the version of browser to ensure successful exploitation of a vulnerability. Having this knowledge allows an attacker to target the victim with attacks that specifically exploit known or zero day weaknesses in the type and version of the browser used by the victim. Automating this process via Java Script as a part of the same delivery system used to exploit the browser is considered more efficient as the attacker can supply a browser fingerprinting method and integrate it with exploit code, all contained in Java Script and in response to the same web page request by the browser.
  • Session Credential Falsification through Prediction
    This attack targets predictable session ID in order to gain privileges. The attacker can predict the session ID used during a transaction to perform spoofing and session hijacking.
  • Reusing Session IDs (aka Session Replay)
    This attack targets the reuse of valid session ID to spoof the target system in order to gain privileges. The attacker tries to reuse a stolen session ID used previously during a transaction to perform spoofing and session hijacking. Another name for this type of attack is Session Replay.
  • Using Slashes in Alternate Encoding
    This attack targets the encoding of the Slash characters. An attacker would try to exploit common filtering problems related to the use of the slashes characters to gain access to resources on the target host. Directory-driven systems, such as file systems and databases, typically use the slash character to indicate traversal between directories or other container components. For murky historical reasons, PCs (and, as a result, Microsoft OSs) choose to use a backslash, whereas the UNIX world typically makes use of the forward slash. The schizophrenic result is that many MS-based systems are required to understand both forms of the slash. This gives the attacker many opportunities to discover and abuse a number of common filtering problems. The goal of this pattern is to discover server software that only applies filters to one version, but not the other.
nessus via4
  • NASL family Amazon Linux Local Security Checks
    NASL id AL2_ALAS-2018-1005.NASL
    description Debug parameter removal bypass, allowing information disclosure It was found that the REST interface of the pcsd service did not properly remove the pcs debug argument from the /run_pcs query, possibly disclosing sensitive information. A remote attacker with a valid token could use this flaw to elevate their privilege. (CVE-2018-1086) Timing attack in authenticity_token.rb Sinatra rack-protection versions 1.5.4 and 2.0.0.rc3 and earlier contains a timing attack vulnerability in the CSRF token checking that can result in signatures can be exposed. This attack appear to be exploitable via network connectivity to the ruby application. This vulnerability appears to have been fixed in 1.5.5 and 2.0.0. (CVE-2018-1000119) Privilege escalation via authorized user malicious REST call It was found that the REST interface of the pcsd service did not properly sanitize the file name from the /remote/put_file query. If the /etc/booth directory exists, an authenticated attacker with write permissions could create or overwrite arbitrary files with arbitrary data outside of the /etc/booth directory, in the context of the pcsd process. (CVE-2018-1079)
    last seen 2019-02-21
    modified 2018-08-31
    plugin id 109365
    published 2018-04-27
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=109365
    title Amazon Linux 2 : pcs (ALAS-2018-1005)
  • NASL family Debian Local Security Checks
    NASL id DEBIAN_DSA-4247.NASL
    description A timing attack was discovered in the function for CSRF token validation of the 'Ruby rack protection' framework.
    last seen 2019-02-21
    modified 2018-11-13
    plugin id 111112
    published 2018-07-17
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=111112
    title Debian DSA-4247-1 : ruby-rack-protection - security update
  • NASL family CentOS Local Security Checks
    NASL id CENTOS_RHSA-2018-1060.NASL
    description An update for pcs is now available for Red Hat Enterprise Linux 7. Red Hat Product Security has rated this update as having a security impact of Important. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section. The pcs packages provide a command-line configuration system for the Pacemaker and Corosync utilities. Security Fix(es) : * pcs: Privilege escalation via authorized user malicious REST call (CVE-2018-1079) * pcs: Debug parameter removal bypass, allowing information disclosure (CVE-2018-1086) * rack-protection: Timing attack in authenticity_token.rb (CVE-2018-1000119) For more details about the security issue(s), including the impact, a CVSS score, and other related information, refer to the CVE page(s) listed in the References section. The CVE-2018-1079 issue was discovered by Ondrej Mular (Red Hat) and the CVE-2018-1086 issue was discovered by Cedric Buissart (Red Hat).
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 110237
    published 2018-05-31
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=110237
    title CentOS 7 : pcs (CESA-2018:1060)
  • NASL family Red Hat Local Security Checks
    NASL id REDHAT-RHSA-2018-1060.NASL
    description An update for pcs is now available for Red Hat Enterprise Linux 7. Red Hat Product Security has rated this update as having a security impact of Important. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section. The pcs packages provide a command-line configuration system for the Pacemaker and Corosync utilities. Security Fix(es) : * pcs: Privilege escalation via authorized user malicious REST call (CVE-2018-1079) * pcs: Debug parameter removal bypass, allowing information disclosure (CVE-2018-1086) * rack-protection: Timing attack in authenticity_token.rb (CVE-2018-1000119) For more details about the security issue(s), including the impact, a CVSS score, and other related information, refer to the CVE page(s) listed in the References section. The CVE-2018-1079 issue was discovered by Ondrej Mular (Red Hat) and the CVE-2018-1086 issue was discovered by Cedric Buissart (Red Hat).
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 108996
    published 2018-04-11
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=108996
    title RHEL 7 : pcs (RHSA-2018:1060)
  • NASL family Oracle Linux Local Security Checks
    NASL id ORACLELINUX_ELSA-2018-1060.NASL
    description From Red Hat Security Advisory 2018:1060 : An update for pcs is now available for Red Hat Enterprise Linux 7. Red Hat Product Security has rated this update as having a security impact of Important. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section. The pcs packages provide a command-line configuration system for the Pacemaker and Corosync utilities. Security Fix(es) : * pcs: Privilege escalation via authorized user malicious REST call (CVE-2018-1079) * pcs: Debug parameter removal bypass, allowing information disclosure (CVE-2018-1086) * rack-protection: Timing attack in authenticity_token.rb (CVE-2018-1000119) For more details about the security issue(s), including the impact, a CVSS score, and other related information, refer to the CVE page(s) listed in the References section. The CVE-2018-1079 issue was discovered by Ondrej Mular (Red Hat) and the CVE-2018-1086 issue was discovered by Cedric Buissart (Red Hat).
    last seen 2019-02-21
    modified 2018-09-05
    plugin id 109438
    published 2018-05-01
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=109438
    title Oracle Linux 7 : pcs (ELSA-2018-1060)
  • NASL family Scientific Linux Local Security Checks
    NASL id SL_20180410_PCS_ON_SL7_X.NASL
    description Security Fix(es) : - pcs: Privilege escalation via authorized user malicious REST call (CVE-2018-1079) - pcs: Debug parameter removal bypass, allowing information disclosure (CVE-2018-1086) - rack-protection: Timing attack in authenticity_token.rb (CVE-2018-1000119)
    last seen 2019-02-21
    modified 2018-12-27
    plugin id 109456
    published 2018-05-01
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=109456
    title Scientific Linux Security Update : pcs on SL7.x x86_64
redhat via4
advisories
bugzilla
id 1557366
title CVE-2018-1086 pcs: Debug parameter removal bypass, allowing information disclosure
oval
AND
  • OR
    • comment Red Hat Enterprise Linux 7 Client is installed
      oval oval:com.redhat.rhsa:tst:20140675001
    • comment Red Hat Enterprise Linux 7 Server is installed
      oval oval:com.redhat.rhsa:tst:20140675002
    • comment Red Hat Enterprise Linux 7 Workstation is installed
      oval oval:com.redhat.rhsa:tst:20140675003
    • comment Red Hat Enterprise Linux 7 ComputeNode is installed
      oval oval:com.redhat.rhsa:tst:20140675004
  • OR
    • AND
      • comment pcs is earlier than 0:0.9.162-5.el7_5.1
        oval oval:com.redhat.rhsa:tst:20181060007
      • comment pcs is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhsa:tst:20150980006
    • AND
      • comment pcs-snmp is earlier than 0:0.9.162-5.el7_5.1
        oval oval:com.redhat.rhsa:tst:20181060005
      • comment pcs-snmp is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhsa:tst:20181060006
rhsa
id RHSA-2018:1060
released 2018-04-10
severity Important
title RHSA-2018:1060: pcs security update (Important)
rpms
  • pcs-0:0.9.162-5.el7_5.1
  • pcs-snmp-0:0.9.162-5.el7_5.1
refmap via4
confirm
debian DSA-4247
Last major update 07-03-2018 - 09:29
Published 07-03-2018 - 09:29
Last modified 27-07-2018 - 21:29
Back to Top