Vulnerabilities > CVE-2007-6341 - Buffer Errors vulnerability in NET DNS NET DNS 0.60

047910
CVSS 5.0 - MEDIUM
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
NONE
Integrity impact
NONE
Availability impact
PARTIAL
network
low complexity
net-dns
CWE-119
nessus
exploit available

Summary

Net/DNS/RR/A.pm in Net::DNS 0.60 build 654, as used in packages such as SpamAssassin and OTRS, allows remote attackers to cause a denial of service (program "croak") via a crafted DNS response.

Vulnerable Configurations

Part Description Count
Application
Net_Dns
1

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.

Exploit-Db

descriptionPerl Net::DNS 0.48/0.59/0.60 DNS Response Remote Denial of Service Vulnerability. CVE-2007-6341. Dos exploit for linux platform
idEDB-ID:30895
last seen2016-02-03
modified2007-12-17
published2007-12-17
reporterbeSTORM
sourcehttps://www.exploit-db.com/download/30895/
titlePerl Net::DNS 0.48/0.59/0.60 - DNS Response Remote Denial of Service Vulnerability

Nessus

  • NASL familyUbuntu Local Security Checks
    NASL idUBUNTU_USN-594-1.NASL
    descriptionIt was discovered that Net::DNS did not correctly validate the size of DNS replies. A remote attacker could send a specially crafted DNS response and cause applications using Net::DNS to abort, leading to a denial of service. Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id31702
    published2008-03-28
    reporterUbuntu Security Notice (C) 2008-2019 Canonical, Inc. / NASL script (C) 2018 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/31702
    titleUbuntu 6.06 LTS / 6.10 : libnet-dns-perl vulnerability (USN-594-1)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-1515.NASL
    descriptionSeveral remote vulnerabilities have been discovered in libnet-dns-perl. The Common Vulnerabilities and Exposures project identifies the following problems : It was discovered that libnet-dns-perl generates very weak transaction IDs when sending queries (CVE-2007-3377 ). This update switches transaction ID generation to the Perl random generator, making prediction attacks more difficult. Compression loops in domain names resulted in an infinite loop in the domain name expander written in Perl (CVE-2007-3409 ). The Debian package uses an expander written in C by default, but this vulnerability has been addressed nevertheless. Decoding malformed A records could lead to a crash (via an uncaught Perl exception) of certain applications using libnet-dns-perl (CVE-2007-6341 ).
    last seen2020-06-01
    modified2020-06-02
    plugin id31426
    published2008-03-13
    reporterThis script is Copyright (C) 2008-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/31426
    titleDebian DSA-1515-1 : libnet-dns-perl - several vulnerabilities
  • NASL familyMandriva Local Security Checks
    NASL idMANDRIVA_MDVSA-2008-073.NASL
    descriptionA vulnerability in the Net::DNS perl module was found that could allow remote attackers to cause a denial of service via a crafted DNS response. The updated packages have been patched to correct this issue.
    last seen2020-06-01
    modified2020-06-02
    plugin id36350
    published2009-04-23
    reporterThis script is Copyright (C) 2009-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/36350
    titleMandriva Linux Security Advisory : perl-Net-DNS (MDVSA-2008:073)

Seebug

bulletinFamilyexploit
descriptionBUGTRAQ ID: 26902 CVE ID:CVE-2007-6341 Perl Net::DNS是一款使用Perl实现的DNS解析应用程序。 Perl Net::DNS不正确处理畸形应答请求,远程攻击者可以利用漏洞对应用程序进行拒绝服务攻击。 问题存在于Net/DNS/RR/A.pm: if ($self-&gt;{&quot;rdlength&quot;} &gt; 0) { $self-&gt;{&quot;address&quot;} = inet_ntoa(substr($$data, $offset, 4)); } 由于在使用substr时不正确验证$$data有4字节可读,可导致数据发送给inet_ntoa不足够而导致触发如下代码: ip_address = SvPVbyte(ip_address_sv, addrlen); if (addrlen == sizeof(addr) || addrlen == 4) addr.s_addr = (ip_address[0] &amp; 0xFF) &lt;&lt; 24 | (ip_address[1] &amp; 0xFF) &lt;&lt; 16 | (ip_address[2] &amp; 0xFF) &lt;&lt; 8 | (ip_address[3] &amp; 0xFF); else croak(&quot;Bad arg length for %s, length is %d, should be %d&quot;, &quot;Socket::inet_ntoa&quot;, addrlen, sizeof(addr)); 构建恶意的DNS应答可触发此漏洞,并导致PERL崩溃。 Net::DNS Net::DNS 0.60 目前没有解决方案提供: <a href=http://www.net-dns.org/ target=_blank>http://www.net-dns.org/</a>
idSSV:2638
last seen2017-11-19
modified2007-12-18
published2007-12-18
reporterRoot
sourcehttps://www.seebug.org/vuldb/ssvid-2638
titlePerl Net::DNS DNS应答远程拒绝服务漏洞

Statements

contributorJoshua Bressers
lastmodified2008-01-07
organizationRed Hat
statementRed Hat does not consider this flaw to be a security issue. For more information please see: https://bugzilla.redhat.com/show_bug.cgi?id=426437