Vulnerabilities > CVE-2002-0657 - Unspecified vulnerability in Openssl 0.9.7

047910
CVSS 0.0 - NONE
Attack vector
UNKNOWN
Attack complexity
UNKNOWN
Privileges required
UNKNOWN
Confidentiality impact
UNKNOWN
Integrity impact
UNKNOWN
Availability impact
UNKNOWN
openssl
nessus

Summary

Buffer overflow in OpenSSL 0.9.7 before 0.9.7-beta3, with Kerberos enabled, allows attackers to execute arbitrary code via a long master key.

Vulnerable Configurations

Part Description Count
Application
Openssl
2

Nessus

  • NASL familyWeb Servers
    NASL idOPENSSL_0_9_7_BETA3.NASL
    descriptionAccording to its banner, the remote server is running a version of OpenSSL that is earlier than 0.9.7-beta3. If Kerberos is enabled, a remote attacker could trigger a buffer overflow with a long master key and execute arbitrary code.
    last seen2020-06-01
    modified2020-06-02
    plugin id17752
    published2012-01-04
    reporterThis script is Copyright (C) 2012-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/17752
    titleOpenSSL < 0.9.7-beta3 Buffer Overflow
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(17752);
      script_version("1.11");
      script_cvs_date("Date: 2018/07/16 14:09:14");
    
      script_cve_id("CVE-2002-0657");
      script_bugtraq_id(5361);
      script_xref(name:"CERT-CC", value:"CA-2002-23");
      script_xref(name:"CERT", value:"561275");
    
      script_name(english:"OpenSSL < 0.9.7-beta3 Buffer Overflow");
      script_summary(english:"Does a banner check");
    
      script_set_attribute(attribute:"synopsis", value:
    "The remote server is affected by an arbitrary code execution
    vulnerability.");
      script_set_attribute(attribute:"description", value:
    "According to its banner, the remote server is running a version of 
    OpenSSL that is earlier than 0.9.7-beta3. 
    
    If Kerberos is enabled, a remote attacker could trigger a buffer
    overflow with a long master key and execute arbitrary code.");
      script_set_attribute(attribute:"solution", value:"Upgrade to OpenSSL 0.9.7 or later.");
      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:U/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"false");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2002/07/30");
      script_set_attribute(attribute:"patch_publication_date", value:"2002/12/31");
      script_set_attribute(attribute:"plugin_publication_date", value:"2012/01/04");
    
      script_set_attribute(attribute:"plugin_type", value:"remote");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:openssl:openssl");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"Web Servers");
    
      script_copyright(english:"This script is Copyright (C) 2012-2018 Tenable Network Security, Inc.");
    
      script_dependencies("openssl_version.nasl");
      script_require_keys("openssl/port");
    
      exit(0);
    }
    
    include("openssl_version.inc");
    
    if (get_kb_item("Settings/PCI_DSS"))
      openssl_check_version(fixed:'0.9.7', severity:SECURITY_HOLE);
    else
      openssl_check_version(fixed:'0.9.7-beta3', severity:SECURITY_HOLE);
    
  • NASL familyGain a shell remotely
    NASL idOPENSSL_OVERFLOW_GENERIC_TEST.NASL
    descriptionThe remote service seems to be using a version of OpenSSL that is older than 0.9.6e or 0.9.7-beta3. Such versions are affected by a buffer overflow that may allow an attacker to execute arbitrary commands on the remote host with the privileges of the application itself.
    last seen2020-03-18
    modified2002-08-05
    plugin id11060
    published2002-08-05
    reporterThis script is Copyright (C) 2002-2018 Solar Eclipse / Renaud Deraison
    sourcehttps://www.tenable.com/plugins/nessus/11060
    titleOpenSSL < 0.9.6e / 0.9.7b3 Multiple Remote Vulnerabilities
    code
    #TRUSTED 0c735fb6d18b92e7dc463c39c93d50b398065651cd7c0ed318a5d1d34834031824c3a22050ca6e31fbcc01030a07f38ce398a73c4434f40cb325e945345c784571586ec7573bbad8187a83596ed8318eaf6fbe29658c28bbe29b37b708585e162f200a9dc8e3bb88b92c4ed92cc2ba1f3a809c28160e7ce5f02d05b54fe911864cb36397a0a6c7db4ce53e6c12d096326a0b0727e3f007c5b916a75245b03a0c89887f2a18c581d7a4c49d88672878280dc6da584f38fcfb32d39750cece204f7a4cdd4d8e5a18bc563660825d4db1ee613352088fdc75b46c9dade84128772db6b409a5b09ed95b3156e4175c6d66dea8e2f1aa3db4e4c723621cec8449ba4b4869188c9e4687fd548a2c19c20bfc66382490a21d71e882380baf0c6c9b33b4382c5ce2683444bf2988676a4abe4e2865c6782ef082ebcf0ad497a1cc0c9cb35128ba8c71af2eb86b143e720d1e461e6556cd4385e503f30cea015f9d8bbaf86087917e85775f1a89b32e0323aab41988798789ba048a32d1fda6103fee96f4c882cd51ed5020991e252eee40c145fcce7c754df18a8cac345a4b4d20a503ac645e70005c5f48de74f07b68ac07b51bb6d8c05de995db8b389dce0ca9e57291b3e43a0218c94628387c12c67ba32cf4beff50a54372c43eab3040569ff783cba5fbb9ed40b3996e373be2aeec209568a4832fd3fe0d490a0857f942f69a71b9
    #
    # (C) Tenable Network Security, Inc.
    #
    
    # Thanks to Solar Eclipse <[email protected]>, who did most
    # of the work.
    #
    # Will incidentally cover CVE-2001-1141 and CVE-2000-0535
    #
    
    
    include("compat.inc");
    
    if (description)
    {
     script_id(11060);
     script_version("1.61");
     script_set_attribute(attribute:"plugin_modification_date", value:"2020/06/12");
    
     script_cve_id(
      "CVE-2000-0535",
      "CVE-2001-1141",
      "CVE-2002-0655",
      "CVE-2002-0656",
      "CVE-2002-0657",
      "CVE-2002-0659"
     );
     script_bugtraq_id(1340, 3004, 5361, 5362, 5363, 5364, 5366);
     script_xref(name:"SuSE", value:"SUSE-SA:2002:033");
    
     script_name(english:"OpenSSL < 0.9.6e / 0.9.7b3 Multiple Remote Vulnerabilities");
     script_summary(english:"Checks for the behavior of OpenSSL");
    
     script_set_attribute(attribute:"synopsis", value:
    "The remote service uses a library that is affected by a buffer
    overflow vulnerability.");
     script_set_attribute(attribute:"description", value:
    "The remote service seems to be using a version of OpenSSL that is
    older than 0.9.6e or 0.9.7-beta3.
    
    Such versions are affected by a buffer overflow that may allow an
    attacker to execute arbitrary commands on the remote host with the
    privileges of the application itself.");
     script_set_attribute(attribute:"solution", value:"Upgrade to OpenSSL version 0.9.6e / 0.9.7beta3 or later.");
     script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
     script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
     script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
     script_set_attribute(attribute:"exploit_available", value:"true");
     script_set_attribute(attribute:"exploit_framework_core", value:"true");
     script_set_attribute(attribute:"exploit_framework_canvas", value:"true");
     script_set_attribute(attribute:"canvas_package", value:'CANVAS');
    
     script_set_attribute(attribute:"plugin_publication_date", value:"2002/08/05");
     script_set_attribute(attribute:"patch_publication_date", value:"2002/07/30");
     script_set_attribute(attribute:"vuln_publication_date", value:"2001/07/10");
     script_set_attribute(attribute:"plugin_type", value:"remote");
     script_set_attribute(attribute:"cpe", value:"cpe:/a:openssl:openssl");
     script_end_attributes();
    
     script_category(ACT_MIXED_ATTACK);
     script_copyright(english:"This script is Copyright (C) 2002-2020 Solar Eclipse / Renaud Deraison");
     script_family(english:"Gain a shell remotely");
     script_dependencies("ssl_supported_versions.nasl");
     script_require_keys("SSL/Supported");
    
     exit(0);
    }
    
    include("byte_func.inc");
    include("ftp_func.inc");
    include("global_settings.inc");
    include("kerberos_func.inc");
    include("ldap_func.inc");
    include("misc_func.inc");
    include("nntp_func.inc");
    include("smtp_func.inc");
    include("ssl_funcs.inc");
    include("telnet2_func.inc");
    
    if ( safe_checks() && report_paranoia < 2 ) exit(0);
    
    #------------------------------ Consts ----------------------#
    client_hello = raw_string(
    0x80, 0x31, 0x01, 0x00,
    0x02,  0x00, 0x18,0x00,
    0x00,  0x00, 0x10,0x07,
    0x00, 0xC0, 0x05, 0x00,
    0x80, 0x03, 0x00, 0x80,
    0x01, 0x00, 0x80, 0x08,
    0x00, 0x80, 0x06, 0x00,
    0x40, 0x04, 0x00, 0x80,
    0x02, 0x00, 0x80, 0xE4,
    0xBD, 0x00, 0x00, 0xA4,
    0x41, 0xB6, 0x74, 0x71,
    0x2B, 0x27, 0x95, 0x44,
    0xC0, 0x3D, 0xC0);
    
    
    poison = raw_string(
    0x80,0x5a,0x2,0x7,
    0x0,0xc0,0x0,0x0,
    0x0,0x40,0x0,0x10,
    0x19,0x53,0xf,0x55,
    0x5e,0xaa,0x68,0x71,
    0x3,0x27,0x4,0x5a,
    0x1f,0x5,0xea,0x33,
    0x29,0x5b,0xb9,0x3f,
    0x7d,0x28,0xe6,0x4c,
    0xd4,0xb3,0x8e,0x36,
    0x44,0xb5,0x86,0x6c,
    0x6c,0x6,0xc1,0x5c,
    0x45,0x73,0xb8,0x11,
    0x55,0x23,0x3e,0x2a,
    0x52,0xe0,0x52,0x30,
    0xda,0xf8,0xee,0x15,
    0x79,0xe1,0x3c,0x68,
    0x36,0xd1,0x14,0x26,
    0xae,0xd4,0x30,0x2,
    0x0,0x0,0x0,0x0,
    0x4,0x0,0x0,0x0,
    0x41,0x41,0x41,0x41,
    0x41,0x41,0x41,0x41);
    
    
    big_poison = raw_string(
    0x81, 0xca, 0x2, 0x7,
    0x0, 0xc0, 0x0, 0x0,
    0x0, 0x40, 0x1, 0x80,
    0xa4, 0x20, 0xb4, 0x44,
    0xd, 0xe, 0x7c, 0x5,
    0xc2, 0x21, 0x28, 0x4d,
    0xd3, 0xab, 0x6b, 0x72,
    0x10, 0xa3, 0x64, 0x7e,
    0x9, 0x7e, 0xe8, 0x28,
    0xe, 0x98, 0x5a, 0x5,
    0x2f, 0x32, 0xbb, 0xa,
    0x3c, 0xe0, 0x58, 0x5a,
    0xc5, 0xf1, 0x91, 0x36,
    0x1a, 0x27, 0x2c, 0x37,
    0x4b, 0xc2, 0xd2, 0x49,
    0x28, 0xc4, 0xf1, 0x76,
    0x41, 0xe5, 0xa4, 0x2d,
    0xe6, 0x9a, 0x55, 0x7e,
    0x27, 0x38, 0x89, 0x13,
    0x0, 0x0, 0x0, 0x0,
    0x4, 0x0, 0x0, 0x0,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41,
    0x41, 0x41, 0x41, 0x41);
    
    
    
    #-------- The code. We need the check what happens on each port ------------#
    
    moderate_report =
    "Note that since safe checks are enabled, this check might be fooled by
    non-openssl implementations and produce a false positive.
    In doubt, re-execute the scan without the safe checks";
    
    get_kb_item_or_exit("SSL/Supported");
    
    port = get_ssl_ports(fork:TRUE);
    if (isnull(port))
      exit(1, "The host does not appear to have any SSL-based services.");
    
    # Find out if the port is open.
    if (!get_port_state(port))
      exit(0, "Port " + port + " is not open.");
    
    # Connect to the port, issuing the StartTLS command if necessary.
    soc = open_sock_ssl(port);
    if (!soc)
      exit(1, "open_sock_ssl() returned NULL for port " + port + ".");
    
    send(socket:soc, data:client_hello);
    buf = recv(socket:soc, length:8192);
    if(!strlen(buf))exit(0);
    send(socket:soc, data:poison);
    buf = recv(socket:soc, length:10);
    close(soc);
    if(safe_checks())
    {
    if(strlen(buf) > 5)security_hole(port:port, extra: moderate_report);
    }
    else
    {
     if(strlen(buf) > 5)
     {
      # Connect to the port, issuing the StartTLS command if necessary.
      soc = open_sock_ssl(port);
      if (!soc)
        exit(1, "open_sock_ssl() returned NULL for port " + port + ".");
    
      send(socket:soc, data:client_hello);
      buf = recv(socket:soc, length:8192);
      if(!strlen(buf))exit(0);
      n = send(socket:soc, data:big_poison);
      if ( n != strlen(big_poison) ) exit(0);
    
      buf = recv(socket:soc, length:4096);
      close(soc);
      if(strlen(buf) == 0)security_hole(port);
     }
    }
    
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-136.NASL
    descriptionThe OpenSSL development team has announced that a security audit by A.L. Digital Ltd and The Bunker, under the DARPA CHATS program, has revealed remotely exploitable buffer overflow conditions in the OpenSSL code. Additionally, the ASN1 parser in OpenSSL has a potential DoS attack independently discovered by Adi Stav and James Yonan. CAN-2002-0655 references overflows in buffers used to hold ASCII representations of integers on 64 bit platforms. CAN-2002-0656 references buffer overflows in the SSL2 server implementation (by sending an invalid key to the server) and the SSL3 client implementation (by sending a large session id to the client). The SSL2 issue was also noticed by Neohapsis, who have privately demonstrated exploit code for this issue. CAN-2002-0659 references the ASN1 parser DoS issue. These vulnerabilities have been addressed for Debian 3.0 (woody) in openssl094_0.9.4-6.woody.2, openssl095_0.9.5a-6.woody.1 and openssl_0.9.6c-2.woody.1. These vulnerabilities are also present in Debian 2.2 (potato). Fixed packages are available in openssl094_0.9.4-6.potato.2 and openssl_0.9.6c-0.potato.4. A worm is actively exploiting this issue on internet-attached hosts; we recommend you upgrade your OpenSSL as soon as possible. Note that you must restart any daemons using SSL. (E.g., ssh or ssl-enabled apache.) If you are uncertain which programs are using SSL you may choose to reboot to ensure that all running daemons are using the new libraries.
    last seen2020-06-01
    modified2020-06-02
    plugin id14973
    published2004-09-29
    reporterThis script is Copyright (C) 2004-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/14973
    titleDebian DSA-136-1 : openssl - multiple remote exploits
    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-136. The text 
    # itself is copyright (C) Software in the Public Interest, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(14973);
      script_version("1.28");
      script_cvs_date("Date: 2019/08/02 13:32:16");
    
      script_cve_id("CVE-2002-0655", "CVE-2002-0656", "CVE-2002-0657", "CVE-2002-0659", "CVE-2005-1730");
      script_bugtraq_id(5353, 5361, 5362, 5363, 5364, 5366);
      script_xref(name:"DSA", value:"136");
    
      script_name(english:"Debian DSA-136-1 : openssl - multiple remote exploits");
      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:
    "The OpenSSL development team has announced that a security audit by
    A.L. Digital Ltd and The Bunker, under the DARPA CHATS program, has
    revealed remotely exploitable buffer overflow conditions in the
    OpenSSL code. Additionally, the ASN1 parser in OpenSSL has a potential
    DoS attack independently discovered by Adi Stav and James Yonan.
    
    CAN-2002-0655 references overflows in buffers used to hold ASCII
    representations of integers on 64 bit platforms. CAN-2002-0656
    references buffer overflows in the SSL2 server implementation (by
    sending an invalid key to the server) and the SSL3 client
    implementation (by sending a large session id to the client). The SSL2
    issue was also noticed by Neohapsis, who have privately demonstrated
    exploit code for this issue. CAN-2002-0659 references the ASN1 parser
    DoS issue.
    
    These vulnerabilities have been addressed for Debian 3.0 (woody) in
    openssl094_0.9.4-6.woody.2, openssl095_0.9.5a-6.woody.1 and
    openssl_0.9.6c-2.woody.1.
    
    These vulnerabilities are also present in Debian 2.2 (potato). Fixed
    packages are available in openssl094_0.9.4-6.potato.2 and
    openssl_0.9.6c-0.potato.4.
    
    A worm is actively exploiting this issue on internet-attached hosts;
    we recommend you upgrade your OpenSSL as soon as possible. Note that
    you must restart any daemons using SSL. (E.g., ssh or ssl-enabled
    apache.) If you are uncertain which programs are using SSL you may
    choose to reboot to ensure that all running daemons are using the new
    libraries."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.debian.org/security/2002/dsa-136"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Upgrade the affected openssl package."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C");
      script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"true");
      script_set_attribute(attribute:"exploit_framework_core", value:"true");
      script_set_attribute(attribute:"exploit_framework_canvas", value:"true");
      script_set_attribute(attribute:"canvas_package", value:'CANVAS');
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:openssl");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:debian:debian_linux:2.2");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:debian:debian_linux:3.0");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2002/07/30");
      script_set_attribute(attribute:"plugin_publication_date", value:"2004/09/29");
      script_set_attribute(attribute:"vuln_publication_date", value:"2002/07/30");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2004-2019 Tenable Network Security, Inc.");
      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:"2.2", prefix:"libssl-dev", reference:"0.9.6c-0.potato.4")) flag++;
    if (deb_check(release:"2.2", prefix:"libssl0.9.6", reference:"0.9.6c-0.potato.4")) flag++;
    if (deb_check(release:"2.2", prefix:"libssl09", reference:"0.9.4-6.potato.2")) flag++;
    if (deb_check(release:"2.2", prefix:"openssl", reference:"0.9.6c-0.potato.4")) flag++;
    if (deb_check(release:"2.2", prefix:"ssleay", reference:"0.9.6c-0.potato.3")) flag++;
    if (deb_check(release:"3.0", prefix:"libssl-dev", reference:"0.9.6c-2.woody.1")) flag++;
    if (deb_check(release:"3.0", prefix:"libssl0.9.6", reference:"0.9.6c-2.woody.1")) flag++;
    if (deb_check(release:"3.0", prefix:"libssl09", reference:"0.9.4-6.woody.1")) flag++;
    if (deb_check(release:"3.0", prefix:"libssl095a", reference:"0.9.5a-6.woody.1")) flag++;
    if (deb_check(release:"3.0", prefix:"openssl", reference:"0.9.6c-2.woody.1")) flag++;
    
    if (flag)
    {
      if (report_verbosity > 0) security_hole(port:0, extra:deb_report_get());
      else security_hole(0);
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");
    
  • NASL familyRed Hat Local Security Checks
    NASL idREDHAT-RHSA-2002-157.NASL
    descriptionUpdated OpenSSL packages are available which fix several serious buffer overflow vulnerabilities. OpenSSL is a commercial-grade, full-featured, and Open Source toolkit which implements the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a full-strength general purpose cryptography library. A security audit of the OpenSSL code sponsored by DARPA found several buffer overflows in OpenSSL which affect versions 0.9.7 and 0.9.6d and earlier : 1. The master key supplied by a client to an SSL version 2 server could be oversized, causing a stack-based buffer overflow. This issue is remotely exploitable. Services that have SSLv2 disabled would not be vulnerable to this issue. (CVE-2002-0656) 2. The SSLv3 session ID supplied to a client from a malicious server could be oversized and overrun a buffer. This issue looks to be remotely exploitable. (CVE-2002-0656) 3. Various buffers used for storing ASCII representations of integers were too small on 64 bit platforms. This issue may be exploitable. (CVE-2002-0655) A further issue was found in OpenSSL 0.9.7 that does not affect versions of OpenSSL shipped with Red Hat Linux (CVE-2002-0657). A large number of applications within Red Hat Linux make use the OpenSSL library to provide SSL support. All users are therefore advised to upgrade to the errata OpenSSL packages, which contain patches to correct these vulnerabilities. NOTE : Please read the Solution section below as it contains instructions for making sure that all SSL-enabled processes are restarted after the update is applied. Thanks go to the OpenSSL team and Ben Laurie for providing patches for these issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id12315
    published2004-07-06
    reporterThis script is Copyright (C) 2004-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/12315
    titleRHEL 2.1 : openssl (RHSA-2002:157)
  • NASL familyMandriva Local Security Checks
    NASL idMANDRAKE_MDKSA-2002-046.NASL
    descriptionAn audit of the OpenSSL code by A.L. Digital Ltd and The Bunker, under the DARPA program CHATS, discovered a number of vulnerabilities in the OpenSSL code that are all potentially remotely exploitable. From the OpenSSL advisory : 1. The client master key in SSL2 could be oversized and overrun a buffer. This vulnerability was also independently discovered by consultants at Neohapsis (http://www.neohapsis.com/) who have also demonstrated that the vulerability is exploitable. Exploit code is NOT available at this time. 2. The session ID supplied to a client in SSL3 could be oversized and overrun a buffer. 3. The master key supplied to an SSL3 server could be oversized and overrun a stack-based buffer. This issues only affects OpenSSL 0.9.7 with Kerberos enabled. 4. Various buffers for ASCII representations of integers were too small on 64 bit platforms. At the same time, various potential buffer overflows have had assertions added; these are not known to be exploitable. Finally, a vulnerability was found by Adi Stav and James Yonan independently in the ASN1 parser which can be confused by supplying it with certain invalid encodings. There are no known exploits for this vulnerability. All of these vulnerabilities are fixed in OpenSSL 0.9.6f. Patches have been applied to the versions of OpenSSL provided in this update to fix all of these problems, except for the ASN1 vulnerability, which a fix will be provided for once MandrakeSoft has had a chance to QA the new packages. In the meantime, it is is strongly encouraged that all users upgrade to these OpenSSL packages. Update : These new OpenSSL packages are available to additionally fix the ASN1 vulnerability described above. All Mandrake Linux users are encouraged to upgrade to these new packages.
    last seen2020-06-01
    modified2020-06-02
    plugin id13949
    published2004-07-31
    reporterThis script is Copyright (C) 2004-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/13949
    titleMandrake Linux Security Advisory : openssl (MDKSA-2002:046-1)