Vulnerabilities > CVE-2007-6181 - Buffer Errors vulnerability in Redhat Cygwin 1.5.19/1.5.7/1.5.71
Attack vector
NETWORK Attack complexity
MEDIUM Privileges required
SINGLE Confidentiality impact
COMPLETE Integrity impact
COMPLETE Availability impact
COMPLETE Summary
Heap-based buffer overflow in cygwin1.dll in Cygwin 1.5.7 and earlier allows context-dependent attackers to execute arbitrary code via a filename with a certain length, as demonstrated by a remote authenticated user who uses the SCP protocol to send a file to the Cygwin machine, and thereby causes scp.exe on this machine to execute, and then overwrite heap memory with characters from the filename. NOTE: it is also reported that a related issue might exist in 1.5.7 through 1.5.19.
Vulnerable Configurations
Part | Description | Count |
---|---|---|
Application | 4 |
Common Weakness Enumeration (CWE)
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 family | Windows |
NASL id | CYGWIN_1_5_24.NASL |
description | Cygwin, a Linux-like environment for Windows, is installed on the remote host. The version of Cygwin installed on the remote host is affected by a heap-based buffer overflow vulnerability involving a filename length check. Using a filename between 233 and 239 characters, an attacker who can create a file on the remote can leverage this issue to execute arbitrary code on the affected host subject to the privileges under which Cygwin operates. |
last seen | 2020-06-01 |
modified | 2020-06-02 |
plugin id | 28330 |
published | 2007-11-27 |
reporter | This script is Copyright (C) 2007-2018 Tenable Network Security, Inc. |
source | https://www.tenable.com/plugins/nessus/28330 |
title | Cygwin < 1.5.24 cygwin1.dll Crafted Filename Handling Overflow |
code |
|
References
- http://cygwin.com/ml/cygwin-developers/2007-11/msg00005.html
- http://cygwin.com/ml/cygwin-developers/2007-11/msg00024.html
- http://cygwin.com/ml/cygwin-developers/2007-11/msg00026.html
- http://securityreason.com/securityalert/3406
- http://www.securityfocus.com/archive/1/484153/100/0/threaded
- http://www.securityfocus.com/bid/26557