Vulnerabilities > CVE-2011-0520 - Buffer Errors vulnerability in Maradns 1.4.03/1.4.05
Attack vector
NETWORK Attack complexity
LOW Privileges required
NONE Confidentiality impact
PARTIAL Integrity impact
PARTIAL Availability impact
PARTIAL Summary
The compress_add_dlabel_points function in dns/Compress.c in MaraDNS 1.4.03, 1.4.05, and probably other versions allows remote attackers to cause a denial of service (segmentation fault) and possibly execute arbitrary code via a long DNS hostname with a large number of labels, which triggers a heap-based buffer overflow.
Vulnerable Configurations
Part | Description | Count |
---|---|---|
Application | 2 |
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 Gentoo Local Security Checks NASL id GENTOO_GLSA-201111-06.NASL description The remote host is affected by the vulnerability described in GLSA-201111-06 (MaraDNS: Arbitrary code execution) A long DNS hostname with a large number of labels could trigger a buffer overflow in the compress_add_dlabel_points() function of dns/Compress.c. Impact : A remote unauthenticated attacker could execute arbitrary code or cause a Denial of Service. Workaround : There is no known workaround at this time. last seen 2020-06-01 modified 2020-06-02 plugin id 56902 published 2011-11-22 reporter This script is Copyright (C) 2011-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/56902 title GLSA-201111-06 : MaraDNS: Arbitrary code execution NASL family FreeBSD Local Security Checks NASL id FREEBSD_PKG_8015600F2C8011E09CC100163E5BF4F9.NASL description MaraDNS developer Sam Trenholme reports : ... a mistake in allocating an array of integers, allocating it in bytes instead of sizeof(int) units. This resulted in a buffer being too small, allowing it to be overwritten. The impact of this programming error is that MaraDNS can be crashed by sending MaraDNS a single last seen 2020-06-01 modified 2020-06-02 plugin id 51832 published 2011-02-01 reporter This script is Copyright (C) 2011-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/51832 title FreeBSD : maradns -- denial of service when resolving a long DNS hostname (8015600f-2c80-11e0-9cc1-00163e5bf4f9) NASL family DNS NASL id MARADNS_2_0_02.NASL description According to its self-reported version number, the MaraDNS server running on the remote host is affected by a heap-based buffer overflow due to improperly sanitizing user-supplied input submitted to the compress_add_dlabel_points last seen 2020-06-01 modified 2020-06-02 plugin id 73481 published 2014-04-11 reporter This script is Copyright (C) 2014-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/73481 title MaraDNS < 1.3.07.11 / 1.4.x < 1.4.06 / 2.0.x < 2.0.02 compress_add_dlabel_points Function Buffer Overflow NASL family Debian Local Security Checks NASL id DEBIAN_DSA-2196.NASL description Witold Baryluk discovered that MaraDNS, a simple security-focused Domain Name System server, may overflow an internal buffer when handling requests with a large number of labels, causing a server crash and the consequent denial of service. last seen 2020-03-17 modified 2011-03-21 plugin id 52720 published 2011-03-21 reporter This script is Copyright (C) 2011-2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/52720 title Debian DSA-2196-1 : maradns - buffer overflow
References
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=610834
- http://osvdb.org/70630
- http://secunia.com/advisories/43027
- http://secunia.com/advisories/43107
- http://www.debian.org/security/2011/dsa-2196
- http://www.openwall.com/lists/oss-security/2011/01/24/1
- http://www.openwall.com/lists/oss-security/2011/01/24/6
- http://www.securityfocus.com/bid/45966
- http://www.vupen.com/english/advisories/2011/0699
- https://exchange.xforce.ibmcloud.com/vulnerabilities/64885