Vulnerabilities > CVE-2014-1692 - Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in Openbsd Openssh

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

Summary

The hash_buffer function in schnorr.c in OpenSSH through 6.4, when Makefile.inc is modified to enable the J-PAKE protocol, does not initialize certain data structures, which might allow remote attackers to cause a denial of service (memory corruption) or have unspecified other impact via vectors that trigger an error condition.

Vulnerable Configurations

Part Description Count
Application
Openbsd
201

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.

Nessus

  • NASL familyMisc.
    NASL idOPENSSH_66.NASL
    descriptionAccording to its banner, the version of OpenSSH running on the remote host is prior to 6.6. It is, therefore, affected by the following vulnerabilities : - A flaw exists due to a failure to initialize certain data structures when makefile.inc is modified to enable the J-PAKE protocol. An unauthenticated, remote attacker can exploit this to corrupt memory, resulting in a denial of service condition and potentially the execution of arbitrary code. (CVE-2014-1692) - An error exists related to the
    last seen2020-06-01
    modified2020-06-02
    plugin id73079
    published2014-03-18
    reporterThis script is Copyright (C) 2014-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/73079
    titleOpenSSH < 6.6 Multiple Vulnerabilities
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(73079);
      script_version("1.10");
      script_cvs_date("Date: 2018/11/15 20:50:23");
    
      script_cve_id("CVE-2014-1692", "CVE-2014-2532");
      script_bugtraq_id(65230, 66355);
    
      script_name(english:"OpenSSH < 6.6 Multiple Vulnerabilities");
      script_summary(english:"Checks OpenSSH banner version.");
    
      script_set_attribute(attribute:"synopsis", value:
    "The SSH server on the remote host is affected by multiple
    vulnerabilities.");
      script_set_attribute(attribute:"description", value:
    "According to its banner, the version of OpenSSH running on the remote
    host is prior to 6.6. It is, therefore, affected by the following
    vulnerabilities :
    
      - A flaw exists due to a failure to initialize certain
        data structures when makefile.inc is modified to enable
        the J-PAKE protocol. An unauthenticated, remote attacker
        can exploit this to corrupt memory, resulting in a
        denial of service condition and potentially the
        execution of arbitrary code. (CVE-2014-1692)
    
      - An error exists related to the 'AcceptEnv' configuration
        setting in sshd_config due to improper processing of
        wildcard characters. An unauthenticated, remote attacker
        can exploit this, via a specially crafted request, to
        bypass intended environment restrictions.
        (CVE-2014-2532)
    
    Note that Nessus has not tested for these issues but has instead
    relied only on the application's self-reported version number.");
      script_set_attribute(attribute:"see_also", value:"http://www.openssh.com/txt/release-6.6");
      script_set_attribute(attribute:"see_also", value:"https://lists.gt.net/openssh/dev/57663#57663");
      script_set_attribute(attribute:"solution", value:"Upgrade to OpenSSH version 6.6 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:"2014/03/15");
      script_set_attribute(attribute:"patch_publication_date", value:"2014/03/15");
      script_set_attribute(attribute:"plugin_publication_date", value:"2014/03/18");
    
      script_set_attribute(attribute:"potential_vulnerability", value:"true");
      script_set_attribute(attribute:"plugin_type", value:"remote");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:openbsd:openssh");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"Misc.");
    
      script_copyright(english:"This script is Copyright (C) 2014-2018 Tenable Network Security, Inc.");
    
      script_dependencies("ssh_detect.nasl");
      script_require_keys("Settings/ParanoidReport");
      script_require_ports("Services/ssh");
    
      exit(0);
    }
    
    include("audit.inc");
    include("backport.inc");
    include("global_settings.inc");
    include("misc_func.inc");
    
    # Ensure the port is open.
    port = get_service(svc:"ssh", exit_on_fail:TRUE);
    
    # Get banner for service.
    banner = get_kb_item_or_exit("SSH/banner/"+port);
    
    bp_banner = tolower(get_backport_banner(banner:banner));
    if ("openssh" >!< bp_banner) audit(AUDIT_NOT_LISTEN, "OpenSSH", port);
    if (backported) audit(code:0, AUDIT_BACKPORT_SERVICE, port, "OpenSSH");
    
    # Check the version in the backported banner.
    match = eregmatch(string:bp_banner, pattern:"openssh[-_]([0-9][-._0-9a-z]+)");
    if (isnull(match)) audit(AUDIT_SERVICE_VER_FAIL, "OpenSSH", port);
    version = match[1];
    
    # Does not affect all configurations
    if (report_paranoia < 2) audit(AUDIT_PARANOID);
    
    # Affected : < 6.6
    if (
      version =~ "^[0-5]\." ||
      version =~ "^6\.[0-5]($|[^0-9])"
    )
    {
      if (report_verbosity > 0)
      {
        report =
          '\n  Version source    : ' + banner +
          '\n  Installed version : ' + version +
          '\n  Fixed version     : 6.6\n';
        security_hole(port:port, extra:report);
      }
      else security_hole(port);
      exit(0);
    }
    else audit(AUDIT_LISTEN_NOT_VULN, "OpenSSH", port, version);
    
  • NASL familyWindows
    NASL idIBM_GPFS_ISG3T1020637_WINDOWS.NASL
    descriptionA version of IBM General Parallel File System (GPFS) that is 3.5.0.11 or later but prior to 3.5.0.19 is installed on the remote host. It is, therefore, affected by a memory corruption issue in the bundled version of OpenSSH. The issue exists due to a failure to initialize certain data structures when makefile.inc is modified to enable the J-PAKE protocol. An unauthenticated, remote attacker can exploit this to corrupt memory, resulting in a denial of service condition and potentially the execution of arbitrary code.
    last seen2020-06-01
    modified2020-06-02
    plugin id76766
    published2014-07-24
    reporterThis script is Copyright (C) 2014-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/76766
    titleIBM General Parallel File System OpenSSH Memory Corruption

Seebug

bulletinFamilyexploit
descriptionBUGTRAQ ID: 65230 CVE(CAN) ID: CVE-2014-1692 OpenSSH是SSH协议的开源实现。 OpenSSH 6.4版本及之前版本,如果Makefile.inc修改为启用J-PAKE协议,schnorr.c内的hash_buffer函数就不会初始化某些数据结构,这可使远程攻击者造成拒绝服务(内存破坏)。 0 OpenSSH OpenSSH &lt; 6.4 厂商补丁: OpenSSH ------- 目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载: http://www.openssh.com/
idSSV:61450
last seen2017-11-19
modified2014-02-14
published2014-02-14
reporterRoot
titleOpenSSH 'schnorr.c'远程内存破坏漏洞