ID CVE-2009-1759
Summary Stack-based buffer overflow in the btFiles::BuildFromMI function (trunk/btfiles.cpp) in Enhanced CTorrent (aka dTorrent) 3.3.2 and probably earlier, and CTorrent 1.3.4, allows remote attackers to cause a denial of service (crash) and possibly execute arbitrary code via a Torrent file containing a long path.
References
Vulnerable Configurations
  • cpe:2.3:a:rahul:dtorrent:3.3.2
    cpe:2.3:a:rahul:dtorrent:3.3.2
  • cpe:2.3:a:rahul:dtorrent:3.3.1
    cpe:2.3:a:rahul:dtorrent:3.3.1
  • cpe:2.3:a:rahul:dtorrent:3.3.0
    cpe:2.3:a:rahul:dtorrent:3.3.0
  • cpe:2.3:a:rahul:dtorrent:3.2.0
    cpe:2.3:a:rahul:dtorrent:3.2.0
  • cpe:2.3:a:rahul:ctorrent:1.3.4
    cpe:2.3:a:rahul:ctorrent:1.3.4
CVSS
Base: 9.3 (as of 22-05-2009 - 11:23)
Impact:
Exploitability:
CWE CWE-119
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.
  • Overflow Binary Resource File
    An attack of this type exploits a buffer overflow vulnerability in the handling of binary resources. Binary resources may include music files like MP3, image files like JPEG files, and any other binary file. These attacks may pass unnoticed to the client machine through normal usage of files, such as a browser loading a seemingly innocent JPEG file. This can allow the attacker access to the execution stack and execute arbitrary code in the target process. This attack pattern is a variant of standard buffer overflow attacks using an unexpected vector (binary files) to wrap its attack and open up a new attack vector. The attacker is required to either directly serve the binary content to the victim, or place it in a locale like a MP3 sharing application, for the victim to download. The attacker then is notified upon the download or otherwise locates the vulnerability opened up by the buffer overflow.
  • Buffer Overflow via Symbolic Links
    This type of attack leverages the use of symbolic links to cause buffer overflows. An attacker can try to create or manipulate a symbolic link file such that its contents result in out of bounds data. When the target software processes the symbolic link file, it could potentially overflow internal buffers with insufficient bounds checking.
  • Overflow Variables and Tags
    This type of attack leverages the use of tags or variables from a formatted configuration data to cause buffer overflow. The attacker crafts a malicious HTML page or configuration file that includes oversized strings, thus causing an overflow.
  • Buffer Overflow via Parameter Expansion
    In this attack, the target software is given input that the attacker knows will be modified and expanded in size during processing. This attack relies on the target software failing to anticipate that the expanded data may exceed some internal limit, thereby creating a buffer overflow.
  • Buffer Overflow in an API Call
    This attack targets libraries or shared code modules which are vulnerable to buffer overflow attacks. An attacker who has access to an API may try to embed malicious code in the API function call and exploit a buffer overflow vulnerability in the function's implementation. All clients that make use of the code library thus become vulnerable by association. This has a very broad effect on security across a system, usually affecting more than one software process.
  • Buffer Overflow in Local Command-Line Utilities
    This attack targets command-line utilities available in a number of shells. An attacker can leverage a vulnerability found in a command-line utility to escalate privilege to root.
Access
VectorComplexityAuthentication
NETWORK MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
COMPLETE COMPLETE COMPLETE
exploit-db via4
description cTorrent/DTorrent (.Torrent File) Buffer Overflow Exploit. CVE-2009-1759. Local exploit for linux platform
file exploits/linux/local/8470.py
id EDB-ID:8470
last seen 2016-02-01
modified 2009-04-17
platform linux
port
published 2009-04-17
reporter Michael Brooks
source https://www.exploit-db.com/download/8470/
title cTorrent/DTorrent - .Torrent Buffer Overflow Exploit
type local
nessus via4
  • NASL family FreeBSD Local Security Checks
    NASL id FREEBSD_PKG_83D7D149B96511DEA5150022156E8794.NASL
    description Securityfocus reports : cTorrent and dTorrent are prone to a remote buffer-overflow vulnerability because the software fails to properly bounds-check user-supplied input before copying it to an insufficiently sized memory buffer. Successful exploits allow remote attackers to execute arbitrary machine code in the context of a vulnerable application. Failed exploit attempts will likely result in denial-of-service conditions.
    last seen 2019-02-21
    modified 2018-12-05
    plugin id 42310
    published 2009-10-30
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=42310
    title FreeBSD : Enhanced cTorrent -- stack-based overflow (83d7d149-b965-11de-a515-0022156e8794)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2009-8897.NASL
    description Security update, fixes a stack-based buffer overflow (CVE-2009-1759). 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 seen 2019-02-21
    modified 2015-10-21
    plugin id 40758
    published 2009-08-25
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=40758
    title Fedora 11 : ctorrent-1.3.4-10.dnh3.3.2.fc11 (2009-8897)
  • NASL family Debian Local Security Checks
    NASL id DEBIAN_DSA-1817.NASL
    description Michael Brooks discovered that ctorrent, a text-mode bittorrent client, does not verify the length of file paths in torrent files. An attacker can exploit this via a crafted torrent that contains a long file path to execute arbitrary code with the rights of the user opening the file. The oldstable distribution (etch) does not contain ctorrent.
    last seen 2019-02-21
    modified 2018-11-28
    plugin id 39440
    published 2009-06-18
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=39440
    title Debian DSA-1817-1 : ctorrent - stack-based buffer overflow
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2009-8969.NASL
    description Security update, fixes a stack-based buffer overflow (CVE-2009-1759) 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 seen 2019-02-21
    modified 2015-10-21
    plugin id 40759
    published 2009-08-25
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=40759
    title Fedora 10 : ctorrent-1.3.4-7.dnh3.3.2.fc10 (2009-8969)
  • NASL family Gentoo Local Security Checks
    NASL id GENTOO_GLSA-201311-11.NASL
    description The remote host is affected by the vulnerability described in GLSA-201311-11 (CTorrent: User-assisted arbitrary code execution) CTorrent contains a stack-based buffer overflow in the btFiles::BuildFromMI function in trunk/btfiles.cpp. Impact : A remote attacker could entice a user to open a specially crafted torrent file using CTorrent, possibly resulting in execution of arbitrary code with the privileges of the process or a Denial of Service condition. Workaround : There is no known workaround at this time.
    last seen 2019-02-21
    modified 2018-07-12
    plugin id 70995
    published 2013-11-21
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=70995
    title GLSA-201311-11 : CTorrent: User-assisted arbitrary code execution
refmap via4
bid 34584
confirm
debian DSA-1817
exploit-db 8470
fedora
  • FEDORA-2009-8897
  • FEDORA-2009-8969
mlist [oss-security] 20090520 CVE request: ctorrent
secunia
  • 34752
  • 35499
  • 36471
vupen ADV-2009-1092
xf ctorrent-btfiles-bo(49959)
Last major update 02-09-2009 - 01:23
Published 22-05-2009 - 07:52
Last modified 28-09-2017 - 21:34
Back to Top