Vulnerabilities > CVE-2013-1987 - Numeric Errors vulnerability in multiple products

047910
CVSS 6.8 - MEDIUM
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
PARTIAL
Integrity impact
PARTIAL
Availability impact
PARTIAL

Summary

Multiple integer overflows in X.org libXrender 0.9.7 and earlier allow X servers to trigger allocation of insufficient memory and a buffer overflow via vectors related to the (1) XRenderQueryFilters, (2) XRenderQueryFormats, and (3) XRenderQueryPictIndexValues functions. Additional products added per http://www.ubuntu.com/usn/USN-1863-1/ http://lists.opensuse.org/opensuse-updates/2013-06/msg00141.html

Common Weakness Enumeration (CWE)

Nessus

  • NASL familyMisc.
    NASL idORACLE_SECURE_GLOBAL_DESKTOP_APR_2017_CPU.NASL
    descriptionThe version of Oracle Secure Global Desktop installed on the remote host is 4.71, 5.2, or 5.3 and is missing a security patch from the April 2017 Critical Patch Update (CPU). It is, therefore, affected by multiple vulnerabilities : - An integer overflow condition exists in the Window System (X11) subcomponent in multiple functions in X.Org libExt due to improper validation of user-supplied input when calculating the amount of memory required to handle return data. An unauthenticated, remote attacker can exploit this to cause a denial of service condition or the execution of arbitrary code. Note that this issue only affects version 4.71. (CVE-2013-1982) - An integer overflow condition exists in X.Org libXfixes in the XFixesGetCursorImage() function when handling large cursor dimensions or name lengths due to improper validation of user-supplied input. An unauthenticated, remote attacker can exploit this to cause a denial of service condition or the execution of arbitrary code. (CVE-2013-1983) - An integer overflow condition exists within multiple functions in X.Org libXi due to improper validation of user-supplied input when calculating the amount of memory needed to handle return data. An unauthenticated, remote attacker can exploit this to cause a denial of service condition or the execution of arbitrary code. (CVE-2013-1984) - An integer overflow condition exists in X.Org libXinerama in the XineramaQueryScreens() function due to improper validation of user-supplied input when calculating the amount of memory needed to handle return data. An unauthenticated, remote attacker can exploit this to cause a denial of service condition or the execution of arbitrary code. (CVE-2013-1985) - An integer overflow condition exists in multiple functions in X.Org libXrandr due to improper validation of user-supplied input when calculating the amount of memory needed to handle return data. An unauthenticated, remote attacker can exploit this to cause a denial of service condition or the execution of arbitrary code. (CVE-2013-1986) - An integer overflow condition exists in multiple functions in X.Org libXrender due to improper validation of user-supplied input when calculating the amount of memory needed to handle return data. An unauthenticated, remote attacker can exploit this to cause a denial of service condition or the execution of arbitrary code. (CVE-2013-1987) - An overflow condition exists in X.Org libXi in the XListInputDevices() function, related to an unexpected sign extension, due to improper checking of the amount of memory needed to handle returned data when converting smaller integer types to larger ones. An unauthenticated, remote attacker can exploit this to cause a denial of service condition or the execution of arbitrary code. (CVE-2013-1995) - An overflow condition exists within multiple functions in X.Org LibXi due to improper validation of user-supplied input. An unauthenticated, remote attacker can exploit this, via a specially crafted length or index, to cause a denial of service condition or the execution of arbitrary code. (CVE-2013-1998) - An overflow condition exists in X.Org LibXt in the _XtResourceConfigurationEH() function due to improper validation of user-supplied input. An unauthenticated, remote attacker can exploit this, via a specially crafted length or index, to cause a denial of service condition or the execution of arbitrary code. (CVE-2013-2002) - An integer overflow condition exists in X.Org libXcursor in the _XcursorFileHeaderCreate() function due to improper validation of user-supplied input. An unauthenticated, remote attacker can exploit this, via a specially crafted file, to cause a denial of service condition or the execution of arbitrary code. (CVE-2013-2003) - An uninitialized pointer flaw exists within multiple functions in X.Org LibXt due to a failure to check for proper initialization of pointers. An unauthenticated, remote attacker can exploit this to corrupt memory, resulting in a denial of service condition or the possible execution of arbitrary code. (CVE-2013-2005) - A flaw exists in the Application Server subcomponent (Apache Tomcat) due to a failure to process passwords when they are paired with non-existent usernames. An authenticated, remote attacker can exploit this, via a timing attack, to enumerate user account names. (CVE-2016-0762) - Multiple integer overflow conditions exist in s3_srvr.c, ssl_sess.c, and t1_lib.c due to improper use of pointer arithmetic for heap-buffer boundary checks. An unauthenticated, remote attacker can exploit these to cause a denial of service. (CVE-2016-2177) - An information disclosure vulnerability exists in the dsa_sign_setup() function in dsa_ossl.c due to a failure to properly ensure the use of constant-time operations. An unauthenticated, remote attacker can exploit this, via a timing side-channel attack, to disclose DSA key information. (CVE-2016-2178) - A denial of service vulnerability exists in the DTLS implementation due to a failure to properly restrict the lifetime of queue entries associated with unused out-of-order messages. An unauthenticated, remote attacker can exploit this, by maintaining multiple crafted DTLS sessions simultaneously, to exhaust memory. (CVE-2016-2179) - An out-of-bounds read error exists in the X.509 Public Key Infrastructure Time-Stamp Protocol (TSP) implementation. An unauthenticated, remote attacker can exploit this, via a crafted time-stamp file that is mishandled by the
    last seen2020-06-01
    modified2020-06-02
    plugin id99930
    published2017-05-02
    reporterThis script is Copyright (C) 2017-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/99930
    titleOracle Secure Global Desktop Multiple Vulnerabilities (April 2017 CPU) (SWEET32)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(99930);
      script_version("1.7");
      script_cvs_date("Date: 2019/11/13");
    
      script_cve_id(
        "CVE-2013-1982",
        "CVE-2013-1983",
        "CVE-2013-1984",
        "CVE-2013-1985",
        "CVE-2013-1986",
        "CVE-2013-1987",
        "CVE-2013-1995",
        "CVE-2013-1998",
        "CVE-2013-2002",
        "CVE-2013-2003",
        "CVE-2013-2005",
        "CVE-2016-0762",
        "CVE-2016-2177",
        "CVE-2016-2178",
        "CVE-2016-2179",
        "CVE-2016-2180",
        "CVE-2016-2181",
        "CVE-2016-2182",
        "CVE-2016-2183",
        "CVE-2016-3739",
        "CVE-2016-4802",
        "CVE-2016-5018",
        "CVE-2016-5407",
        "CVE-2016-5419",
        "CVE-2016-5420",
        "CVE-2016-5421",
        "CVE-2016-6302",
        "CVE-2016-6303",
        "CVE-2016-6304",
        "CVE-2016-6305",
        "CVE-2016-6306",
        "CVE-2016-6307",
        "CVE-2016-6308",
        "CVE-2016-6794",
        "CVE-2016-6796",
        "CVE-2016-6797",
        "CVE-2016-6816",
        "CVE-2016-6817",
        "CVE-2016-7055",
        "CVE-2016-8615",
        "CVE-2016-8616",
        "CVE-2016-8617",
        "CVE-2016-8618",
        "CVE-2016-8619",
        "CVE-2016-8620",
        "CVE-2016-8621",
        "CVE-2016-8622",
        "CVE-2016-8623",
        "CVE-2016-8624",
        "CVE-2016-8625",
        "CVE-2016-8735",
        "CVE-2016-8743",
        "CVE-2017-3730",
        "CVE-2017-3731",
        "CVE-2017-3732"
      );
      script_bugtraq_id(
        60121,
        60123,
        60124,
        60125,
        60126,
        60127,
        60128,
        60129,
        60132,
        60133,
        60137,
        90726,
        90997,
        91081,
        91319,
        92117,
        92292,
        92306,
        92309,
        92557,
        92628,
        92630,
        92982,
        92984,
        92987,
        93149,
        93150,
        93151,
        93152,
        93153,
        93368,
        93939,
        93940,
        93942,
        93943,
        93944,
        94094,
        94096,
        94097,
        94098,
        94100,
        94101,
        94102,
        94103,
        94105,
        94106,
        94107,
        94242,
        94461,
        94462,
        94463,
        95077,
        95812,
        95813,
        95814
      );
      script_xref(name:"EDB-ID", value:"41783");
    
      script_name(english:"Oracle Secure Global Desktop Multiple Vulnerabilities (April 2017 CPU) (SWEET32)");
      script_summary(english:"Checks the version of Oracle Secure Global Desktop.");
    
      script_set_attribute(attribute:"synopsis", value:
    "An application installed on the remote host is affected by multiple
    vulnerabilities.");
      script_set_attribute(attribute:"description", value:
    "The version of Oracle Secure Global Desktop installed on the remote
    host is 4.71, 5.2, or 5.3 and is missing a security patch from the
    April 2017 Critical Patch Update (CPU). It is, therefore, affected by
    multiple vulnerabilities :
    
      - An integer overflow condition exists in the Window System
        (X11) subcomponent in multiple functions in X.Org libExt
        due to improper validation of user-supplied input when
        calculating the amount of memory required to handle
        return data. An unauthenticated, remote attacker can
        exploit this to cause a denial of service condition or
        the execution of arbitrary code. Note that this issue
        only affects version 4.71. (CVE-2013-1982)
    
      - An integer overflow condition exists in X.Org libXfixes
        in the XFixesGetCursorImage() function when handling
        large cursor dimensions or name lengths due to improper
        validation of user-supplied input. An unauthenticated,
        remote attacker can exploit this to cause a denial of
        service condition or the execution of arbitrary code.
        (CVE-2013-1983)
    
      - An integer overflow condition exists within multiple
        functions in X.Org libXi due to improper validation of
        user-supplied input when calculating the amount of
        memory needed to handle return data. An unauthenticated,
        remote attacker can exploit this to cause a denial of
        service condition or the execution of arbitrary code.
        (CVE-2013-1984)
    
      - An integer overflow condition exists in X.Org
        libXinerama in the XineramaQueryScreens() function due
        to improper validation of user-supplied input when
        calculating the amount of memory needed to handle return
        data. An unauthenticated, remote attacker can exploit
        this to cause a denial of service condition or the
        execution of arbitrary code. (CVE-2013-1985)
    
      - An integer overflow condition exists in multiple
        functions in X.Org libXrandr due to improper validation
        of user-supplied input when calculating the amount of
        memory needed to handle return data. An unauthenticated,
        remote attacker can exploit this to cause a denial of
        service condition or the execution of arbitrary code.
        (CVE-2013-1986)
    
      - An integer overflow condition exists in multiple
        functions in X.Org libXrender due to improper validation
        of user-supplied input when calculating the amount of
        memory needed to handle return data. An unauthenticated,
        remote attacker can exploit this to cause a denial of
        service condition or the execution of arbitrary code.
        (CVE-2013-1987)
    
      - An overflow condition exists in X.Org libXi in the
        XListInputDevices() function, related to an unexpected
        sign extension, due to improper checking of the amount
        of memory needed to handle returned data when converting
        smaller integer types to larger ones. An
        unauthenticated, remote attacker can exploit this to
        cause a denial of service condition or the execution of
        arbitrary code. (CVE-2013-1995)
    
      - An overflow condition exists within multiple functions
        in X.Org LibXi due to improper validation of
        user-supplied input. An unauthenticated, remote attacker
        can exploit this, via a specially crafted length or
        index, to cause a denial of service condition or the
        execution of arbitrary code. (CVE-2013-1998)
    
      - An overflow condition exists in X.Org LibXt in the
        _XtResourceConfigurationEH() function due to improper
        validation of user-supplied input. An unauthenticated,
        remote attacker can exploit this, via a specially
        crafted length or index, to cause a denial of service
        condition or the execution of arbitrary code.
        (CVE-2013-2002)
    
      - An integer overflow condition exists in X.Org libXcursor
        in the  _XcursorFileHeaderCreate() function due to
        improper validation of user-supplied input. An
        unauthenticated, remote attacker can exploit this, via
        a specially crafted file, to cause a denial of service
        condition or the execution of arbitrary code.
        (CVE-2013-2003)
    
      - An uninitialized pointer flaw exists within multiple
        functions in X.Org LibXt due to a failure to check for
        proper initialization of pointers. An unauthenticated,
        remote attacker can exploit this to corrupt memory,
        resulting in a denial of service condition or the
        possible execution of arbitrary code. (CVE-2013-2005)
    
      - A flaw exists in the Application Server subcomponent
        (Apache Tomcat) due to a failure to process passwords
        when they are paired with non-existent usernames. An
        authenticated, remote attacker can exploit this, via a
        timing attack, to enumerate user account names.
        (CVE-2016-0762)
    
      - Multiple integer overflow conditions exist in s3_srvr.c,
        ssl_sess.c, and t1_lib.c due to improper use of pointer
        arithmetic for heap-buffer boundary checks. An
        unauthenticated, remote attacker can exploit these to
        cause a denial of service. (CVE-2016-2177)
    
      - An information disclosure vulnerability exists in the
        dsa_sign_setup() function in dsa_ossl.c due to a failure
        to properly ensure the use of constant-time operations.
        An unauthenticated, remote attacker can exploit this,
        via a timing side-channel attack, to disclose DSA key
        information. (CVE-2016-2178)
    
      - A denial of service vulnerability exists in the DTLS
        implementation due to a failure to properly restrict the
        lifetime of queue entries associated with unused
        out-of-order messages. An unauthenticated, remote
        attacker can exploit this, by maintaining multiple
        crafted DTLS sessions simultaneously, to exhaust memory.
        (CVE-2016-2179)
    
      - An out-of-bounds read error exists in the X.509 Public
        Key Infrastructure Time-Stamp Protocol (TSP)
        implementation. An unauthenticated, remote attacker can
        exploit this, via a crafted time-stamp file that is
        mishandled by the 'openssl ts' command, to cause a
        denial of service or to disclose sensitive information.
        (CVE-2016-2180)
    
      - A denial of service vulnerability exists in the
        Anti-Replay feature in the DTLS implementation due to
        improper handling of epoch sequence numbers in records.
        An unauthenticated, remote attacker can exploit this,
        via spoofed DTLS records, to cause legitimate packets to
        be dropped. (CVE-2016-2181)
    
      - An overflow condition exists in the BN_bn2dec() function
        in bn_print.c due to improper validation of
        user-supplied input when handling BIGNUM values. An
        unauthenticated, remote attacker can exploit this to
        crash the process. (CVE-2016-2182)
    
      - A vulnerability exists, known as SWEET32, in the 3DES
        and Blowfish algorithms due to the use of weak 64-bit
        block ciphers by default. A man-in-the-middle attacker
        who has sufficient resources can exploit this
        vulnerability, via a 'birthday' attack, to detect a
        collision that leaks the XOR between the fixed secret
        and a known plaintext, allowing the disclosure of the
        secret text, such as secure HTTPS cookies, and possibly
        resulting in the hijacking of an authenticated session.
        (CVE-2016-2183)
    
      - A flaw exists in the Core subcomponent, specifically in
        the libcurl library, due to improper validation of TLS
        certificates. An authenticated, remote attacker with the
        ability to intercept network traffic can exploit this
        issue to disclose or manipulate transmitted data by
        spoofing the TLS/SSL server using a certificate that
        appears valid. Note that this issue only affects
        versions 5.2 and 5.3. (CVE-2016-3739)
    
      - A flaw exists in cURL and libcurl when loading dynamic
        link library (DLL) files security.dll, secur32.dll, or
        ws2_32.dll due searching an insecure path which may not
        be trusted or under user control. A local attacker can
        exploit this, via a Trojan DLL file placed in the search
        path, to execute arbitrary code with the privileges of
        the user running the program. (CVE-2016-4802)
    
      - A security bypass vulnerability exists in Apache Tomcat
        due to an unspecified flaw related to web applications.
        A local attacker can exploit this, via a utility method
        that is available to web applications, to bypass a
        configured SecurityManager. (CVE-2016-5018)
    
      - An out-of-bounds access error exists in the Window
        System (X11) subcomponent, specifically in the
        XvQueryAdaptors() function in file Xv.c, when handling
        server responses. An authenticated, remote attacker can
        exploit this to impact confidentiality, integrity, and
        availability. (CVE-2016-5407)
    
      - A use-after-free error exists in cURL and libcurl within
        file lib/vtls/vtls.c due to the program attempting to
        resume TLS sessions even if the client certificate
        fails. An unauthenticated, remote attacker can exploit
        this to bypass validation mechanisms, allowing the
        attacker to possibly control which connection is used.
        (CVE-2016-5419)
    
      - A flaw exists in cURL and libcurl in the
        Curl_ssl_config_matches() function within file
        lib/vtls/vtls.c due to the program reusing TLS
        connections with different client certificates. An
        unauthenticated, remote attacker can exploit this to
        disclose sensitive cross-realm information.
        (CVE-2016-5420)
    
      - A use-after-free error exists in cURL and libcurl in
        in the close_all_connections() function within file
        lib/multi.c due to connection pointers not being
        properly cleared. An unauthenticated, remote attacker
        can exploit this to have an unspecified impact on
        confidentiality, integrity, and availability.
        (CVE-2016-5421)
    
      - A flaw exists in the tls_decrypt_ticket() function
        in t1_lib.c due to improper handling of ticket HMAC
        digests. An unauthenticated, remote attacker can exploit
        this, via a ticket that is too short, to crash the
        process, resulting in a denial of service.
        (CVE-2016-6302)
    
      - An integer overflow condition exists in the
        MDC2_Update() function in mdc2dgst.c due to improper
        validation of user-supplied input. An unauthenticated,
        remote attacker can exploit this to cause a heap-based
        buffer overflow, resulting in a denial of service
        condition or possibly the execution of arbitrary code.
        (CVE-2016-6303)
    
      - A flaw exists in the ssl_parse_clienthello_tlsext()
        function in t1_lib.c due to improper handling of overly
        large OCSP Status Request extensions from clients. An
        unauthenticated, remote attacker can exploit this, via
        large OCSP Status Request extensions, to exhaust memory
        resources, resulting in a denial of service condition.
        (CVE-2016-6304)
    
      - A flaw exists in the SSL_peek() function in
        rec_layer_s3.c due to improper handling of empty
        records. An unauthenticated, remote attacker can exploit
        this, by triggering a zero-length record in an SSL_peek
        call, to cause an infinite loop, resulting in a denial
        of service condition. (CVE-2016-6305)
    
      - An out-of-bounds read error exists in the certificate
        parser that allows an unauthenticated, remote attacker
        to cause a denial of service via crafted certificate
        operations. (CVE-2016-6306)
    
      - A denial of service vulnerability exists in the
        state-machine implementation due to a failure to check
        for an excessive length before allocating memory. An
        unauthenticated, remote attacker can exploit this, via a
        crafted TLS message, to exhaust memory resources.
        (CVE-2016-6307)
    
      - A denial of service vulnerability exists in the DTLS
        implementation due to improper handling of excessively
        long DTLS messages. An unauthenticated, remote attacker
        can exploit this, via a crafted DTLS message, to exhaust
        available memory resources. (CVE-2016-6308)
    
      - A flaw exists in Apache Tomcat within SecurityManager
        due to improper restriction of access to system
        properties by the configuration files system property
        replacement feature. A local attacker can exploit this,
        via a crafted web application, to bypass SecurityManager
        restrictions and disclose system properties.
        (CVE-2016-6794)
    
      - A flaw exists in Apache Tomcat that allows a local
        attacker to bypass a configured SecurityManager by
        changing the configuration parameters for the JSP
        Servlet. (CVE-2016-6796)
    
      - A flaw exists in Apache Tomcat due to a failure to limit
        web application access to global JNDI resources. A local
        attacker can exploit this to gain unauthorized access to
        resources. (CVE-2016-6797)
    
      - A flaw exists in Apache Tomcat when handling request
        lines containing certain invalid characters. An
        unauthenticated, remote attacker can exploit this to
        conduct HTTP response splitting attacks by injecting
        additional headers into responses. (CVE-2016-6816)
    
      - An infinite loop condition exists in Apache Tomcat in
        the HTTP/2 parser when handling overly large headers. An
        unauthenticated, remote attacker can exploit this, via a
        specially crafted request, to cause a denial of service
        condition. (CVE-2016-6817)
    
      - A carry propagation error exists in the
        Broadwell-specific Montgomery multiplication procedure
        when handling input lengths divisible by but longer than
        256 bits. This can result in transient authentication
        and key negotiation failures or reproducible erroneous
        outcomes of public-key operations with specially crafted
        input. A man-in-the-middle attacker can possibly exploit
        this issue to compromise ECDH key negotiations that
        utilize Brainpool P-512 curves. (CVE-2016-7055)
    
      - A flaw exists in cURL in the Curl_cookie_init() function
        within file lib/cookie.c when handling cookies. An
        unauthenticated, remote attacker can exploit this to
        inject new cookies for arbitrary domains.
        (CVE-2016-8615)
    
      - A flaw exists in cURL in the ConnectionExists() function
        within file lib/url.c when checking credentials supplied
        for reused connections due to the comparison being
        case-insensitive. An unauthenticated, remote attacker
        can exploit this to authenticate without knowing the
        proper case of the username and password.
        (CVE-2016-8616)
    
      - An integer overflow condition exists in cURL in the
        base64_encode() function within file lib/base64.c due to
        improper validation of certain input. An
        unauthenticated, remote attacker can exploit this to
        cause a denial of service condition or the execution of
        arbitrary code. (CVE-2016-8617)
    
      - A denial of service vulnerability exists in cURL in the
        alloc_addbyter() function within file lib/mprintf.c due
        to improper validation of overly long input when it is
        supplied to the curl_maprintf() API method. An
        unauthenticated, remote attacker can exploit this to
        free already freed memory and thereby crash the program.
        (CVE-2016-8618)
    
      - A double-free error exists in cURL in the read_data()
        function within file lib/security.c when handling
        Kerberos authentication. An unauthenticated, remote
        attacker can exploit this to free already freed memory,
        resulting in an unspecified impact on confidentiality,
        integrity, and availability. (CVE-2016-8619)
    
      - An out-of-bounds access error exists in cURL in file
        tool_urlglob.c within the globbing feature. An
        unauthenticated, remote attacker can exploit this to
        disclose memory contents or execute arbitrary code.
        (CVE-2016-8620)
    
      - An out-of-bounds error exists in cURL in the parsedate()
        function within file lib/parsedate.c when handling
        dates. An unauthenticated, remote attacker can exploit
        this to disclose memory contents or cause a denial of
        service condition. (CVE-2016-8621)
    
      - An integer truncation error exists in cURL in the
        curl_easy_unescape() function within file lib/escape.c
        when handling overly large URLs. An unauthenticated,
        remote attacker can exploit this to cause a denial of
        service condition or the execution of arbitrary code.
        (CVE-2016-8622)
    
      - A use-after-free error exists in cURL within file
        lib/cookie.c when handling shared cookies. An
        unauthenticated, remote attacker can exploit this to
        disclose memory contents. (CVE-2016-8623)
    
      - A flaw exists in cURL in the parseurlandfillconn()
        function within file lib/url.c when parsing the
        authority component of a URL with the host name part
        ending in a '#' character. An unauthenticated, remote
        attacker can exploit this to establish a connection to
        a different host than intended. (CVE-2016-8624)
    
      - A flaw exists in cURL within International Domain Names
        (IDNA) handling when translating domain names to puny
        code for DNS resolving due to using the outdated IDNA
        2003 standard instead of the IDNA 2008 standard, which
        can result in incorrect translation of a domain name.
        An unauthenticated, remote attacker can exploit this to
        cause network traffic to be redirected to a different
        host than intended. (CVE-2016-8625)
    
      - A flaw exists in Apache Tomcat within the
        catalina/mbeans/JmxRemoteLifecycleListener.java class
        that is triggered during the deserialization of Java
        objects. An unauthenticated, remote attacker can exploit
        this to execute arbitrary code. (CVE-2016-8735)
    
      - A flaw exists in the Web Server component (Apache HTTP
        Server) when handling whitespace patterns in User-Agent
        headers. An authenticated, remote attacker can exploit
        this, via a specially crafted User-Agent header, to
        cause incorrect processing of sequences of requests,
        resulting in incorrectly interpreting responses,
        polluting the cache, or disclosing content from one
        request to a second downstream user-agent.
        (CVE-2016-8743)
    
      - A NULL pointer dereference flaw exists within file
        ssl/statem/statem_clnt.c when handling parameters for
        the DHE or ECDHE key exchanges. An unauthenticated,
        remote attacker can exploit this, via specially crafted
        parameters, to cause a denial of service condition.
        (CVE-2017-3730)
    
      - A out-of-bounds read error exists exists in the Core
        subcomponent, specifically in OpenSSL, when handling
        packets using the CHACHA20/POLY1305 or RC4-MD5 ciphers.
        An unauthenticated, remote attacker can exploit this,
        via specially crafted truncated packets, to cause a
        denial of service condition. (CVE-2017-3731)
    
      - A carry propagating error exists in the x86_64
        Montgomery squaring implementation that may cause the
        BN_mod_exp() function to produce incorrect results. An
        unauthenticated, remote attacker with sufficient
        resources can exploit this to obtain sensitive
        information regarding private keys. Note that this issue
        is very similar to CVE-2015-3193. Moreover, the attacker
        would additionally need online access to an unpatched
        system using the target private key in a scenario with
        persistent DH parameters and a private key that is
        shared between multiple clients. For example, this can
        occur by default in OpenSSL DHE based SSL/TLS cipher
        suites. (CVE-2017-3732)
    
    Note that Nessus has not tested for these issues but has instead
    relied only on the application's self-reported version number.");
      # http://www.oracle.com/technetwork/security-advisory/cpuapr2017-3236618.html
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?623d2c22");
      script_set_attribute(attribute:"see_also", value:"https://sweet32.info/");
      script_set_attribute(attribute:"see_also", value:"https://www.openssl.org/blog/blog/2016/08/24/sweet32/");
      script_set_attribute(attribute:"solution", value:
    "Apply the appropriate patch according to the April 2017 Oracle
    Critical Patch Update advisory.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
      script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
      script_set_cvss3_temporal_vector("CVSS:3.0/E:P/RL:O/RC:C");
      script_set_attribute(attribute:"cvss_score_source", value:"CVE-2016-8735");
    
      script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"true");
      script_set_attribute(attribute:"in_the_news", value:"true");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2013/05/23");
      script_set_attribute(attribute:"patch_publication_date", value:"2017/04/18");
      script_set_attribute(attribute:"plugin_publication_date", value:"2017/05/02");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:oracle:virtualization_secure_global_desktop");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"Misc.");
    
      script_copyright(english:"This script is Copyright (C) 2017-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
    
      script_dependencies("oracle_secure_global_desktop_installed.nbin");
      script_require_keys("Host/Oracle_Secure_Global_Desktop/Version");
    
      exit(0);
    }
    
    include("audit.inc");
    include("global_settings.inc");
    include("misc_func.inc");
    
    app = "Oracle Secure Global Desktop";
    version = get_kb_item_or_exit("Host/Oracle_Secure_Global_Desktop/Version");
    
    # this check is for Oracle Secure Global Desktop packages
    # built for Linux platform
    uname = get_kb_item_or_exit("Host/uname");
    if ("Linux" >!< uname) audit(AUDIT_OS_NOT, "Linux");
    
    fix_required = NULL;
    
    if (version =~ "^5\.30($|\.)") fix_required = 'Patch_53p1';
    else if (version =~ "^5\.20($|\.)") fix_required = 'Patch_52p8';
    else if (version =~ "^4\.71($|\.)") fix_required = 'Patch_471p11';
    
    if (isnull(fix_required)) audit(AUDIT_INST_VER_NOT_VULN, "Oracle Secure Global Desktop", version);
    
    patches = get_kb_list("Host/Oracle_Secure_Global_Desktop/Patches");
    
    patched = FALSE;
    foreach patch (patches)
    {
      if (patch == fix_required)
      {
        patched = TRUE;
        break;
      }
    }
    
    if (patched) audit(AUDIT_INST_VER_NOT_VULN, app, version + ' (with ' + fix_required + ')');
    
    report = '\n  Installed version : ' + version +
               '\n  Patch required    : ' + fix_required +
               '\n';
    security_report_v4(port:0, extra:report, severity:SECURITY_HOLE);
    
  • NASL familySuSE Local Security Checks
    NASL idOPENSUSE-2013-489.NASL
    descriptionThis update of libXrender fixes several integer overflow issues. - U_0001-integer-overflow-in-XRenderQueryFilters-CVE-2013- 198.patch, U_0002-integer-overflow-in-XRenderQueryFormats-CVE-2013- 198.patch, U_0003-integer-overflow-in-XRenderQueryPictIndexValues-C VE-.patch - integer overflow in XRenderQueryFilters(), XRenderQueryFormats() and XRenderQueryPictIndexValues() [CVE-2013-1987] (bnc#821669, bnc#815451)
    last seen2020-06-05
    modified2014-06-13
    plugin id75030
    published2014-06-13
    reporterThis script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/75030
    titleopenSUSE Security Update : libXrender (openSUSE-SU-2013:1011-1)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were
    # extracted from openSUSE Security Update openSUSE-2013-489.
    #
    # The text description of this plugin is (C) SUSE LLC.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(75030);
      script_version("1.5");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/06/04");
    
      script_cve_id("CVE-2013-1987");
      script_bugtraq_id(60132);
    
      script_name(english:"openSUSE Security Update : libXrender (openSUSE-SU-2013:1011-1)");
      script_summary(english:"Check for the openSUSE-2013-489 patch");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote openSUSE host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "This update of libXrender fixes several integer overflow issues.
    
      -
        U_0001-integer-overflow-in-XRenderQueryFilters-CVE-2013-
        198.patch,
        U_0002-integer-overflow-in-XRenderQueryFormats-CVE-2013-
        198.patch,
        U_0003-integer-overflow-in-XRenderQueryPictIndexValues-C
        VE-.patch
    
      - integer overflow in XRenderQueryFilters(),
        XRenderQueryFormats() and XRenderQueryPictIndexValues()
        [CVE-2013-1987] (bnc#821669, bnc#815451)"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.novell.com/show_bug.cgi?id=815451"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.novell.com/show_bug.cgi?id=821669"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://lists.opensuse.org/opensuse-updates/2013-06/msg00141.html"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected libXrender packages."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
      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:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libXrender-debugsource");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libXrender-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libXrender-devel-32bit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libXrender1");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libXrender1-32bit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libXrender1-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libXrender1-debuginfo-32bit");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:novell:opensuse:12.2");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:novell:opensuse:12.3");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2013/06/04");
      script_set_attribute(attribute:"plugin_publication_date", value:"2014/06/13");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"SuSE Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/SuSE/release", "Host/SuSE/rpm-list", "Host/cpu");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/SuSE/release");
    if (isnull(release) || release =~ "^(SLED|SLES)") audit(AUDIT_OS_NOT, "openSUSE");
    if (release !~ "^(SUSE12\.2|SUSE12\.3)$") audit(AUDIT_OS_RELEASE_NOT, "openSUSE", "12.2 / 12.3", release);
    if (!get_kb_item("Host/SuSE/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    ourarch = get_kb_item("Host/cpu");
    if (!ourarch) audit(AUDIT_UNKNOWN_ARCH);
    if (ourarch !~ "^(i586|i686|x86_64)$") audit(AUDIT_ARCH_NOT, "i586 / i686 / x86_64", ourarch);
    
    flag = 0;
    
    if ( rpm_check(release:"SUSE12.2", reference:"libXrender-debugsource-0.9.7-2.4.1") ) flag++;
    if ( rpm_check(release:"SUSE12.2", reference:"libXrender-devel-0.9.7-2.4.1") ) flag++;
    if ( rpm_check(release:"SUSE12.2", reference:"libXrender1-0.9.7-2.4.1") ) flag++;
    if ( rpm_check(release:"SUSE12.2", reference:"libXrender1-debuginfo-0.9.7-2.4.1") ) flag++;
    if ( rpm_check(release:"SUSE12.2", cpu:"x86_64", reference:"libXrender-devel-32bit-0.9.7-2.4.1") ) flag++;
    if ( rpm_check(release:"SUSE12.2", cpu:"x86_64", reference:"libXrender1-32bit-0.9.7-2.4.1") ) flag++;
    if ( rpm_check(release:"SUSE12.2", cpu:"x86_64", reference:"libXrender1-debuginfo-32bit-0.9.7-2.4.1") ) flag++;
    if ( rpm_check(release:"SUSE12.3", reference:"libXrender-debugsource-0.9.7-4.4.1") ) flag++;
    if ( rpm_check(release:"SUSE12.3", reference:"libXrender-devel-0.9.7-4.4.1") ) flag++;
    if ( rpm_check(release:"SUSE12.3", reference:"libXrender1-0.9.7-4.4.1") ) flag++;
    if ( rpm_check(release:"SUSE12.3", reference:"libXrender1-debuginfo-0.9.7-4.4.1") ) flag++;
    if ( rpm_check(release:"SUSE12.3", cpu:"x86_64", reference:"libXrender-devel-32bit-0.9.7-4.4.1") ) flag++;
    if ( rpm_check(release:"SUSE12.3", cpu:"x86_64", reference:"libXrender1-32bit-0.9.7-4.4.1") ) flag++;
    if ( rpm_check(release:"SUSE12.3", cpu:"x86_64", reference:"libXrender1-debuginfo-32bit-0.9.7-4.4.1") ) flag++;
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get());
      else security_warning(0);
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "libXrender-debugsource / libXrender-devel / libXrender-devel-32bit / etc");
    }
    
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-2677.NASL
    descriptionIlja van Sprundel of IOActive discovered several security issues in multiple components of the X.org graphics stack and the related libraries: Various integer overflows, sign handling errors in integer conversions, buffer overflows, memory corruption and missing input sanitising may lead to privilege escalation or denial of service.
    last seen2020-03-17
    modified2013-05-24
    plugin id66561
    published2013-05-24
    reporterThis script is Copyright (C) 2013-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/66561
    titleDebian DSA-2677-1 : libxrender - several vulnerabilities
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Debian Security Advisory DSA-2677. The text 
    # itself is copyright (C) Software in the Public Interest, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(66561);
      script_version("1.8");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/03/12");
    
      script_cve_id("CVE-2013-1987");
      script_xref(name:"DSA", value:"2677");
    
      script_name(english:"Debian DSA-2677-1 : libxrender - several vulnerabilities");
      script_summary(english:"Checks dpkg output for the updated package");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Debian host is missing a security-related update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Ilja van Sprundel of IOActive discovered several security issues in
    multiple components of the X.org graphics stack and the related
    libraries: Various integer overflows, sign handling errors in integer
    conversions, buffer overflows, memory corruption and missing input
    sanitising may lead to privilege escalation or denial of service."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://packages.debian.org/source/squeeze/libxrender"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://packages.debian.org/source/wheezy/libxrender"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://www.debian.org/security/2013/dsa-2677"
      );
      script_set_attribute(
        attribute:"solution", 
        value:
    "Upgrade the libxrender packages.
    
    For the oldstable distribution (squeeze), this problem has been fixed
    in version 1:0.9.6-1+squeeze1.
    
    For the stable distribution (wheezy), this problem has been fixed in
    version 1:0.9.7-1+deb7u1."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
      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:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:libxrender");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:debian:debian_linux:6.0");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:debian:debian_linux:7.0");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2013/05/23");
      script_set_attribute(attribute:"plugin_publication_date", value:"2013/05/24");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2013-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Debian Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/Debian/release", "Host/Debian/dpkg-l");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("debian_package.inc");
    
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    if (!get_kb_item("Host/Debian/release")) audit(AUDIT_OS_NOT, "Debian");
    if (!get_kb_item("Host/Debian/dpkg-l")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    
    flag = 0;
    if (deb_check(release:"6.0", prefix:"libxrender-dev", reference:"1:0.9.6-1+squeeze1")) flag++;
    if (deb_check(release:"6.0", prefix:"libxrender1", reference:"1:0.9.6-1+squeeze1")) flag++;
    if (deb_check(release:"6.0", prefix:"libxrender1-dbg", reference:"1:0.9.6-1+squeeze1")) flag++;
    if (deb_check(release:"6.0", prefix:"libxrender1-udeb", reference:"1:0.9.6-1+squeeze1")) flag++;
    if (deb_check(release:"7.0", prefix:"libxrender-dev", reference:"1:0.9.7-1+deb7u1")) flag++;
    if (deb_check(release:"7.0", prefix:"libxrender1", reference:"1:0.9.7-1+deb7u1")) flag++;
    if (deb_check(release:"7.0", prefix:"libxrender1-dbg", reference:"1:0.9.7-1+deb7u1")) flag++;
    if (deb_check(release:"7.0", prefix:"libxrender1-udeb", reference:"1:0.9.7-1+deb7u1")) flag++;
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:deb_report_get());
      else security_warning(0);
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");
    
  • NASL familyFreeBSD Local Security Checks
    NASL idFREEBSD_PKG_2EEBEBFFCD3B11E28F09001B38C3836C.NASL
    descriptionfreedesktop.org reports : Ilja van Sprundel, a security researcher with IOActive, has discovered a large number of issues in the way various X client libraries handle the responses they receive from servers, and has worked with X.Org
    last seen2020-06-01
    modified2020-06-02
    plugin id66798
    published2013-06-05
    reporterThis script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/66798
    titleFreeBSD : xorg -- protocol handling issues in X Window System client libraries (2eebebff-cd3b-11e2-8f09-001b38c3836c)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from the FreeBSD VuXML database :
    #
    # Copyright 2003-2019 Jacques Vidrine and contributors
    #
    # Redistribution and use in source (VuXML) and 'compiled' forms (SGML,
    # HTML, PDF, PostScript, RTF and so forth) with or without modification,
    # are permitted provided that the following conditions are met:
    # 1. Redistributions of source code (VuXML) must retain the above
    #    copyright notice, this list of conditions and the following
    #    disclaimer as the first lines of this file unmodified.
    # 2. Redistributions in compiled form (transformed to other DTDs,
    #    published online in any format, converted to PDF, PostScript,
    #    RTF and other formats) must reproduce the above copyright
    #    notice, this list of conditions and the following disclaimer
    #    in the documentation and/or other materials provided with the
    #    distribution.
    # 
    # THIS DOCUMENTATION IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS"
    # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
    # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS
    # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
    # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
    # OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
    # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
    # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
    # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS DOCUMENTATION,
    # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(66798);
      script_version("1.6");
      script_cvs_date("Date: 2019/07/10 16:04:13");
    
      script_cve_id("CVE-2013-1981", "CVE-2013-1982", "CVE-2013-1983", "CVE-2013-1984", "CVE-2013-1985", "CVE-2013-1986", "CVE-2013-1987", "CVE-2013-1988", "CVE-2013-1989", "CVE-2013-1990", "CVE-2013-1991", "CVE-2013-1992", "CVE-2013-1993", "CVE-2013-1994", "CVE-2013-1995", "CVE-2013-1996", "CVE-2013-1997", "CVE-2013-1998", "CVE-2013-1999", "CVE-2013-2000", "CVE-2013-2001", "CVE-2013-2002", "CVE-2013-2003", "CVE-2013-2004", "CVE-2013-2005", "CVE-2013-2062", "CVE-2013-2063", "CVE-2013-2064", "CVE-2013-2066");
    
      script_name(english:"FreeBSD : xorg -- protocol handling issues in X Window System client libraries (2eebebff-cd3b-11e2-8f09-001b38c3836c)");
      script_summary(english:"Checks for updated packages in pkg_info output");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:
    "The remote FreeBSD host is missing one or more security-related
    updates."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "freedesktop.org reports :
    
    Ilja van Sprundel, a security researcher with IOActive, has discovered
    a large number of issues in the way various X client libraries handle
    the responses they receive from servers, and has worked with X.Org's
    security team to analyze, confirm, and fix these issues.
    
    Most of these issues stem from the client libraries trusting the
    server to send correct protocol data, and not verifying that the
    values will not overflow or cause other damage. Most of the time X
    clients & servers are run by the same user, with the server more
    privileged from the clients, so this is not a problem, but there are
    scenarios in which a privileged client can be connected to an
    unprivileged server, for instance, connecting a setuid X client (such
    as a screen lock program) to a virtual X server (such as Xvfb or
    Xephyr) which the user has modified to return invalid data,
    potentially allowing the user to escalate their privileges.
    
    The vulnerabilities include :
    
    Integer overflows calculating memory needs for replies.
    
    Sign extension issues calculating memory needs for replies.
    
    Buffer overflows due to not validating length or offset values in
    replies.
    
    Integer overflows parsing user-specified files.
    
    Unbounded recursion parsing user-specified files.
    
    Memory corruption due to unchecked return values."
      );
      # https://vuxml.freebsd.org/freebsd/2eebebff-cd3b-11e2-8f09-001b38c3836c.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?ed736d9f"
      );
      script_set_attribute(attribute:"solution", value:"Update the affected packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:freebsd:freebsd:libFS");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:freebsd:freebsd:libGL");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:freebsd:freebsd:libX11");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:freebsd:freebsd:libXcursor");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:freebsd:freebsd:libXext");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:freebsd:freebsd:libXfixes");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:freebsd:freebsd:libXi");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:freebsd:freebsd:libXinerama");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:freebsd:freebsd:libXp");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:freebsd:freebsd:libXrandr");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:freebsd:freebsd:libXrender");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:freebsd:freebsd:libXres");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:freebsd:freebsd:libXt");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:freebsd:freebsd:libXtst");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:freebsd:freebsd:libXv");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:freebsd:freebsd:libXvMC");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:freebsd:freebsd:libXxf86dga");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:freebsd:freebsd:libXxf86vm");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:freebsd:freebsd:libdmx");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:freebsd:freebsd:libxcb");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:freebsd:freebsd:xf86-video-openchrome");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:freebsd:freebsd");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2013/05/23");
      script_set_attribute(attribute:"patch_publication_date", value:"2013/06/04");
      script_set_attribute(attribute:"plugin_publication_date", value:"2013/06/05");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"FreeBSD Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/FreeBSD/release", "Host/FreeBSD/pkg_info");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("freebsd_package.inc");
    
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    if (!get_kb_item("Host/FreeBSD/release")) audit(AUDIT_OS_NOT, "FreeBSD");
    if (!get_kb_item("Host/FreeBSD/pkg_info")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    
    flag = 0;
    
    if (pkg_test(save_report:TRUE, pkg:"libX11<1.6.0")) flag++;
    if (pkg_test(save_report:TRUE, pkg:"libXext<1.3.2")) flag++;
    if (pkg_test(save_report:TRUE, pkg:"libXfixes<5.0.1")) flag++;
    if (pkg_test(save_report:TRUE, pkg:"libXi<1.7_1")) flag++;
    if (pkg_test(save_report:TRUE, pkg:"libXinerama<1.1.3")) flag++;
    if (pkg_test(save_report:TRUE, pkg:"libXp<1.0.2")) flag++;
    if (pkg_test(save_report:TRUE, pkg:"libXrandr<1.4.1")) flag++;
    if (pkg_test(save_report:TRUE, pkg:"libXrender<0.9.7_1")) flag++;
    if (pkg_test(save_report:TRUE, pkg:"libXres<1.0.7")) flag++;
    if (pkg_test(save_report:TRUE, pkg:"libXtst<1.2.2")) flag++;
    if (pkg_test(save_report:TRUE, pkg:"libXv<1.0.8")) flag++;
    if (pkg_test(save_report:TRUE, pkg:"libXvMC<1.0.7_1")) flag++;
    if (pkg_test(save_report:TRUE, pkg:"libXxf86dga<1.1.4")) flag++;
    if (pkg_test(save_report:TRUE, pkg:"libdmx<1.1.3")) flag++;
    if (pkg_test(save_report:TRUE, pkg:"libxcb<1.9.1")) flag++;
    if (pkg_test(save_report:TRUE, pkg:"libGL<7.6.1_4")) flag++;
    if (pkg_test(save_report:TRUE, pkg:"libGL>7.8.0<8.0.5_4")) flag++;
    if (pkg_test(save_report:TRUE, pkg:"xf86-video-openchrome<0.3.3")) flag++;
    if (pkg_test(save_report:TRUE, pkg:"libFS<1.0.5")) flag++;
    if (pkg_test(save_report:TRUE, pkg:"libXxf86vm<1.1.3")) flag++;
    if (pkg_test(save_report:TRUE, pkg:"libXt<1.1.4")) flag++;
    if (pkg_test(save_report:TRUE, pkg:"libXcursor<1.1.14")) flag++;
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:pkg_report_get());
      else security_warning(0);
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");
    
  • NASL familySolaris Local Security Checks
    NASL idSOLARIS11_XORG_20130924.NASL
    descriptionThe remote Solaris system is missing necessary patches to address security updates : - Integer overflow in X.org libXfixes 5.0 and earlier allows X servers to trigger allocation of insufficient memory and a buffer overflow via vectors related to the XFixesGetCursorImage function. (CVE-2013-1983) - Multiple integer overflows in X.org libXrandr 1.4.0 and earlier allow X servers to trigger allocation of insufficient memory and a buffer overflow via vectors related to the (1) XRRQueryOutputProperty and (2) XRRQueryProviderProperty functions. (CVE-2013-1986) - Multiple integer overflows in X.org libXrender 0.9.7 and earlier allow X servers to trigger allocation of insufficient memory and a buffer overflow via vectors related to the (1) XRenderQueryFilters, (2) XRenderQueryFormats, and (3) XRenderQueryPictIndexValues functions. (CVE-2013-1987) - Multiple integer overflows in X.org libXRes 1.0.6 and earlier allow X servers to trigger allocation of insufficient memory and a buffer overflow via vectors related to the (1) XResQueryClients and (2) XResQueryClientResources functions. (CVE-2013-1988) - Multiple integer overflows in X.org libXv 1.0.7 and earlier allow X servers to trigger allocation of insufficient memory and a buffer overflow via vectors related to the (1) XvQueryPortAttributes, (2) XvListImageFormats, and (3) XvCreateImage function. (CVE-2013-1989) - Multiple integer overflows in X.org libXvMC 1.0.7 and earlier allow X servers to trigger allocation of insufficient memory and a buffer overflow via vectors related to the (1) XvMCListSurfaceTypes and (2) XvMCListSubpictureTypes functions. (CVE-2013-1990) - Multiple integer overflows in X.org libdmx 1.1.2 and earlier allow X servers to trigger allocation of insufficient memory and a buffer overflow via vectors related to the (1) DMXGetScreenAttributes, (2) DMXGetWindowAttributes, and (3) DMXGetInputAttributes functions. (CVE-2013-1992) - Multiple integer overflows in X.org libGLX in Mesa 9.1.1 and earlier allow X servers to trigger allocation of insufficient memory and a buffer overflow via vectors related to the (1) XF86DRIOpenConnection and (2) XF86DRIGetClientDriverName functions. (CVE-2013-1993) - Buffer overflow in X.org libXvMC 1.0.7 and earlier allows X servers to cause a denial of service (crash) and possibly execute arbitrary code via crafted length or index values to the XvMCGetDRInfo function. (CVE-2013-1999) - Multiple buffer overflows in X.org libXxf86dga 1.1.3 and earlier allow X servers to cause a denial of service (crash) and possibly execute arbitrary code via crafted length or index values to the (1) XDGAQueryModes and (2) XDGASetMode functions. (CVE-2013-2000) - Buffer overflow in X.org libXxf86vm 1.1.2 and earlier allows X servers to cause a denial of service (crash) and possibly execute arbitrary code via crafted length or index values to the XF86VidModeGetGammaRamp function. (CVE-2013-2001) - Integer overflow in X.org libXcursor 1.1.13 and earlier allows X servers to trigger allocation of insufficient memory and a buffer overflow via vectors related to the _XcursorFileHeaderCreate function. (CVE-2013-2003) - Integer overflow in X.org libXtst 1.2.1 and earlier allows X servers to trigger allocation of insufficient memory and a buffer overflow via vectors related to the XRecordGetContext function. (CVE-2013-2063) - Integer overflow in X.org libxcb 1.9 and earlier allows X servers to trigger allocation of insufficient memory and a buffer overflow via vectors related to the read_packet function. (CVE-2013-2064) - Buffer overflow in X.org libXv 1.0.7 and earlier allows X servers to cause a denial of service (crash) and possibly execute arbitrary code via crafted length or index values to the XvQueryPortAttributes function. (CVE-2013-2066)
    last seen2020-06-01
    modified2020-06-02
    plugin id80819
    published2015-01-19
    reporterThis script is Copyright (C) 2015-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/80819
    titleOracle Solaris Third-Party Patch Update : xorg (multiple_vulnerabilities_in_x_org)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were
    # extracted from the Oracle Third Party software advisories.
    #
    include("compat.inc");
    
    if (description)
    {
      script_id(80819);
      script_version("1.2");
      script_cvs_date("Date: 2018/11/15 20:50:24");
    
      script_cve_id("CVE-2013-1983", "CVE-2013-1986", "CVE-2013-1987", "CVE-2013-1988", "CVE-2013-1989", "CVE-2013-1990", "CVE-2013-1992", "CVE-2013-1993", "CVE-2013-1999", "CVE-2013-2000", "CVE-2013-2001", "CVE-2013-2003", "CVE-2013-2063", "CVE-2013-2064", "CVE-2013-2066");
    
      script_name(english:"Oracle Solaris Third-Party Patch Update : xorg (multiple_vulnerabilities_in_x_org)");
      script_summary(english:"Check for the 'entire' version.");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:
    "The remote Solaris system is missing a security patch for third-party
    software."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "The remote Solaris system is missing necessary patches to address
    security updates :
    
      - Integer overflow in X.org libXfixes 5.0 and earlier
        allows X servers to trigger allocation of insufficient
        memory and a buffer overflow via vectors related to the
        XFixesGetCursorImage function. (CVE-2013-1983)
    
      - Multiple integer overflows in X.org libXrandr 1.4.0 and
        earlier allow X servers to trigger allocation of
        insufficient memory and a buffer overflow via vectors
        related to the (1) XRRQueryOutputProperty and (2)
        XRRQueryProviderProperty functions. (CVE-2013-1986)
    
      - Multiple integer overflows in X.org libXrender 0.9.7 and
        earlier allow X servers to trigger allocation of
        insufficient memory and a buffer overflow via vectors
        related to the (1) XRenderQueryFilters, (2)
        XRenderQueryFormats, and (3) XRenderQueryPictIndexValues
        functions. (CVE-2013-1987)
    
      - Multiple integer overflows in X.org libXRes 1.0.6 and
        earlier allow X servers to trigger allocation of
        insufficient memory and a buffer overflow via vectors
        related to the (1) XResQueryClients and (2)
        XResQueryClientResources functions. (CVE-2013-1988)
    
      - Multiple integer overflows in X.org libXv 1.0.7 and
        earlier allow X servers to trigger allocation of
        insufficient memory and a buffer overflow via vectors
        related to the (1) XvQueryPortAttributes, (2)
        XvListImageFormats, and (3) XvCreateImage function.
        (CVE-2013-1989)
    
      - Multiple integer overflows in X.org libXvMC 1.0.7 and
        earlier allow X servers to trigger allocation of
        insufficient memory and a buffer overflow via vectors
        related to the (1) XvMCListSurfaceTypes and (2)
        XvMCListSubpictureTypes functions. (CVE-2013-1990)
    
      - Multiple integer overflows in X.org libdmx 1.1.2 and
        earlier allow X servers to trigger allocation of
        insufficient memory and a buffer overflow via vectors
        related to the (1) DMXGetScreenAttributes, (2)
        DMXGetWindowAttributes, and (3) DMXGetInputAttributes
        functions. (CVE-2013-1992)
    
      - Multiple integer overflows in X.org libGLX in Mesa 9.1.1
        and earlier allow X servers to trigger allocation of
        insufficient memory and a buffer overflow via vectors
        related to the (1) XF86DRIOpenConnection and (2)
        XF86DRIGetClientDriverName functions. (CVE-2013-1993)
    
      - Buffer overflow in X.org libXvMC 1.0.7 and earlier
        allows X servers to cause a denial of service (crash)
        and possibly execute arbitrary code via crafted length
        or index values to the XvMCGetDRInfo function.
        (CVE-2013-1999)
    
      - Multiple buffer overflows in X.org libXxf86dga 1.1.3 and
        earlier allow X servers to cause a denial of service
        (crash) and possibly execute arbitrary code via crafted
        length or index values to the (1) XDGAQueryModes and (2)
        XDGASetMode functions. (CVE-2013-2000)
    
      - Buffer overflow in X.org libXxf86vm 1.1.2 and earlier
        allows X servers to cause a denial of service (crash)
        and possibly execute arbitrary code via crafted length
        or index values to the XF86VidModeGetGammaRamp function.
        (CVE-2013-2001)
    
      - Integer overflow in X.org libXcursor 1.1.13 and earlier
        allows X servers to trigger allocation of insufficient
        memory and a buffer overflow via vectors related to the
        _XcursorFileHeaderCreate function. (CVE-2013-2003)
    
      - Integer overflow in X.org libXtst 1.2.1 and earlier
        allows X servers to trigger allocation of insufficient
        memory and a buffer overflow via vectors related to the
        XRecordGetContext function. (CVE-2013-2063)
    
      - Integer overflow in X.org libxcb 1.9 and earlier allows
        X servers to trigger allocation of insufficient memory
        and a buffer overflow via vectors related to the
        read_packet function. (CVE-2013-2064)
    
      - Buffer overflow in X.org libXv 1.0.7 and earlier allows
        X servers to cause a denial of service (crash) and
        possibly execute arbitrary code via crafted length or
        index values to the XvQueryPortAttributes function.
        (CVE-2013-2066)"
      );
      # https://www.oracle.com/technetwork/topics/security/thirdparty-patch-map-1482893.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?4a913f44"
      );
      # https://blogs.oracle.com/sunsecurity/multiple-vulnerabilities-in-xorg
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?f5fab6fd"
      );
      script_set_attribute(attribute:"solution", value:"Upgrade to Solaris 11.1.8.4.0.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:oracle:solaris:11.1");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:solaris:xorg");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2013/09/24");
      script_set_attribute(attribute:"plugin_publication_date", value:"2015/01/19");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2015-2018 Tenable Network Security, Inc.");
      script_family(english:"Solaris Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/Solaris11/release", "Host/Solaris11/pkg-list");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("misc_func.inc");
    include("solaris.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/Solaris11/release");
    if (isnull(release)) audit(AUDIT_OS_NOT, "Solaris11");
    pkg_list = solaris_pkg_list_leaves();
    if (isnull (pkg_list)) audit(AUDIT_PACKAGE_LIST_MISSING, "Solaris pkg-list packages");
    
    if (empty_or_null(egrep(string:pkg_list, pattern:"^xorg$"))) audit(AUDIT_PACKAGE_NOT_INSTALLED, "xorg");
    
    flag = 0;
    
    if (solaris_check_release(release:"0.5.11-0.175.1.8.0.4.0", sru:"SRU 11.1.8.4.0") > 0) flag++;
    
    if (flag)
    {
      error_extra = 'Affected package : xorg\n' + solaris_get_report2();
      error_extra = ereg_replace(pattern:"version", replace:"OS version", string:error_extra);
      if (report_verbosity > 0) security_warning(port:0, extra:error_extra);
      else security_warning(0);
      exit(0);
    }
    else audit(AUDIT_PACKAGE_NOT_AFFECTED, "xorg");
    
  • NASL familySuSE Local Security Checks
    NASL idSUSE_11_XORG-X11-LIBXRENDER-130612.NASL
    descriptionThis update of xorg-x11-libXrender fixes several integer overflow issues. Bug 815451/821669 CVE-2013-1987
    last seen2020-06-05
    modified2013-07-30
    plugin id69115
    published2013-07-30
    reporterThis script is Copyright (C) 2013-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/69115
    titleSuSE 11.3 Security Update : xorg-x11-libXrender (SAT Patch Number 7939)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from SuSE 11 update information. The text itself is
    # copyright (C) Novell, Inc.
    #
    
    if (NASL_LEVEL < 3000) exit(0);
    
    include("compat.inc");
    
    if (description)
    {
      script_id(69115);
      script_version("1.3");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/06/04");
    
      script_cve_id("CVE-2013-1987");
    
      script_name(english:"SuSE 11.3 Security Update : xorg-x11-libXrender (SAT Patch Number 7939)");
      script_summary(english:"Checks rpm output for the updated packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote SuSE 11 host is missing one or more security updates."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "This update of xorg-x11-libXrender fixes several integer overflow
    issues.
    
    Bug 815451/821669 CVE-2013-1987"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.novell.com/show_bug.cgi?id=815451"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.novell.com/show_bug.cgi?id=821669"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://support.novell.com/security/cve/CVE-2013-1987.html"
      );
      script_set_attribute(attribute:"solution", value:"Apply SAT patch number 7939.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:suse_linux:11:xorg-x11-libXrender");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:suse_linux:11:xorg-x11-libXrender-32bit");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:novell:suse_linux:11");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2013/06/12");
      script_set_attribute(attribute:"plugin_publication_date", value:"2013/07/30");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2013-2020 Tenable Network Security, Inc.");
      script_family(english:"SuSE Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/cpu", "Host/SuSE/release", "Host/SuSE/rpm-list");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/SuSE/release");
    if (isnull(release) || release !~ "^(SLED|SLES)11") audit(AUDIT_OS_NOT, "SuSE 11");
    if (!get_kb_item("Host/SuSE/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if (cpu !~ "^i[3-6]86$" && "x86_64" >!< cpu && "s390x" >!< cpu) audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "SuSE 11", cpu);
    
    pl = get_kb_item("Host/SuSE/patchlevel");
    if (isnull(pl) || int(pl) != 3) audit(AUDIT_OS_NOT, "SuSE 11.3");
    
    
    flag = 0;
    if (rpm_check(release:"SLED11", sp:3, cpu:"i586", reference:"xorg-x11-libXrender-7.4-1.16.2")) flag++;
    if (rpm_check(release:"SLED11", sp:3, cpu:"x86_64", reference:"xorg-x11-libXrender-7.4-1.16.2")) flag++;
    if (rpm_check(release:"SLED11", sp:3, cpu:"x86_64", reference:"xorg-x11-libXrender-32bit-7.4-1.16.2")) flag++;
    if (rpm_check(release:"SLES11", sp:3, reference:"xorg-x11-libXrender-7.4-1.16.2")) flag++;
    if (rpm_check(release:"SLES11", sp:3, cpu:"s390x", reference:"xorg-x11-libXrender-32bit-7.4-1.16.2")) flag++;
    if (rpm_check(release:"SLES11", sp:3, cpu:"x86_64", reference:"xorg-x11-libXrender-32bit-7.4-1.16.2")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get());
      else security_warning(0);
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");
    
  • NASL familyCentOS Local Security Checks
    NASL idCENTOS_RHSA-2014-1436.NASL
    descriptionUpdated X11 client libraries packages that fix multiple security issues, several bugs, and add various enhancements are now available for Red Hat Enterprise Linux 6. Red Hat Product Security has rated this update as having Moderate security impact. Common Vulnerability Scoring System (CVSS) base scores, which give detailed severity ratings, are available for each vulnerability from the CVE links in the References section. The X11 (Xorg) libraries provide library routines that are used within all X Window applications. Multiple integer overflow flaws, leading to heap-based buffer overflows, were found in the way various X11 client libraries handled certain protocol data. An attacker able to submit invalid protocol data to an X11 server via a malicious X11 client could use either of these flaws to potentially escalate their privileges on the system. (CVE-2013-1981, CVE-2013-1982, CVE-2013-1983, CVE-2013-1984, CVE-2013-1985, CVE-2013-1986, CVE-2013-1987, CVE-2013-1988, CVE-2013-1989, CVE-2013-1990, CVE-2013-1991, CVE-2013-2003, CVE-2013-2062, CVE-2013-2064) Multiple array index errors, leading to heap-based buffer out-of-bounds write flaws, were found in the way various X11 client libraries handled data returned from an X11 server. A malicious X11 server could possibly use this flaw to execute arbitrary code with the privileges of the user running an X11 client. (CVE-2013-1997, CVE-2013-1998, CVE-2013-1999, CVE-2013-2000, CVE-2013-2001, CVE-2013-2002, CVE-2013-2066) A buffer overflow flaw was found in the way the XListInputDevices() function of X.Org X11
    last seen2020-06-01
    modified2020-06-02
    plugin id79182
    published2014-11-12
    reporterThis script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/79182
    titleCentOS 6 : libX11 / libXcursor / libXext / libXfixes / libXi / libXinerama / libXp / libXrandr / etc (CESA-2014:1436)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Red Hat Security Advisory RHSA-2014:1436 and 
    # CentOS Errata and Security Advisory 2014:1436 respectively.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(79182);
      script_version("1.15");
      script_cvs_date("Date: 2020/01/06");
    
      script_cve_id("CVE-2013-1981", "CVE-2013-1982", "CVE-2013-1983", "CVE-2013-1984", "CVE-2013-1985", "CVE-2013-1986", "CVE-2013-1987", "CVE-2013-1988", "CVE-2013-1989", "CVE-2013-1990", "CVE-2013-1991", "CVE-2013-1992", "CVE-2013-1995", "CVE-2013-1997", "CVE-2013-1998", "CVE-2013-1999", "CVE-2013-2000", "CVE-2013-2001", "CVE-2013-2002", "CVE-2013-2003", "CVE-2013-2004", "CVE-2013-2005", "CVE-2013-2062", "CVE-2013-2063", "CVE-2013-2064", "CVE-2013-2066");
      script_bugtraq_id(60120, 60121, 60122, 60123, 60124, 60125, 60126, 60127, 60128, 60129, 60131, 60132, 60133, 60134, 60135, 60136, 60137, 60138, 60139, 60143, 60144, 60145, 60146, 60148);
      script_xref(name:"RHSA", value:"2014:1436");
    
      script_name(english:"CentOS 6 : libX11 / libXcursor / libXext / libXfixes / libXi / libXinerama / libXp / libXrandr / etc (CESA-2014:1436)");
      script_summary(english:"Checks rpm output for the updated packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote CentOS host is missing one or more security updates."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Updated X11 client libraries packages that fix multiple security
    issues, several bugs, and add various enhancements are now available
    for Red Hat Enterprise Linux 6.
    
    Red Hat Product Security has rated this update as having Moderate
    security impact. Common Vulnerability Scoring System (CVSS) base
    scores, which give detailed severity ratings, are available for each
    vulnerability from the CVE links in the References section.
    
    The X11 (Xorg) libraries provide library routines that are used within
    all X Window applications.
    
    Multiple integer overflow flaws, leading to heap-based buffer
    overflows, were found in the way various X11 client libraries handled
    certain protocol data. An attacker able to submit invalid protocol
    data to an X11 server via a malicious X11 client could use either of
    these flaws to potentially escalate their privileges on the system.
    (CVE-2013-1981, CVE-2013-1982, CVE-2013-1983, CVE-2013-1984,
    CVE-2013-1985, CVE-2013-1986, CVE-2013-1987, CVE-2013-1988,
    CVE-2013-1989, CVE-2013-1990, CVE-2013-1991, CVE-2013-2003,
    CVE-2013-2062, CVE-2013-2064)
    
    Multiple array index errors, leading to heap-based buffer
    out-of-bounds write flaws, were found in the way various X11 client
    libraries handled data returned from an X11 server. A malicious X11
    server could possibly use this flaw to execute arbitrary code with the
    privileges of the user running an X11 client. (CVE-2013-1997,
    CVE-2013-1998, CVE-2013-1999, CVE-2013-2000, CVE-2013-2001,
    CVE-2013-2002, CVE-2013-2066)
    
    A buffer overflow flaw was found in the way the XListInputDevices()
    function of X.Org X11's libXi runtime library handled signed numbers.
    A malicious X11 server could possibly use this flaw to execute
    arbitrary code with the privileges of the user running an X11 client.
    (CVE-2013-1995)
    
    A flaw was found in the way the X.Org X11 libXt runtime library used
    uninitialized pointers. A malicious X11 server could possibly use this
    flaw to execute arbitrary code with the privileges of the user running
    an X11 client. (CVE-2013-2005)
    
    Two stack-based buffer overflow flaws were found in the way libX11,
    the Core X11 protocol client library, processed certain user-specified
    files. A malicious X11 server could possibly use this flaw to crash an
    X11 client via a specially crafted file. (CVE-2013-2004)
    
    The xkeyboard-config package has been upgraded to upstream version
    2.11, which provides a number of bug fixes and enhancements over the
    previous version. (BZ#1077471)
    
    This update also fixes the following bugs :
    
    * Previously, updating the mesa-libGL package did not update the
    libX11 package, although it was listed as a dependency of mesa-libGL.
    This bug has been fixed and updating mesa-libGL now updates all
    dependent packages as expected. (BZ#1054614)
    
    * Previously, closing a customer application could occasionally cause
    the X Server to terminate unexpectedly. After this update, the X
    Server no longer hangs when a user closes a customer application.
    (BZ#971626)
    
    All X11 client libraries users are advised to upgrade to these updated
    packages, which correct these issues and add these enhancements."
      );
      # https://lists.centos.org/pipermail/centos-cr-announce/2014-October/001233.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?3b79cc02"
      );
      # https://lists.centos.org/pipermail/centos-cr-announce/2014-October/001264.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?01c3d512"
      );
      # https://lists.centos.org/pipermail/centos-cr-announce/2014-October/001265.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?20d1cc19"
      );
      # https://lists.centos.org/pipermail/centos-cr-announce/2014-October/001266.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?de1e7678"
      );
      # https://lists.centos.org/pipermail/centos-cr-announce/2014-October/001267.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?4c5e9be1"
      );
      # https://lists.centos.org/pipermail/centos-cr-announce/2014-October/001268.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?7db4ea17"
      );
      # https://lists.centos.org/pipermail/centos-cr-announce/2014-October/001269.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?cc226c84"
      );
      # https://lists.centos.org/pipermail/centos-cr-announce/2014-October/001270.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?2db4cd33"
      );
      # https://lists.centos.org/pipermail/centos-cr-announce/2014-October/001271.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?8d22dfbb"
      );
      # https://lists.centos.org/pipermail/centos-cr-announce/2014-October/001272.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?501edd75"
      );
      # https://lists.centos.org/pipermail/centos-cr-announce/2014-October/001273.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?ed66b158"
      );
      # https://lists.centos.org/pipermail/centos-cr-announce/2014-October/001274.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?08882ff6"
      );
      # https://lists.centos.org/pipermail/centos-cr-announce/2014-October/001275.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?d4e0bef2"
      );
      # https://lists.centos.org/pipermail/centos-cr-announce/2014-October/001276.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?366095e8"
      );
      # https://lists.centos.org/pipermail/centos-cr-announce/2014-October/001277.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?405b97cb"
      );
      # https://lists.centos.org/pipermail/centos-cr-announce/2014-October/001278.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?b76f6a57"
      );
      # https://lists.centos.org/pipermail/centos-cr-announce/2014-October/001279.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?02385819"
      );
      # https://lists.centos.org/pipermail/centos-cr-announce/2014-October/001280.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?cb5d4eea"
      );
      # https://lists.centos.org/pipermail/centos-cr-announce/2014-October/001399.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?d465ad21"
      );
      # https://lists.centos.org/pipermail/centos-cr-announce/2014-October/001406.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?d752e61c"
      );
      # https://lists.centos.org/pipermail/centos-cr-announce/2014-October/001457.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?a7aa0b43"
      );
      # https://lists.centos.org/pipermail/centos-cr-announce/2014-October/001460.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?391fbefa"
      );
      script_set_attribute(attribute:"solution", value:"Update the affected packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
      script_set_attribute(attribute:"cvss_score_source", value:"CVE-2013-1981");
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"false");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libX11");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libX11-common");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libX11-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libXcursor");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libXcursor-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libXext");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libXext-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libXfixes");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libXfixes-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libXi");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libXi-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libXinerama");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libXinerama-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libXp");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libXp-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libXrandr");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libXrandr-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libXrender");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libXrender-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libXres");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libXres-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libXt");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libXt-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libXtst");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libXtst-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libXv");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libXv-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libXvMC");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libXvMC-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libXxf86dga");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libXxf86dga-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libXxf86vm");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libXxf86vm-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libdmx");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libdmx-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libxcb");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libxcb-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libxcb-doc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:libxcb-python");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:xcb-proto");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:xkeyboard-config");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:xkeyboard-config-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:xorg-x11-proto-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:xorg-x11-xtrans-devel");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:centos:centos:6");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2013/06/15");
      script_set_attribute(attribute:"patch_publication_date", value:"2014/10/20");
      script_set_attribute(attribute:"plugin_publication_date", value:"2014/11/12");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"CentOS Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/CentOS/release", "Host/CentOS/rpm-list");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/CentOS/release");
    if (isnull(release) || "CentOS" >!< release) audit(AUDIT_OS_NOT, "CentOS");
    os_ver = pregmatch(pattern: "CentOS(?: Linux)? release ([0-9]+)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "CentOS");
    os_ver = os_ver[1];
    if (! preg(pattern:"^6([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "CentOS 6.x", "CentOS " + os_ver);
    
    if (!get_kb_item("Host/CentOS/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "CentOS", cpu);
    
    
    flag = 0;
    if (rpm_check(release:"CentOS-6", reference:"libX11-1.6.0-2.2.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libX11-common-1.6.0-2.2.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libX11-devel-1.6.0-2.2.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libXcursor-1.1.14-2.1.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libXcursor-devel-1.1.14-2.1.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libXext-1.3.2-2.1.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libXext-devel-1.3.2-2.1.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libXfixes-5.0.1-2.1.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libXfixes-devel-5.0.1-2.1.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libXi-1.7.2-2.2.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libXi-devel-1.7.2-2.2.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libXinerama-1.1.3-2.1.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libXinerama-devel-1.1.3-2.1.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libXp-1.0.2-2.1.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libXp-devel-1.0.2-2.1.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libXrandr-1.4.1-2.1.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libXrandr-devel-1.4.1-2.1.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libXrender-0.9.8-2.1.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libXrender-devel-0.9.8-2.1.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libXres-1.0.7-2.1.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libXres-devel-1.0.7-2.1.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libXt-1.1.4-6.1.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libXt-devel-1.1.4-6.1.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libXtst-1.2.2-2.1.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libXtst-devel-1.2.2-2.1.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libXv-1.0.9-2.1.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libXv-devel-1.0.9-2.1.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libXvMC-1.0.8-2.1.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libXvMC-devel-1.0.8-2.1.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libXxf86dga-1.1.4-2.1.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libXxf86dga-devel-1.1.4-2.1.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libXxf86vm-1.1.3-2.1.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libXxf86vm-devel-1.1.3-2.1.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libdmx-1.1.3-3.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libdmx-devel-1.1.3-3.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libxcb-1.9.1-2.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libxcb-devel-1.9.1-2.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libxcb-doc-1.9.1-2.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"libxcb-python-1.9.1-2.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"xcb-proto-1.8-3.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"xkeyboard-config-2.11-1.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"xkeyboard-config-devel-2.11-1.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"xorg-x11-proto-devel-7.7-9.el6")) flag++;
    if (rpm_check(release:"CentOS-6", reference:"xorg-x11-xtrans-devel-1.3.4-1.el6")) flag++;
    
    
    if (flag)
    {
      cr_plugin_caveat = '\n' +
        'NOTE: The security advisory associated with this vulnerability has a\n' +
        'fixed package version that may only be available in the continuous\n' +
        'release (CR) repository for CentOS, until it is present in the next\n' +
        'point release of CentOS.\n\n' +
    
        'If an equal or higher package level does not exist in the baseline\n' +
        'repository for your major version of CentOS, then updates from the CR\n' +
        'repository will need to be applied in order to address the\n' +
        'vulnerability.\n';
      security_report_v4(
        port       : 0,
        severity   : SECURITY_WARNING,
        extra      : rpm_report_get() + cr_plugin_caveat
      );
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "libX11 / libX11-common / libX11-devel / libXcursor / etc");
    }
    
  • NASL familyRed Hat Local Security Checks
    NASL idREDHAT-RHSA-2014-1436.NASL
    descriptionUpdated X11 client libraries packages that fix multiple security issues, several bugs, and add various enhancements are now available for Red Hat Enterprise Linux 6. Red Hat Product Security has rated this update as having Moderate security impact. Common Vulnerability Scoring System (CVSS) base scores, which give detailed severity ratings, are available for each vulnerability from the CVE links in the References section. The X11 (Xorg) libraries provide library routines that are used within all X Window applications. Multiple integer overflow flaws, leading to heap-based buffer overflows, were found in the way various X11 client libraries handled certain protocol data. An attacker able to submit invalid protocol data to an X11 server via a malicious X11 client could use either of these flaws to potentially escalate their privileges on the system. (CVE-2013-1981, CVE-2013-1982, CVE-2013-1983, CVE-2013-1984, CVE-2013-1985, CVE-2013-1986, CVE-2013-1987, CVE-2013-1988, CVE-2013-1989, CVE-2013-1990, CVE-2013-1991, CVE-2013-2003, CVE-2013-2062, CVE-2013-2064) Multiple array index errors, leading to heap-based buffer out-of-bounds write flaws, were found in the way various X11 client libraries handled data returned from an X11 server. A malicious X11 server could possibly use this flaw to execute arbitrary code with the privileges of the user running an X11 client. (CVE-2013-1997, CVE-2013-1998, CVE-2013-1999, CVE-2013-2000, CVE-2013-2001, CVE-2013-2002, CVE-2013-2066) A buffer overflow flaw was found in the way the XListInputDevices() function of X.Org X11
    last seen2020-06-01
    modified2020-06-02
    plugin id78411
    published2014-10-14
    reporterThis script is Copyright (C) 2014-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/78411
    titleRHEL 6 : X11 client libraries (RHSA-2014:1436)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Red Hat Security Advisory RHSA-2014:1436. The text 
    # itself is copyright (C) Red Hat, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(78411);
      script_version("1.18");
      script_cvs_date("Date: 2019/10/24 15:35:39");
    
      script_cve_id("CVE-2013-1981", "CVE-2013-1982", "CVE-2013-1983", "CVE-2013-1984", "CVE-2013-1985", "CVE-2013-1986", "CVE-2013-1987", "CVE-2013-1988", "CVE-2013-1989", "CVE-2013-1990", "CVE-2013-1991", "CVE-2013-1992", "CVE-2013-1995", "CVE-2013-1997", "CVE-2013-1998", "CVE-2013-1999", "CVE-2013-2000", "CVE-2013-2001", "CVE-2013-2002", "CVE-2013-2003", "CVE-2013-2004", "CVE-2013-2005", "CVE-2013-2062", "CVE-2013-2063", "CVE-2013-2064", "CVE-2013-2066");
      script_bugtraq_id(60120, 60121, 60122, 60123, 60124, 60125, 60126, 60127, 60128, 60129, 60131, 60132, 60133, 60134, 60135, 60136, 60137, 60138, 60139, 60143, 60144, 60145, 60146, 60148);
      script_xref(name:"RHSA", value:"2014:1436");
    
      script_name(english:"RHEL 6 : X11 client libraries (RHSA-2014:1436)");
      script_summary(english:"Checks the rpm output for the updated packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Red Hat host is missing one or more security updates."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Updated X11 client libraries packages that fix multiple security
    issues, several bugs, and add various enhancements are now available
    for Red Hat Enterprise Linux 6.
    
    Red Hat Product Security has rated this update as having Moderate
    security impact. Common Vulnerability Scoring System (CVSS) base
    scores, which give detailed severity ratings, are available for each
    vulnerability from the CVE links in the References section.
    
    The X11 (Xorg) libraries provide library routines that are used within
    all X Window applications.
    
    Multiple integer overflow flaws, leading to heap-based buffer
    overflows, were found in the way various X11 client libraries handled
    certain protocol data. An attacker able to submit invalid protocol
    data to an X11 server via a malicious X11 client could use either of
    these flaws to potentially escalate their privileges on the system.
    (CVE-2013-1981, CVE-2013-1982, CVE-2013-1983, CVE-2013-1984,
    CVE-2013-1985, CVE-2013-1986, CVE-2013-1987, CVE-2013-1988,
    CVE-2013-1989, CVE-2013-1990, CVE-2013-1991, CVE-2013-2003,
    CVE-2013-2062, CVE-2013-2064)
    
    Multiple array index errors, leading to heap-based buffer
    out-of-bounds write flaws, were found in the way various X11 client
    libraries handled data returned from an X11 server. A malicious X11
    server could possibly use this flaw to execute arbitrary code with the
    privileges of the user running an X11 client. (CVE-2013-1997,
    CVE-2013-1998, CVE-2013-1999, CVE-2013-2000, CVE-2013-2001,
    CVE-2013-2002, CVE-2013-2066)
    
    A buffer overflow flaw was found in the way the XListInputDevices()
    function of X.Org X11's libXi runtime library handled signed numbers.
    A malicious X11 server could possibly use this flaw to execute
    arbitrary code with the privileges of the user running an X11 client.
    (CVE-2013-1995)
    
    A flaw was found in the way the X.Org X11 libXt runtime library used
    uninitialized pointers. A malicious X11 server could possibly use this
    flaw to execute arbitrary code with the privileges of the user running
    an X11 client. (CVE-2013-2005)
    
    Two stack-based buffer overflow flaws were found in the way libX11,
    the Core X11 protocol client library, processed certain user-specified
    files. A malicious X11 server could possibly use this flaw to crash an
    X11 client via a specially crafted file. (CVE-2013-2004)
    
    The xkeyboard-config package has been upgraded to upstream version
    2.11, which provides a number of bug fixes and enhancements over the
    previous version. (BZ#1077471)
    
    This update also fixes the following bugs :
    
    * Previously, updating the mesa-libGL package did not update the
    libX11 package, although it was listed as a dependency of mesa-libGL.
    This bug has been fixed and updating mesa-libGL now updates all
    dependent packages as expected. (BZ#1054614)
    
    * Previously, closing a customer application could occasionally cause
    the X Server to terminate unexpectedly. After this update, the X
    Server no longer hangs when a user closes a customer application.
    (BZ#971626)
    
    All X11 client libraries users are advised to upgrade to these updated
    packages, which correct these issues and add these enhancements."
      );
      # http://www.x.org/wiki/Development/Security/Advisory-2013-05-23/
      script_set_attribute(
        attribute:"see_also",
        value:"https://www.x.org/wiki/Development/Security/Advisory-2013-05-23/"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/errata/RHSA-2014:1436"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2013-2062"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2013-2064"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2013-2066"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2013-2003"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2013-2002"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2013-2001"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2013-2000"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2013-2005"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2013-2004"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2013-1989"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2013-1988"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2013-1987"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2013-1986"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2013-1985"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2013-1984"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2013-1983"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2013-1982"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2013-1981"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2013-1998"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2013-1999"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2013-1990"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2013-1991"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2013-1995"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2013-1997"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2013-1992"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2013-2063"
      );
      script_set_attribute(attribute:"solution", value:"Update the affected packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
      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:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libX11");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libX11-common");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libX11-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libX11-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXcursor");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXcursor-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXcursor-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXext");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXext-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXext-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXfixes");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXfixes-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXfixes-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXi");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXi-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXi-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXinerama");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXinerama-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXinerama-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXp");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXp-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXp-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXrandr");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXrandr-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXrandr-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXrender");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXrender-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXrender-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXres");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXres-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXres-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXt");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXt-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXt-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXtst");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXtst-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXtst-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXv");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXv-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXv-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXvMC");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXvMC-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXvMC-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXxf86dga");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXxf86dga-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXxf86dga-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXxf86vm");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXxf86vm-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libXxf86vm-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libdmx");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libdmx-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libdmx-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libxcb");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libxcb-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libxcb-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libxcb-doc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:libxcb-python");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:xcb-proto");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:xkeyboard-config");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:xkeyboard-config-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:xorg-x11-proto-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:xorg-x11-xtrans-devel");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:redhat:enterprise_linux:6");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2013/06/15");
      script_set_attribute(attribute:"patch_publication_date", value:"2014/10/13");
      script_set_attribute(attribute:"plugin_publication_date", value:"2014/10/14");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2014-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Red Hat Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/RedHat/release", "Host/RedHat/rpm-list", "Host/cpu");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("misc_func.inc");
    include("rpm.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/RedHat/release");
    if (isnull(release) || "Red Hat" >!< release) audit(AUDIT_OS_NOT, "Red Hat");
    os_ver = pregmatch(pattern: "Red Hat Enterprise Linux.*release ([0-9]+(\.[0-9]+)?)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Red Hat");
    os_ver = os_ver[1];
    if (! preg(pattern:"^6([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Red Hat 6.x", "Red Hat " + os_ver);
    
    if (!get_kb_item("Host/RedHat/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$" && "s390" >!< cpu) audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Red Hat", cpu);
    
    yum_updateinfo = get_kb_item("Host/RedHat/yum-updateinfo");
    if (!empty_or_null(yum_updateinfo)) 
    {
      rhsa = "RHSA-2014:1436";
      yum_report = redhat_generate_yum_updateinfo_report(rhsa:rhsa);
      if (!empty_or_null(yum_report))
      {
        security_report_v4(
          port       : 0,
          severity   : SECURITY_WARNING,
          extra      : yum_report 
        );
        exit(0);
      }
      else
      {
        audit_message = "affected by Red Hat security advisory " + rhsa;
        audit(AUDIT_OS_NOT, audit_message);
      }
    }
    else
    {
      flag = 0;
      if (rpm_check(release:"RHEL6", reference:"libX11-1.6.0-2.2.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libX11-common-1.6.0-2.2.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libX11-debuginfo-1.6.0-2.2.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libX11-devel-1.6.0-2.2.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXcursor-1.1.14-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXcursor-debuginfo-1.1.14-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXcursor-devel-1.1.14-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXext-1.3.2-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXext-debuginfo-1.3.2-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXext-devel-1.3.2-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXfixes-5.0.1-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXfixes-debuginfo-5.0.1-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXfixes-devel-5.0.1-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXi-1.7.2-2.2.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXi-debuginfo-1.7.2-2.2.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXi-devel-1.7.2-2.2.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXinerama-1.1.3-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXinerama-debuginfo-1.1.3-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXinerama-devel-1.1.3-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXp-1.0.2-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXp-debuginfo-1.0.2-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXp-devel-1.0.2-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXrandr-1.4.1-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXrandr-debuginfo-1.4.1-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXrandr-devel-1.4.1-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXrender-0.9.8-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXrender-debuginfo-0.9.8-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXrender-devel-0.9.8-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXres-1.0.7-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXres-debuginfo-1.0.7-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXres-devel-1.0.7-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXt-1.1.4-6.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXt-debuginfo-1.1.4-6.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXt-devel-1.1.4-6.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXtst-1.2.2-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXtst-debuginfo-1.2.2-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXtst-devel-1.2.2-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXv-1.0.9-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXv-debuginfo-1.0.9-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXv-devel-1.0.9-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", cpu:"i686", reference:"libXvMC-1.0.8-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", cpu:"x86_64", reference:"libXvMC-1.0.8-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", cpu:"i686", reference:"libXvMC-debuginfo-1.0.8-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", cpu:"x86_64", reference:"libXvMC-debuginfo-1.0.8-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", cpu:"i686", reference:"libXvMC-devel-1.0.8-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", cpu:"x86_64", reference:"libXvMC-devel-1.0.8-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXxf86dga-1.1.4-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXxf86dga-debuginfo-1.1.4-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXxf86dga-devel-1.1.4-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXxf86vm-1.1.3-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXxf86vm-debuginfo-1.1.3-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libXxf86vm-devel-1.1.3-2.1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libdmx-1.1.3-3.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libdmx-debuginfo-1.1.3-3.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libdmx-devel-1.1.3-3.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libxcb-1.9.1-2.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libxcb-debuginfo-1.9.1-2.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libxcb-devel-1.9.1-2.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"libxcb-doc-1.9.1-2.el6")) flag++;
      if (rpm_check(release:"RHEL6", cpu:"i686", reference:"libxcb-python-1.9.1-2.el6")) flag++;
      if (rpm_check(release:"RHEL6", cpu:"s390x", reference:"libxcb-python-1.9.1-2.el6")) flag++;
      if (rpm_check(release:"RHEL6", cpu:"x86_64", reference:"libxcb-python-1.9.1-2.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"xcb-proto-1.8-3.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"xkeyboard-config-2.11-1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"xkeyboard-config-devel-2.11-1.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"xorg-x11-proto-devel-7.7-9.el6")) flag++;
      if (rpm_check(release:"RHEL6", reference:"xorg-x11-xtrans-devel-1.3.4-1.el6")) flag++;
    
      if (flag)
      {
        security_report_v4(
          port       : 0,
          severity   : SECURITY_WARNING,
          extra      : rpm_report_get() + redhat_report_package_caveat()
        );
        exit(0);
      }
      else
      {
        tested = pkg_tests_get();
        if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
        else audit(AUDIT_PACKAGE_NOT_INSTALLED, "libX11 / libX11-common / libX11-debuginfo / libX11-devel / etc");
      }
    }
    
  • NASL familyAmazon Linux Local Security Checks
    NASL idALA_ALAS-2014-452.NASL
    descriptionMultiple integer overflow flaws, leading to heap-based buffer overflows, were found in the way various X11 client libraries handled certain protocol data. An attacker able to submit invalid protocol data to an X11 server via a malicious X11 client could use either of these flaws to potentially escalate their privileges on the system. (CVE-2013-1981 , CVE-2013-1982 , CVE-2013-1983 , CVE-2013-1984 , CVE-2013-1985 , CVE-2013-1986 , CVE-2013-1987 , CVE-2013-1988 , CVE-2013-1989 , CVE-2013-1990 , CVE-2013-1991 , CVE-2013-2003 , CVE-2013-2062 , CVE-2013-2064) Multiple array index errors, leading to heap-based buffer out-of-bounds write flaws, were found in the way various X11 client libraries handled data returned from an X11 server. A malicious X11 server could possibly use this flaw to execute arbitrary code with the privileges of the user running an X11 client. (CVE-2013-1997 , CVE-2013-1998 , CVE-2013-1999 , CVE-2013-2000 , CVE-2013-2001 , CVE-2013-2002 , CVE-2013-2066) A buffer overflow flaw was found in the way the XListInputDevices() function of X.Org X11
    last seen2020-06-01
    modified2020-06-02
    plugin id79560
    published2014-11-26
    reporterThis script is Copyright (C) 2014-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/79560
    titleAmazon Linux AMI : libX11 / libXcursor,libXfixes,libXi,libXrandr,libXrender,libXres,libXt,libXv,libXvMC,libXxf86dga,libXxf86vm,libdmx,xorg-x11-proto-devel (ALAS-2014-452)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were
    # extracted from Amazon Linux AMI Security Advisory ALAS-2014-452.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(79560);
      script_version("1.4");
      script_cvs_date("Date: 2019/07/10 16:04:12");
    
      script_cve_id("CVE-2013-1981", "CVE-2013-1982", "CVE-2013-1983", "CVE-2013-1984", "CVE-2013-1985", "CVE-2013-1986", "CVE-2013-1987", "CVE-2013-1988", "CVE-2013-1989", "CVE-2013-1990", "CVE-2013-1991", "CVE-2013-1995", "CVE-2013-1997", "CVE-2013-1998", "CVE-2013-1999", "CVE-2013-2000", "CVE-2013-2001", "CVE-2013-2002", "CVE-2013-2003", "CVE-2013-2004", "CVE-2013-2005", "CVE-2013-2062", "CVE-2013-2064", "CVE-2013-2066");
      script_xref(name:"ALAS", value:"2014-452");
      script_xref(name:"RHSA", value:"2014:1436");
    
      script_name(english:"Amazon Linux AMI : libX11 / libXcursor,libXfixes,libXi,libXrandr,libXrender,libXres,libXt,libXv,libXvMC,libXxf86dga,libXxf86vm,libdmx,xorg-x11-proto-devel (ALAS-2014-452)");
      script_summary(english:"Checks rpm output for the updated packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Amazon Linux AMI host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Multiple integer overflow flaws, leading to heap-based buffer
    overflows, were found in the way various X11 client libraries handled
    certain protocol data. An attacker able to submit invalid protocol
    data to an X11 server via a malicious X11 client could use either of
    these flaws to potentially escalate their privileges on the system.
    (CVE-2013-1981 , CVE-2013-1982 , CVE-2013-1983 , CVE-2013-1984 ,
    CVE-2013-1985 , CVE-2013-1986 , CVE-2013-1987 , CVE-2013-1988 ,
    CVE-2013-1989 , CVE-2013-1990 , CVE-2013-1991 , CVE-2013-2003 ,
    CVE-2013-2062 , CVE-2013-2064)
    
    Multiple array index errors, leading to heap-based buffer
    out-of-bounds write flaws, were found in the way various X11 client
    libraries handled data returned from an X11 server. A malicious X11
    server could possibly use this flaw to execute arbitrary code with the
    privileges of the user running an X11 client. (CVE-2013-1997 ,
    CVE-2013-1998 , CVE-2013-1999 , CVE-2013-2000 , CVE-2013-2001 ,
    CVE-2013-2002 , CVE-2013-2066)
    
    A buffer overflow flaw was found in the way the XListInputDevices()
    function of X.Org X11's libXi runtime library handled signed numbers.
    A malicious X11 server could possibly use this flaw to execute
    arbitrary code with the privileges of the user running an X11 client.
    (CVE-2013-1995)
    
    A flaw was found in the way the X.Org X11 libXt runtime library used
    uninitialized pointers. A malicious X11 server could possibly use this
    flaw to execute arbitrary code with the privileges of the user running
    an X11 client. (CVE-2013-2005)
    
    Two stack-based buffer overflow flaws were found in the way libX11,
    the Core X11 protocol client library, processed certain user-specified
    files. A malicious X11 server could possibly use this flaw to crash an
    X11 client via a specially crafted file. (CVE-2013-2004)"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://alas.aws.amazon.com/ALAS-2014-452.html"
      );
      script_set_attribute(
        attribute:"solution", 
        value:
    "Run 'yum update libX11 libXcursor libXfixes libXi libXrandr libXrender
    libXres libXt libXv libXvMC libXxf86dga libXxf86vm libdmx
    xorg-x11-proto-devel' to update your system."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libX11");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libX11-common");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libX11-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libX11-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXcursor");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXcursor-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXcursor-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXfixes");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXfixes-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXfixes-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXi");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXi-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXi-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXrandr");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXrandr-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXrandr-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXrender");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXrender-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXrender-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXres");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXres-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXres-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXt");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXt-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXt-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXv");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXv-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXv-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXvMC");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXvMC-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXvMC-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXxf86dga");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXxf86dga-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXxf86dga-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXxf86vm");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXxf86vm-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libXxf86vm-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libdmx");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libdmx-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:libdmx-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:xorg-x11-proto-devel");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:amazon:linux");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2013/06/15");
      script_set_attribute(attribute:"patch_publication_date", value:"2014/11/24");
      script_set_attribute(attribute:"plugin_publication_date", value:"2014/11/26");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2014-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Amazon Linux Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/AmazonLinux/release", "Host/AmazonLinux/rpm-list");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    
    release = get_kb_item("Host/AmazonLinux/release");
    if (isnull(release) || !strlen(release)) audit(AUDIT_OS_NOT, "Amazon Linux");
    os_ver = pregmatch(pattern: "^AL(A|\d)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Amazon Linux");
    os_ver = os_ver[1];
    if (os_ver != "A")
    {
      if (os_ver == 'A') os_ver = 'AMI';
      audit(AUDIT_OS_NOT, "Amazon Linux AMI", "Amazon Linux " + os_ver);
    }
    
    if (!get_kb_item("Host/AmazonLinux/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    
    flag = 0;
    if (rpm_check(release:"ALA", reference:"libX11-1.6.0-2.2.12.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libX11-common-1.6.0-2.2.12.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libX11-debuginfo-1.6.0-2.2.12.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libX11-devel-1.6.0-2.2.12.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXcursor-1.1.14-2.1.9.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXcursor-debuginfo-1.1.14-2.1.9.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXcursor-devel-1.1.14-2.1.9.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXfixes-5.0.1-2.1.8.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXfixes-debuginfo-5.0.1-2.1.8.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXfixes-devel-5.0.1-2.1.8.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXi-1.7.2-2.2.9.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXi-debuginfo-1.7.2-2.2.9.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXi-devel-1.7.2-2.2.9.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXrandr-1.4.1-2.1.8.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXrandr-debuginfo-1.4.1-2.1.8.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXrandr-devel-1.4.1-2.1.8.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXrender-0.9.8-2.1.9.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXrender-debuginfo-0.9.8-2.1.9.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXrender-devel-0.9.8-2.1.9.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXres-1.0.7-2.1.8.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXres-debuginfo-1.0.7-2.1.8.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXres-devel-1.0.7-2.1.8.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXt-1.1.4-6.1.9.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXt-debuginfo-1.1.4-6.1.9.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXt-devel-1.1.4-6.1.9.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXv-1.0.9-2.1.8.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXv-debuginfo-1.0.9-2.1.8.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXv-devel-1.0.9-2.1.8.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXvMC-1.0.8-2.1.8.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXvMC-debuginfo-1.0.8-2.1.8.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXvMC-devel-1.0.8-2.1.8.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXxf86dga-1.1.4-2.1.8.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXxf86dga-debuginfo-1.1.4-2.1.8.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXxf86dga-devel-1.1.4-2.1.8.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXxf86vm-1.1.3-2.1.9.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXxf86vm-debuginfo-1.1.3-2.1.9.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libXxf86vm-devel-1.1.3-2.1.9.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libdmx-1.1.3-3.7.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libdmx-debuginfo-1.1.3-3.7.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"libdmx-devel-1.1.3-3.7.amzn1")) flag++;
    if (rpm_check(release:"ALA", reference:"xorg-x11-proto-devel-7.7-9.10.amzn1")) flag++;
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get());
      else security_warning(0);
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "libX11 / libX11-common / libX11-debuginfo / libX11-devel / etc");
    }
    
  • NASL familySuSE Local Security Checks
    NASL idSUSE_XORG-X11-8623.NASL
    descriptionThis update of xorg-x11 fixes several security vulnerabilities. - Bug 815451- X.Org Security Advisory: May 23, 2013 - Bug 821664 - libX11 - Bug 821671 - libXv - Bug 821670 - libXt - Bug 821669 - libXrender - Bug 821668 - libXp - Bug 821667 - libXfixes - Bug 821665 - libXext - Bug 821663 - libFS, libXcursor, libXi, libXinerama, libXRes, libXtst, libXvMC, libXxf86dga, libXxf86vm, libdmx
    last seen2020-06-05
    modified2013-07-12
    plugin id67256
    published2013-07-12
    reporterThis script is Copyright (C) 2013-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/67256
    titleSuSE 10 Security Update : xorg-x11 (ZYPP Patch Number 8623)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The text description of this plugin is (C) Novell, Inc.
    #
    
    if (NASL_LEVEL < 3000) exit(0);
    
    include("compat.inc");
    
    if (description)
    {
      script_id(67256);
      script_version("1.3");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/06/04");
    
      script_cve_id("CVE-2013-1981", "CVE-2013-1982", "CVE-2013-1983", "CVE-2013-1984", "CVE-2013-1985", "CVE-2013-1987", "CVE-2013-1988", "CVE-2013-1989", "CVE-2013-1990", "CVE-2013-1991", "CVE-2013-1992", "CVE-2013-1995", "CVE-2013-1996", "CVE-2013-1997", "CVE-2013-1998", "CVE-2013-1999", "CVE-2013-2000", "CVE-2013-2001", "CVE-2013-2002", "CVE-2013-2003", "CVE-2013-2004", "CVE-2013-2005", "CVE-2013-2062", "CVE-2013-2063", "CVE-2013-2066");
    
      script_name(english:"SuSE 10 Security Update : xorg-x11 (ZYPP Patch Number 8623)");
      script_summary(english:"Checks rpm output for the updated packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote SuSE 10 host is missing a security-related patch."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "This update of xorg-x11 fixes several security vulnerabilities.
    
      - Bug 815451- X.Org Security Advisory: May 23, 2013
    
      - Bug 821664 - libX11
    
      - Bug 821671 - libXv
    
      - Bug 821670 - libXt
    
      - Bug 821669 - libXrender
    
      - Bug 821668 - libXp
    
      - Bug 821667 - libXfixes
    
      - Bug 821665 - libXext
    
      - Bug 821663 - libFS, libXcursor, libXi, libXinerama,
        libXRes, libXtst, libXvMC, libXxf86dga, libXxf86vm,
        libdmx"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://support.novell.com/security/cve/CVE-2013-1981.html"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://support.novell.com/security/cve/CVE-2013-1982.html"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://support.novell.com/security/cve/CVE-2013-1983.html"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://support.novell.com/security/cve/CVE-2013-1984.html"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://support.novell.com/security/cve/CVE-2013-1985.html"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://support.novell.com/security/cve/CVE-2013-1987.html"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://support.novell.com/security/cve/CVE-2013-1988.html"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://support.novell.com/security/cve/CVE-2013-1989.html"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://support.novell.com/security/cve/CVE-2013-1990.html"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://support.novell.com/security/cve/CVE-2013-1991.html"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://support.novell.com/security/cve/CVE-2013-1992.html"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://support.novell.com/security/cve/CVE-2013-1995.html"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://support.novell.com/security/cve/CVE-2013-1996.html"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://support.novell.com/security/cve/CVE-2013-1997.html"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://support.novell.com/security/cve/CVE-2013-1998.html"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://support.novell.com/security/cve/CVE-2013-1999.html"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://support.novell.com/security/cve/CVE-2013-2000.html"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://support.novell.com/security/cve/CVE-2013-2001.html"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://support.novell.com/security/cve/CVE-2013-2002.html"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://support.novell.com/security/cve/CVE-2013-2003.html"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://support.novell.com/security/cve/CVE-2013-2004.html"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://support.novell.com/security/cve/CVE-2013-2005.html"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://support.novell.com/security/cve/CVE-2013-2062.html"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://support.novell.com/security/cve/CVE-2013-2063.html"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://support.novell.com/security/cve/CVE-2013-2066.html"
      );
      script_set_attribute(attribute:"solution", value:"Apply ZYPP patch number 8623.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:suse:suse_linux");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2013/06/15");
      script_set_attribute(attribute:"patch_publication_date", value:"2013/06/19");
      script_set_attribute(attribute:"plugin_publication_date", value:"2013/07/12");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2013-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"SuSE Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/cpu", "Host/SuSE/release", "Host/SuSE/rpm-list");
    
      exit(0);
    }
    
    
    include("global_settings.inc");
    include("rpm.inc");
    
    
    if (!get_kb_item("Host/local_checks_enabled")) exit(0, "Local checks are not enabled.");
    if (!get_kb_item("Host/SuSE/release")) exit(0, "The host is not running SuSE.");
    if (!get_kb_item("Host/SuSE/rpm-list")) exit(1, "Could not obtain the list of installed packages.");
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) exit(1, "Failed to determine the architecture type.");
    if (cpu >!< "x86_64" && cpu !~ "^i[3-6]86$") exit(1, "Local checks for SuSE 10 on the '"+cpu+"' architecture have not been implemented.");
    
    
    flag = 0;
    if (rpm_check(release:"SLED10", sp:4, reference:"xorg-x11-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLED10", sp:4, reference:"xorg-x11-Xnest-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLED10", sp:4, reference:"xorg-x11-Xvfb-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLED10", sp:4, reference:"xorg-x11-Xvnc-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLED10", sp:4, reference:"xorg-x11-devel-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLED10", sp:4, reference:"xorg-x11-fonts-100dpi-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLED10", sp:4, reference:"xorg-x11-fonts-75dpi-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLED10", sp:4, reference:"xorg-x11-fonts-cyrillic-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLED10", sp:4, reference:"xorg-x11-fonts-scalable-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLED10", sp:4, reference:"xorg-x11-fonts-syriac-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLED10", sp:4, reference:"xorg-x11-libs-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLED10", sp:4, reference:"xorg-x11-man-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLED10", sp:4, reference:"xorg-x11-server-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLED10", sp:4, reference:"xorg-x11-server-glx-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLED10", sp:4, cpu:"x86_64", reference:"xorg-x11-devel-32bit-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLED10", sp:4, cpu:"x86_64", reference:"xorg-x11-libs-32bit-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLES10", sp:4, reference:"xorg-x11-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLES10", sp:4, reference:"xorg-x11-Xnest-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLES10", sp:4, reference:"xorg-x11-Xvfb-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLES10", sp:4, reference:"xorg-x11-Xvnc-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLES10", sp:4, reference:"xorg-x11-devel-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLES10", sp:4, reference:"xorg-x11-doc-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLES10", sp:4, reference:"xorg-x11-fonts-100dpi-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLES10", sp:4, reference:"xorg-x11-fonts-75dpi-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLES10", sp:4, reference:"xorg-x11-fonts-cyrillic-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLES10", sp:4, reference:"xorg-x11-fonts-scalable-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLES10", sp:4, reference:"xorg-x11-fonts-syriac-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLES10", sp:4, reference:"xorg-x11-libs-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLES10", sp:4, reference:"xorg-x11-man-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLES10", sp:4, reference:"xorg-x11-sdk-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLES10", sp:4, reference:"xorg-x11-server-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLES10", sp:4, reference:"xorg-x11-server-glx-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLES10", sp:4, cpu:"x86_64", reference:"xorg-x11-devel-32bit-6.9.0-50.84.4")) flag++;
    if (rpm_check(release:"SLES10", sp:4, cpu:"x86_64", reference:"xorg-x11-libs-32bit-6.9.0-50.84.4")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get());
      else security_warning(0);
      exit(0);
    }
    else exit(0, "The host is not affected.");
    
  • NASL familySuSE Local Security Checks
    NASL idSUSE_11_XORG-X11-LIBXRENDER-130603.NASL
    descriptionThis update of xorg-x11-libXrender fixes several integer overflow issues. (bnc#815451, bnc#821669, CVE-2013-1987)
    last seen2020-06-05
    modified2013-06-29
    plugin id67111
    published2013-06-29
    reporterThis script is Copyright (C) 2013-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/67111
    titleSuSE 11.2 Security Update : xorg-x11-libXrender (SAT Patch Number 7809)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from SuSE 11 update information. The text itself is
    # copyright (C) Novell, Inc.
    #
    
    if (NASL_LEVEL < 3000) exit(0);
    
    include("compat.inc");
    
    if (description)
    {
      script_id(67111);
      script_version("1.3");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/06/04");
    
      script_cve_id("CVE-2013-1987");
    
      script_name(english:"SuSE 11.2 Security Update : xorg-x11-libXrender (SAT Patch Number 7809)");
      script_summary(english:"Checks rpm output for the updated packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote SuSE 11 host is missing one or more security updates."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "This update of xorg-x11-libXrender fixes several integer overflow
    issues. (bnc#815451, bnc#821669, CVE-2013-1987)"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.novell.com/show_bug.cgi?id=815451"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.novell.com/show_bug.cgi?id=821669"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://support.novell.com/security/cve/CVE-2013-1987.html"
      );
      script_set_attribute(attribute:"solution", value:"Apply SAT patch number 7809.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:suse_linux:11:xorg-x11-libXrender");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:suse_linux:11:xorg-x11-libXrender-32bit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:suse_linux:11:xorg-x11-libXrender-devel");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:novell:suse_linux:11");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2013/06/03");
      script_set_attribute(attribute:"plugin_publication_date", value:"2013/06/29");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2013-2020 Tenable Network Security, Inc.");
      script_family(english:"SuSE Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/cpu", "Host/SuSE/release", "Host/SuSE/rpm-list");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/SuSE/release");
    if (isnull(release) || release !~ "^(SLED|SLES)11") audit(AUDIT_OS_NOT, "SuSE 11");
    if (!get_kb_item("Host/SuSE/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if (cpu !~ "^i[3-6]86$" && "x86_64" >!< cpu && "s390x" >!< cpu) audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "SuSE 11", cpu);
    
    pl = get_kb_item("Host/SuSE/patchlevel");
    if (isnull(pl) || int(pl) != 2) audit(AUDIT_OS_NOT, "SuSE 11.2");
    
    
    flag = 0;
    if (rpm_check(release:"SLED11", sp:2, cpu:"i586", reference:"xorg-x11-libXrender-7.4-1.16.1")) flag++;
    if (rpm_check(release:"SLED11", sp:2, cpu:"i586", reference:"xorg-x11-libXrender-devel-7.4-1.16.1")) flag++;
    if (rpm_check(release:"SLED11", sp:2, cpu:"x86_64", reference:"xorg-x11-libXrender-7.4-1.16.1")) flag++;
    if (rpm_check(release:"SLED11", sp:2, cpu:"x86_64", reference:"xorg-x11-libXrender-32bit-7.4-1.16.1")) flag++;
    if (rpm_check(release:"SLED11", sp:2, cpu:"x86_64", reference:"xorg-x11-libXrender-devel-7.4-1.16.1")) flag++;
    if (rpm_check(release:"SLES11", sp:2, reference:"xorg-x11-libXrender-7.4-1.16.1")) flag++;
    if (rpm_check(release:"SLES11", sp:2, cpu:"s390x", reference:"xorg-x11-libXrender-32bit-7.4-1.16.1")) flag++;
    if (rpm_check(release:"SLES11", sp:2, cpu:"x86_64", reference:"xorg-x11-libXrender-32bit-7.4-1.16.1")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get());
      else security_warning(0);
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");
    
  • NASL familyUbuntu Local Security Checks
    NASL idUBUNTU_USN-1863-1.NASL
    descriptionIlja van Sprundel discovered multiple security issues in various X.org libraries and components. An attacker could use these issues to cause applications to crash, resulting in a denial of service, or possibly execute arbitrary code. Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id66827
    published2013-06-06
    reporterUbuntu Security Notice (C) 2013-2019 Canonical, Inc. / NASL script (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/66827
    titleUbuntu 10.04 LTS / 12.04 LTS / 12.10 / 13.04 : libxrender vulnerability (USN-1863-1)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were
    # extracted from Ubuntu Security Notice USN-1863-1. The text 
    # itself is copyright (C) Canonical, Inc. See 
    # <http://www.ubuntu.com/usn/>. Ubuntu(R) is a registered 
    # trademark of Canonical, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(66827);
      script_version("1.10");
      script_cvs_date("Date: 2019/09/19 12:54:29");
    
      script_cve_id("CVE-2013-1987");
      script_bugtraq_id(60132);
      script_xref(name:"USN", value:"1863-1");
    
      script_name(english:"Ubuntu 10.04 LTS / 12.04 LTS / 12.10 / 13.04 : libxrender vulnerability (USN-1863-1)");
      script_summary(english:"Checks dpkg output for updated package.");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Ubuntu host is missing a security-related patch."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Ilja van Sprundel discovered multiple security issues in various X.org
    libraries and components. An attacker could use these issues to cause
    applications to crash, resulting in a denial of service, or possibly
    execute arbitrary code.
    
    Note that Tenable Network Security has extracted the preceding
    description block directly from the Ubuntu security advisory. Tenable
    has attempted to automatically clean and format it as much as possible
    without introducing additional issues."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://usn.ubuntu.com/1863-1/"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected libxrender1 package."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
      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:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libxrender1");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:canonical:ubuntu_linux:10.04:-:lts");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:canonical:ubuntu_linux:12.04:-:lts");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:canonical:ubuntu_linux:12.10");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:canonical:ubuntu_linux:13.04");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2013/06/15");
      script_set_attribute(attribute:"patch_publication_date", value:"2013/06/05");
      script_set_attribute(attribute:"plugin_publication_date", value:"2013/06/06");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"Ubuntu Security Notice (C) 2013-2019 Canonical, Inc. / NASL script (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Ubuntu Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/cpu", "Host/Ubuntu", "Host/Ubuntu/release", "Host/Debian/dpkg-l");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("ubuntu.inc");
    include("misc_func.inc");
    
    if ( ! get_kb_item("Host/local_checks_enabled") ) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/Ubuntu/release");
    if ( isnull(release) ) audit(AUDIT_OS_NOT, "Ubuntu");
    release = chomp(release);
    if (! preg(pattern:"^(10\.04|12\.04|12\.10|13\.04)$", string:release)) audit(AUDIT_OS_NOT, "Ubuntu 10.04 / 12.04 / 12.10 / 13.04", "Ubuntu " + release);
    if ( ! get_kb_item("Host/Debian/dpkg-l") ) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Ubuntu", cpu);
    
    flag = 0;
    
    if (ubuntu_check(osver:"10.04", pkgname:"libxrender1", pkgver:"1:0.9.5-1ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"12.04", pkgname:"libxrender1", pkgver:"1:0.9.6-2ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"12.10", pkgname:"libxrender1", pkgver:"1:0.9.7-1ubuntu0.12.10.1")) flag++;
    if (ubuntu_check(osver:"13.04", pkgname:"libxrender1", pkgver:"1:0.9.7-1ubuntu0.13.04.1")) flag++;
    
    if (flag)
    {
      security_report_v4(
        port       : 0,
        severity   : SECURITY_WARNING,
        extra      : ubuntu_report_get()
      );
      exit(0);
    }
    else
    {
      tested = ubuntu_pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "libxrender1");
    }
    
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2013-9107.NASL
    descriptionUpdate to latest git to fix the following CVEs: CVE-2013-1987 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-03-17
    modified2013-06-03
    plugin id66743
    published2013-06-03
    reporterThis script is Copyright (C) 2013-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/66743
    titleFedora 18 : libXrender-0.9.7-5.20130524git786f78fd8.fc18 (2013-9107)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Fedora Security Advisory 2013-9107.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(66743);
      script_version("1.8");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/03/12");
    
      script_cve_id("CVE-2013-1987");
      script_bugtraq_id(60132);
      script_xref(name:"FEDORA", value:"2013-9107");
    
      script_name(english:"Fedora 18 : libXrender-0.9.7-5.20130524git786f78fd8.fc18 (2013-9107)");
      script_summary(english:"Checks rpm output for the updated package.");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Fedora host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Update to latest git to fix the following CVEs: CVE-2013-1987
    
    Note that Tenable Network Security has extracted the preceding
    description block directly from the Fedora security advisory. Tenable
    has attempted to automatically clean and format it as much as possible
    without introducing additional issues."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.redhat.com/show_bug.cgi?id=959061"
      );
      # https://lists.fedoraproject.org/pipermail/package-announce/2013-June/107491.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?741bf0cc"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected libXrender package."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:ND/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:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:libXrender");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:fedoraproject:fedora:18");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2013/05/25");
      script_set_attribute(attribute:"plugin_publication_date", value:"2013/06/03");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2013-2020 Tenable Network Security, Inc.");
      script_family(english:"Fedora Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/RedHat/release", "Host/RedHat/rpm-list");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/RedHat/release");
    if (isnull(release) || "Fedora" >!< release) audit(AUDIT_OS_NOT, "Fedora");
    os_ver = eregmatch(pattern: "Fedora.*release ([0-9]+)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Fedora");
    os_ver = os_ver[1];
    if (! ereg(pattern:"^18([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Fedora 18.x", "Fedora " + os_ver);
    
    if (!get_kb_item("Host/RedHat/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Fedora", cpu);
    
    flag = 0;
    if (rpm_check(release:"FC18", reference:"libXrender-0.9.7-5.20130524git786f78fd8.fc18")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get());
      else security_warning(0);
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "libXrender");
    }
    
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2013-9052.NASL
    descriptionUpdate to latest git to fix the following CVEs: CVE-2013-1987 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-03-17
    modified2013-05-28
    plugin id66621
    published2013-05-28
    reporterThis script is Copyright (C) 2013-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/66621
    titleFedora 19 : libXrender-0.9.7-5.20130524git786f78fd8.fc19 (2013-9052)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Fedora Security Advisory 2013-9052.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(66621);
      script_version("1.8");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/03/12");
    
      script_cve_id("CVE-2013-1987");
      script_bugtraq_id(60132);
      script_xref(name:"FEDORA", value:"2013-9052");
    
      script_name(english:"Fedora 19 : libXrender-0.9.7-5.20130524git786f78fd8.fc19 (2013-9052)");
      script_summary(english:"Checks rpm output for the updated package.");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Fedora host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Update to latest git to fix the following CVEs: CVE-2013-1987
    
    Note that Tenable Network Security has extracted the preceding
    description block directly from the Fedora security advisory. Tenable
    has attempted to automatically clean and format it as much as possible
    without introducing additional issues."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.redhat.com/show_bug.cgi?id=959061"
      );
      # https://lists.fedoraproject.org/pipermail/package-announce/2013-May/106862.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?00b822d4"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected libXrender package."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:ND/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:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:libXrender");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:fedoraproject:fedora:19");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2013/05/24");
      script_set_attribute(attribute:"plugin_publication_date", value:"2013/05/28");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2013-2020 Tenable Network Security, Inc.");
      script_family(english:"Fedora Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/RedHat/release", "Host/RedHat/rpm-list");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/RedHat/release");
    if (isnull(release) || "Fedora" >!< release) audit(AUDIT_OS_NOT, "Fedora");
    os_ver = eregmatch(pattern: "Fedora.*release ([0-9]+)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Fedora");
    os_ver = os_ver[1];
    if (! ereg(pattern:"^19([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Fedora 19.x", "Fedora " + os_ver);
    
    if (!get_kb_item("Host/RedHat/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Fedora", cpu);
    
    flag = 0;
    if (rpm_check(release:"FC19", reference:"libXrender-0.9.7-5.20130524git786f78fd8.fc19")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get());
      else security_warning(0);
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "libXrender");
    }
    
  • NASL familyGentoo Local Security Checks
    NASL idGENTOO_GLSA-201405-07.NASL
    descriptionThe remote host is affected by the vulnerability described in GLSA-201405-07 (X.Org X Server: Multiple vulnerabilities) Multiple vulnerabilities have been discovered in X.Org X Server. Please review the CVE identifiers referenced below for details. Impact : A context-dependent attacker could execute arbitrary code with the privileges of the process, cause a Denial of Service condition, or obtain sensitive information. Workaround : There is no known workaround at this time.
    last seen2020-06-01
    modified2020-06-02
    plugin id74028
    published2014-05-16
    reporterThis script is Copyright (C) 2014-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/74028
    titleGLSA-201405-07 : X.Org X Server: Multiple vulnerabilities
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were
    # extracted from Gentoo Linux Security Advisory GLSA 201405-07.
    #
    # The advisory text is Copyright (C) 2001-2017 Gentoo Foundation, Inc.
    # and licensed under the Creative Commons - Attribution / Share Alike 
    # license. See http://creativecommons.org/licenses/by-sa/3.0/
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(74028);
      script_version("1.8");
      script_cvs_date("Date: 2018/07/12 19:01:15");
    
      script_cve_id("CVE-2013-1056", "CVE-2013-1940", "CVE-2013-1981", "CVE-2013-1982", "CVE-2013-1983", "CVE-2013-1984", "CVE-2013-1985", "CVE-2013-1986", "CVE-2013-1987", "CVE-2013-1988", "CVE-2013-1989", "CVE-2013-1990", "CVE-2013-1991", "CVE-2013-1992", "CVE-2013-1993", "CVE-2013-1994", "CVE-2013-1995", "CVE-2013-1996", "CVE-2013-1997", "CVE-2013-1998", "CVE-2013-1999", "CVE-2013-2000", "CVE-2013-2001", "CVE-2013-2002", "CVE-2013-2003", "CVE-2013-2004", "CVE-2013-2005", "CVE-2013-2062", "CVE-2013-2063", "CVE-2013-2064", "CVE-2013-2066", "CVE-2013-4396");
      script_bugtraq_id(59282, 60120, 60121, 60122, 60123, 60124, 60125, 60126, 60127, 60128, 60129, 60130, 60131, 60132, 60133, 60134, 60135, 60136, 60137, 60138, 60139, 60141, 60142, 60143, 60144, 60145, 60146, 60148, 60149, 60151, 62892, 63203);
      script_xref(name:"GLSA", value:"201405-07");
    
      script_name(english:"GLSA-201405-07 : X.Org X Server: Multiple vulnerabilities");
      script_summary(english:"Checks for updated package(s) in /var/db/pkg");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:
    "The remote Gentoo host is missing one or more security-related
    patches."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "The remote host is affected by the vulnerability described in GLSA-201405-07
    (X.Org X Server: Multiple vulnerabilities)
    
        Multiple vulnerabilities have been discovered in X.Org X Server. Please
          review the CVE identifiers referenced below for details.
      
    Impact :
    
        A context-dependent attacker could execute arbitrary code with the
          privileges of the process, cause a Denial of Service condition, or obtain
          sensitive information.
      
    Workaround :
    
        There is no known workaround at this time."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://security.gentoo.org/glsa/201405-07"
      );
      script_set_attribute(
        attribute:"solution", 
        value:
    "All X.Org X Server users should upgrade to the latest version:
          # emerge --sync
          # emerge --ask --oneshot --verbose '>=x11-base/xorg-server-1.14.3-r2'"
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
      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:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:gentoo:linux:xorg-server");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:gentoo:linux");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2014/05/15");
      script_set_attribute(attribute:"plugin_publication_date", value:"2014/05/16");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2014-2018 Tenable Network Security, Inc.");
      script_family(english:"Gentoo Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/Gentoo/release", "Host/Gentoo/qpkg-list");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("qpkg.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    if (!get_kb_item("Host/Gentoo/release")) audit(AUDIT_OS_NOT, "Gentoo");
    if (!get_kb_item("Host/Gentoo/qpkg-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    
    flag = 0;
    
    if (qpkg_check(package:"x11-base/xorg-server", unaffected:make_list("ge 1.14.3-r2"), vulnerable:make_list("lt 1.14.3-r2"))) flag++;
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:qpkg_report_get());
      else security_warning(0);
      exit(0);
    }
    else
    {
      tested = qpkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "X.Org X Server");
    }
    
  • NASL familyScientific Linux Local Security Checks
    NASL idSL_20141014_X11_CLIENT_LIBRARIES_ON_SL6_X.NASL
    descriptionMultiple integer overflow flaws, leading to heap-based buffer overflows, were found in the way various X11 client libraries handled certain protocol data. An attacker able to submit invalid protocol data to an X11 server via a malicious X11 client could use either of these flaws to potentially escalate their privileges on the system. (CVE-2013-1981, CVE-2013-1982, CVE-2013-1983, CVE-2013-1984, CVE-2013-1985, CVE-2013-1986, CVE-2013-1987, CVE-2013-1988, CVE-2013-1989, CVE-2013-1990, CVE-2013-1991, CVE-2013-2003, CVE-2013-2062, CVE-2013-2064) Multiple array index errors, leading to heap-based buffer out-of-bounds write flaws, were found in the way various X11 client libraries handled data returned from an X11 server. A malicious X11 server could possibly use this flaw to execute arbitrary code with the privileges of the user running an X11 client. (CVE-2013-1997, CVE-2013-1998, CVE-2013-1999, CVE-2013-2000, CVE-2013-2001, CVE-2013-2002, CVE-2013-2066) A buffer overflow flaw was found in the way the XListInputDevices() function of X.Org X11
    last seen2020-03-18
    modified2014-11-04
    plugin id78841
    published2014-11-04
    reporterThis script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/78841
    titleScientific Linux Security Update : X11 client libraries on SL6.x i386/x86_64 (20141014)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text is (C) Scientific Linux.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(78841);
      script_version("1.4");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/02/25");
    
      script_cve_id("CVE-2013-1981", "CVE-2013-1982", "CVE-2013-1983", "CVE-2013-1984", "CVE-2013-1985", "CVE-2013-1986", "CVE-2013-1987", "CVE-2013-1988", "CVE-2013-1989", "CVE-2013-1990", "CVE-2013-1991", "CVE-2013-1995", "CVE-2013-1997", "CVE-2013-1998", "CVE-2013-1999", "CVE-2013-2000", "CVE-2013-2001", "CVE-2013-2002", "CVE-2013-2003", "CVE-2013-2004", "CVE-2013-2005", "CVE-2013-2062", "CVE-2013-2064", "CVE-2013-2066");
    
      script_name(english:"Scientific Linux Security Update : X11 client libraries on SL6.x i386/x86_64 (20141014)");
      script_summary(english:"Checks rpm output for the updated packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:
    "The remote Scientific Linux host is missing one or more security
    updates."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Multiple integer overflow flaws, leading to heap-based buffer
    overflows, were found in the way various X11 client libraries handled
    certain protocol data. An attacker able to submit invalid protocol
    data to an X11 server via a malicious X11 client could use either of
    these flaws to potentially escalate their privileges on the system.
    (CVE-2013-1981, CVE-2013-1982, CVE-2013-1983, CVE-2013-1984,
    CVE-2013-1985, CVE-2013-1986, CVE-2013-1987, CVE-2013-1988,
    CVE-2013-1989, CVE-2013-1990, CVE-2013-1991, CVE-2013-2003,
    CVE-2013-2062, CVE-2013-2064)
    
    Multiple array index errors, leading to heap-based buffer
    out-of-bounds write flaws, were found in the way various X11 client
    libraries handled data returned from an X11 server. A malicious X11
    server could possibly use this flaw to execute arbitrary code with the
    privileges of the user running an X11 client. (CVE-2013-1997,
    CVE-2013-1998, CVE-2013-1999, CVE-2013-2000, CVE-2013-2001,
    CVE-2013-2002, CVE-2013-2066)
    
    A buffer overflow flaw was found in the way the XListInputDevices()
    function of X.Org X11's libXi runtime library handled signed numbers.
    A malicious X11 server could possibly use this flaw to execute
    arbitrary code with the privileges of the user running an X11 client.
    (CVE-2013-1995)
    
    A flaw was found in the way the X.Org X11 libXt runtime library used
    uninitialized pointers. A malicious X11 server could possibly use this
    flaw to execute arbitrary code with the privileges of the user running
    an X11 client. (CVE-2013-2005)
    
    Two stack-based buffer overflow flaws were found in the way libX11,
    the Core X11 protocol client library, processed certain user-specified
    files. A malicious X11 server could possibly use this flaw to crash an
    X11 client via a specially crafted file. (CVE-2013-2004)
    
    The xkeyboard-config package has been upgraded to upstream version
    2.11, which provides a number of bug fixes and enhancements over the
    previous version.
    
    This update also fixes the following bugs :
    
      - Previously, updating the mesa-libGL package did not
        update the libX11 package, although it was listed as a
        dependency of mesa-libGL. This bug has been fixed and
        updating mesa-libGL now updates all dependent packages
        as expected.
    
      - Previously, closing a customer application could
        occasionally cause the X Server to terminate
        unexpectedly. After this update, the X Server no longer
        hangs when a user closes a customer application."
      );
      # https://listserv.fnal.gov/scripts/wa.exe?A2=ind1411&L=scientific-linux-errata&T=0&P=1476
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?cb540d84"
      );
      script_set_attribute(attribute:"solution", value:"Update the affected packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libX11");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libX11-common");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libX11-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libX11-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXcursor");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXcursor-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXcursor-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXext");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXext-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXext-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXfixes");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXfixes-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXfixes-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXi");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXi-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXi-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXinerama");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXinerama-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXinerama-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXp");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXp-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXp-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXrandr");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXrandr-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXrandr-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXrender");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXrender-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXrender-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXres");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXres-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXres-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXt");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXt-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXt-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXtst");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXtst-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXtst-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXv");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXv-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXv-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXvMC");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXvMC-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXvMC-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXxf86dga");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXxf86dga-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXxf86dga-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXxf86vm");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXxf86vm-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libXxf86vm-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libdmx");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libdmx-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libdmx-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libxcb");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libxcb-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libxcb-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libxcb-doc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:libxcb-python");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:xcb-proto");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:xkeyboard-config");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:xkeyboard-config-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:xorg-x11-proto-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:xorg-x11-xtrans-devel");
      script_set_attribute(attribute:"cpe", value:"x-cpe:/o:fermilab:scientific_linux");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2013/06/15");
      script_set_attribute(attribute:"patch_publication_date", value:"2014/10/14");
      script_set_attribute(attribute:"plugin_publication_date", value:"2014/11/04");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Scientific Linux Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/cpu", "Host/RedHat/release", "Host/RedHat/rpm-list");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("misc_func.inc");
    include("rpm.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/RedHat/release");
    if (isnull(release) || "Scientific Linux " >!< release) audit(AUDIT_HOST_NOT, "running Scientific Linux");
    os_ver = pregmatch(pattern: "Scientific Linux.*release ([0-9]+(\.[0-9]+)?)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Scientific Linux");
    os_ver = os_ver[1];
    if (! preg(pattern:"^6([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Scientific Linux 6.x", "Scientific Linux " + os_ver);
    if (!get_kb_item("Host/RedHat/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if (cpu >!< "x86_64" && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Scientific Linux", cpu);
    
    
    flag = 0;
    if (rpm_check(release:"SL6", reference:"libX11-1.6.0-2.2.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libX11-common-1.6.0-2.2.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libX11-debuginfo-1.6.0-2.2.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libX11-devel-1.6.0-2.2.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXcursor-1.1.14-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXcursor-debuginfo-1.1.14-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXcursor-devel-1.1.14-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXext-1.3.2-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXext-debuginfo-1.3.2-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXext-devel-1.3.2-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXfixes-5.0.1-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXfixes-debuginfo-5.0.1-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXfixes-devel-5.0.1-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXi-1.7.2-2.2.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXi-debuginfo-1.7.2-2.2.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXi-devel-1.7.2-2.2.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXinerama-1.1.3-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXinerama-debuginfo-1.1.3-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXinerama-devel-1.1.3-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXp-1.0.2-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXp-debuginfo-1.0.2-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXp-devel-1.0.2-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXrandr-1.4.1-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXrandr-debuginfo-1.4.1-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXrandr-devel-1.4.1-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXrender-0.9.8-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXrender-debuginfo-0.9.8-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXrender-devel-0.9.8-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXres-1.0.7-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXres-debuginfo-1.0.7-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXres-devel-1.0.7-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXt-1.1.4-6.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXt-debuginfo-1.1.4-6.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXt-devel-1.1.4-6.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXtst-1.2.2-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXtst-debuginfo-1.2.2-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXtst-devel-1.2.2-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXv-1.0.9-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXv-debuginfo-1.0.9-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXv-devel-1.0.9-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXvMC-1.0.8-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXvMC-debuginfo-1.0.8-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXvMC-devel-1.0.8-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXxf86dga-1.1.4-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXxf86dga-debuginfo-1.1.4-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXxf86dga-devel-1.1.4-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXxf86vm-1.1.3-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXxf86vm-debuginfo-1.1.3-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libXxf86vm-devel-1.1.3-2.1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libdmx-1.1.3-3.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libdmx-debuginfo-1.1.3-3.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libdmx-devel-1.1.3-3.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libxcb-1.9.1-2.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libxcb-debuginfo-1.9.1-2.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libxcb-devel-1.9.1-2.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libxcb-doc-1.9.1-2.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"libxcb-python-1.9.1-2.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"xcb-proto-1.8-3.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"xkeyboard-config-2.11-1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"xkeyboard-config-devel-2.11-1.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"xorg-x11-proto-devel-7.7-9.el6")) flag++;
    if (rpm_check(release:"SL6", reference:"xorg-x11-xtrans-devel-1.3.4-1.el6")) flag++;
    
    
    if (flag)
    {
      security_report_v4(
        port       : 0,
        severity   : SECURITY_WARNING,
        extra      : rpm_report_get()
      );
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "libX11 / libX11-common / libX11-debuginfo / libX11-devel / etc");
    }
    

Redhat

rpms
  • libX11-0:1.6.0-2.2.el6
  • libX11-common-0:1.6.0-2.2.el6
  • libX11-debuginfo-0:1.6.0-2.2.el6
  • libX11-devel-0:1.6.0-2.2.el6
  • libXcursor-0:1.1.14-2.1.el6
  • libXcursor-debuginfo-0:1.1.14-2.1.el6
  • libXcursor-devel-0:1.1.14-2.1.el6
  • libXext-0:1.3.2-2.1.el6
  • libXext-debuginfo-0:1.3.2-2.1.el6
  • libXext-devel-0:1.3.2-2.1.el6
  • libXfixes-0:5.0.1-2.1.el6
  • libXfixes-debuginfo-0:5.0.1-2.1.el6
  • libXfixes-devel-0:5.0.1-2.1.el6
  • libXi-0:1.7.2-2.2.el6
  • libXi-debuginfo-0:1.7.2-2.2.el6
  • libXi-devel-0:1.7.2-2.2.el6
  • libXinerama-0:1.1.3-2.1.el6
  • libXinerama-debuginfo-0:1.1.3-2.1.el6
  • libXinerama-devel-0:1.1.3-2.1.el6
  • libXp-0:1.0.2-2.1.el6
  • libXp-debuginfo-0:1.0.2-2.1.el6
  • libXp-devel-0:1.0.2-2.1.el6
  • libXrandr-0:1.4.1-2.1.el6
  • libXrandr-debuginfo-0:1.4.1-2.1.el6
  • libXrandr-devel-0:1.4.1-2.1.el6
  • libXrender-0:0.9.8-2.1.el6
  • libXrender-debuginfo-0:0.9.8-2.1.el6
  • libXrender-devel-0:0.9.8-2.1.el6
  • libXres-0:1.0.7-2.1.el6
  • libXres-debuginfo-0:1.0.7-2.1.el6
  • libXres-devel-0:1.0.7-2.1.el6
  • libXt-0:1.1.4-6.1.el6
  • libXt-debuginfo-0:1.1.4-6.1.el6
  • libXt-devel-0:1.1.4-6.1.el6
  • libXtst-0:1.2.2-2.1.el6
  • libXtst-debuginfo-0:1.2.2-2.1.el6
  • libXtst-devel-0:1.2.2-2.1.el6
  • libXv-0:1.0.9-2.1.el6
  • libXv-debuginfo-0:1.0.9-2.1.el6
  • libXv-devel-0:1.0.9-2.1.el6
  • libXvMC-0:1.0.8-2.1.el6
  • libXvMC-debuginfo-0:1.0.8-2.1.el6
  • libXvMC-devel-0:1.0.8-2.1.el6
  • libXxf86dga-0:1.1.4-2.1.el6
  • libXxf86dga-debuginfo-0:1.1.4-2.1.el6
  • libXxf86dga-devel-0:1.1.4-2.1.el6
  • libXxf86vm-0:1.1.3-2.1.el6
  • libXxf86vm-debuginfo-0:1.1.3-2.1.el6
  • libXxf86vm-devel-0:1.1.3-2.1.el6
  • libdmx-0:1.1.3-3.el6
  • libdmx-debuginfo-0:1.1.3-3.el6
  • libdmx-devel-0:1.1.3-3.el6
  • libxcb-0:1.9.1-2.el6
  • libxcb-debuginfo-0:1.9.1-2.el6
  • libxcb-devel-0:1.9.1-2.el6
  • libxcb-doc-0:1.9.1-2.el6
  • libxcb-python-0:1.9.1-2.el6
  • xcb-proto-0:1.8-3.el6
  • xkeyboard-config-0:2.11-1.el6
  • xkeyboard-config-devel-0:2.11-1.el6
  • xorg-x11-proto-devel-0:7.7-9.el6
  • xorg-x11-xtrans-devel-0:1.3.4-1.el6