Vulnerabilities > CVE-2007-1995 - Improper Input Validation vulnerability in Quagga

047910
CVSS 6.3 - MEDIUM
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
SINGLE
Confidentiality impact
NONE
Integrity impact
NONE
Availability impact
COMPLETE
network
quagga
CWE-20
nessus

Summary

bgpd/bgp_attr.c in Quagga 0.98.6 and earlier, and 0.99.6 and earlier 0.99 versions, does not validate length values in the MP_REACH_NLRI and MP_UNREACH_NLRI attributes, which allows remote attackers to cause a denial of service (daemon crash or exit) via crafted UPDATE messages that trigger an assertion error or out of bounds read.

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.
  • Server Side Include (SSI) Injection
    An attacker can use Server Side Include (SSI) Injection to send code to a web application that then gets executed by the web server. Doing so enables the attacker to achieve similar results to Cross Site Scripting, viz., arbitrary code execution and information disclosure, albeit on a more limited scale, since the SSI directives are nowhere near as powerful as a full-fledged scripting language. Nonetheless, the attacker can conveniently gain access to sensitive files, such as password files, and execute shell commands.
  • Cross Zone Scripting
    An attacker is able to cause a victim to load content into their web-browser that bypasses security zone controls and gain access to increased privileges to execute scripting code or other web objects such as unsigned ActiveX controls or applets. This is a privilege elevation attack targeted at zone-based web-browser security. In a zone-based model, pages belong to one of a set of zones corresponding to the level of privilege assigned to that page. Pages in an untrusted zone would have a lesser level of access to the system and/or be restricted in the types of executable content it was allowed to invoke. In a cross-zone scripting attack, a page that should be assigned to a less privileged zone is granted the privileges of a more trusted zone. This can be accomplished by exploiting bugs in the browser, exploiting incorrect configuration in the zone controls, through a cross-site scripting attack that causes the attackers' content to be treated as coming from a more trusted page, or by leveraging some piece of system functionality that is accessible from both the trusted and less trusted zone. This attack differs from "Restful Privilege Escalation" in that the latter correlates to the inadequate securing of RESTful access methods (such as HTTP DELETE) on the server, while cross-zone scripting attacks the concept of security zones as implemented by a browser.
  • Cross Site Scripting through Log Files
    An attacker may leverage a system weakness where logs are susceptible to log injection to insert scripts into the system's logs. If these logs are later viewed by an administrator through a thin administrative interface and the log data is not properly HTML encoded before being written to the page, the attackers' scripts stored in the log will be executed in the administrative interface with potentially serious consequences. This attack pattern is really a combination of two other attack patterns: log injection and stored cross site scripting.
  • Command Line Execution through SQL Injection
    An attacker uses standard SQL injection methods to inject data into the command line for execution. This could be done directly through misuse of directives such as MSSQL_xp_cmdshell or indirectly through injection of data into the database that would be interpreted as shell commands. Sometime later, an unscrupulous backend application (or could be part of the functionality of the same application) fetches the injected data stored in the database and uses this data as command line arguments without performing proper validation. The malicious data escapes that data plane by spawning new commands to be executed on the host.

Nessus

  • NASL familyCentOS Local Security Checks
    NASL idCENTOS_RHSA-2007-0389.NASL
    descriptionAn updated quagga package that fixes a security bug is now available for Red Hat Enterprise Linux 3, 4 and 5. This update has been rated as having moderate security impact by the Red Hat Security Response Team. Quagga is a TCP/IP based routing software suite. An out of bounds memory read flaw was discovered in Quagga
    last seen2020-06-01
    modified2020-06-02
    plugin id25354
    published2007-06-01
    reporterThis script is Copyright (C) 2007-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/25354
    titleCentOS 3 / 4 / 5 : quagga (CESA-2007:0389)
  • NASL familyMisc.
    NASL idQUAGGA_0_99_7.NASL
    descriptionAccording to its self-reported version number, the installation of Quagga
    last seen2020-06-01
    modified2020-06-02
    plugin id59794
    published2012-06-29
    reporterThis script is Copyright (C) 2012-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/59794
    titleQuagga < 0.98.7 / 0.99.7 BGPD Denial of Service Vulnerability
  • NASL familyRed Hat Local Security Checks
    NASL idREDHAT-RHSA-2007-0389.NASL
    descriptionAn updated quagga package that fixes a security bug is now available for Red Hat Enterprise Linux 3, 4 and 5. This update has been rated as having moderate security impact by the Red Hat Security Response Team. Quagga is a TCP/IP based routing software suite. An out of bounds memory read flaw was discovered in Quagga
    last seen2020-06-01
    modified2020-06-02
    plugin id25363
    published2007-06-01
    reporterThis script is Copyright (C) 2007-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/25363
    titleRHEL 3 / 4 / 5 : quagga (RHSA-2007:0389)
  • NASL familyGentoo Local Security Checks
    NASL idGENTOO_GLSA-200705-05.NASL
    descriptionThe remote host is affected by the vulnerability described in GLSA-200705-05 (Quagga: Denial of Service) The Quagga development team reported a vulnerability in the BGP routing deamon when processing NLRI attributes inside UPDATE messages. Impact : A malicious peer inside a BGP area could send a specially crafted packet to a Quagga instance, possibly resulting in a crash of the Quagga daemon. Workaround : There is no known workaround at this time.
    last seen2020-06-01
    modified2020-06-02
    plugin id25155
    published2007-05-03
    reporterThis script is Copyright (C) 2007-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/25155
    titleGLSA-200705-05 : Quagga: Denial of Service
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2007-0838.NASL
    descriptionUpgrade to new upstream 0.99.7 should also fix the CVE-2007-1995 Quagga bgpd DoS 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 seen2020-06-01
    modified2020-06-02
    plugin id27682
    published2007-11-06
    reporterThis script is Copyright (C) 2007-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/27682
    titleFedora 7 : quagga-0.99.7-1.fc7 (2007-0838)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_QUAGGA-3233.NASL
    descriptionRemote attackers could crash quagga via specially crafted
    last seen2020-06-01
    modified2020-06-02
    plugin id27417
    published2007-10-17
    reporterThis script is Copyright (C) 2007-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/27417
    titleopenSUSE 10 Security Update : quagga (quagga-3233)
  • NASL familyUbuntu Local Security Checks
    NASL idUBUNTU_USN-461-1.NASL
    descriptionIt was discovered that Quagga did not correctly verify length information sent from configured peers. Remote malicious peers could send a specially crafted UPDATE message which would cause bgpd 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 id28061
    published2007-11-10
    reporterUbuntu Security Notice (C) 2007-2019 Canonical, Inc. / NASL script (C) 2018 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/28061
    titleUbuntu 6.06 LTS / 6.10 / 7.04 : quagga vulnerability (USN-461-1)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_QUAGGA-3230.NASL
    descriptionRemote attackers could crash quagga via specially crafted
    last seen2020-06-01
    modified2020-06-02
    plugin id29567
    published2007-12-13
    reporterThis script is Copyright (C) 2007-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/29567
    titleSuSE 10 Security Update : quagga (ZYPP Patch Number 3230)
  • NASL familyScientific Linux Local Security Checks
    NASL idSL_20070530_QUAGGA_ON_SL5_X__SL4_X__SL3_X.NASL
    descriptionAn out of bounds memory read flaw was discovered in Quagga
    last seen2020-06-01
    modified2020-06-02
    plugin id60193
    published2012-08-01
    reporterThis script is Copyright (C) 2012-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/60193
    titleScientific Linux Security Update : quagga on SL5.x, SL4.x, SL3.x i386/x86_64
  • NASL familyOracle Linux Local Security Checks
    NASL idORACLELINUX_ELSA-2007-0389.NASL
    descriptionFrom Red Hat Security Advisory 2007:0389 : An updated quagga package that fixes a security bug is now available for Red Hat Enterprise Linux 3, 4 and 5. This update has been rated as having moderate security impact by the Red Hat Security Response Team. Quagga is a TCP/IP based routing software suite. An out of bounds memory read flaw was discovered in Quagga
    last seen2020-06-01
    modified2020-06-02
    plugin id67506
    published2013-07-12
    reporterThis script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/67506
    titleOracle Linux 3 / 4 / 5 : quagga (ELSA-2007-0389)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-1293.NASL
    descriptionPaul Jakma discovered that specially crafted UPDATE messages can trigger an out of boundary read that can result in a system crash of quagga, the BGP/OSPF/RIP routing daemon.
    last seen2020-06-01
    modified2020-06-02
    plugin id25258
    published2007-05-20
    reporterThis script is Copyright (C) 2007-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/25258
    titleDebian DSA-1293-1 : quagga - out of boundary read
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2007-525.NASL
    descriptionThis update contains rebase to quagga-0.99.7 along with fix for CVE-2007-1995. 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 seen2020-06-01
    modified2020-06-02
    plugin id25448
    published2007-06-07
    reporterThis script is Copyright (C) 2007-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/25448
    titleFedora Core 6 : quagga-0.99.7-1.fc6 (2007-525)

Oval

accepted2013-04-29T04:11:04.355-04:00
classvulnerability
contributors
  • nameAharon Chernin
    organizationSCAP.com, LLC
  • nameDragos Prisaca
    organizationG2, Inc.
definition_extensions
  • commentThe operating system installed on the system is Red Hat Enterprise Linux 3
    ovaloval:org.mitre.oval:def:11782
  • commentCentOS Linux 3.x
    ovaloval:org.mitre.oval:def:16651
  • commentThe operating system installed on the system is Red Hat Enterprise Linux 4
    ovaloval:org.mitre.oval:def:11831
  • commentCentOS Linux 4.x
    ovaloval:org.mitre.oval:def:16636
  • commentOracle Linux 4.x
    ovaloval:org.mitre.oval:def:15990
  • commentThe operating system installed on the system is Red Hat Enterprise Linux 5
    ovaloval:org.mitre.oval:def:11414
  • commentThe operating system installed on the system is CentOS Linux 5.x
    ovaloval:org.mitre.oval:def:15802
  • commentOracle Linux 5.x
    ovaloval:org.mitre.oval:def:15459
descriptionbgpd/bgp_attr.c in Quagga 0.98.6 and earlier, and 0.99.6 and earlier 0.99 versions, does not validate length values in the MP_REACH_NLRI and MP_UNREACH_NLRI attributes, which allows remote attackers to cause a denial of service (daemon crash or exit) via crafted UPDATE messages that trigger an assertion error or out of bounds read.
familyunix
idoval:org.mitre.oval:def:11048
statusaccepted
submitted2010-07-09T03:56:16-04:00
titlebgpd/bgp_attr.c in Quagga 0.98.6 and earlier, and 0.99.6 and earlier 0.99 versions, does not validate length values in the MP_REACH_NLRI and MP_UNREACH_NLRI attributes, which allows remote attackers to cause a denial of service (daemon crash or exit) via crafted UPDATE messages that trigger an assertion error or out of bounds read.
version27

Redhat

advisories
bugzilla
id240478
titleCVE-2007-1995 Quagga bgpd DoS
oval
OR
  • commentRed Hat Enterprise Linux must be installed
    ovaloval:com.redhat.rhba:tst:20070304026
  • AND
    • commentRed Hat Enterprise Linux 4 is installed
      ovaloval:com.redhat.rhba:tst:20070304025
    • OR
      • AND
        • commentquagga is earlier than 0:0.98.3-2.4.0.1.el4
          ovaloval:com.redhat.rhsa:tst:20070389001
        • commentquagga is signed with Red Hat master key
          ovaloval:com.redhat.rhsa:tst:20060525002
      • AND
        • commentquagga-contrib is earlier than 0:0.98.3-2.4.0.1.el4
          ovaloval:com.redhat.rhsa:tst:20070389003
        • commentquagga-contrib is signed with Red Hat master key
          ovaloval:com.redhat.rhsa:tst:20060525006
      • AND
        • commentquagga-devel is earlier than 0:0.98.3-2.4.0.1.el4
          ovaloval:com.redhat.rhsa:tst:20070389005
        • commentquagga-devel is signed with Red Hat master key
          ovaloval:com.redhat.rhsa:tst:20060525004
  • AND
    • commentRed Hat Enterprise Linux 5 is installed
      ovaloval:com.redhat.rhba:tst:20070331005
    • OR
      • AND
        • commentquagga is earlier than 0:0.98.6-2.1.0.1.el5
          ovaloval:com.redhat.rhsa:tst:20070389008
        • commentquagga is signed with Red Hat redhatrelease key
          ovaloval:com.redhat.rhsa:tst:20070389009
      • AND
        • commentquagga-contrib is earlier than 0:0.98.6-2.1.0.1.el5
          ovaloval:com.redhat.rhsa:tst:20070389010
        • commentquagga-contrib is signed with Red Hat redhatrelease key
          ovaloval:com.redhat.rhsa:tst:20070389011
      • AND
        • commentquagga-devel is earlier than 0:0.98.6-2.1.0.1.el5
          ovaloval:com.redhat.rhsa:tst:20070389012
        • commentquagga-devel is signed with Red Hat redhatrelease key
          ovaloval:com.redhat.rhsa:tst:20070389013
rhsa
idRHSA-2007:0389
released2008-01-07
severityModerate
titleRHSA-2007:0389: quagga security update (Moderate)
rpms
  • quagga-0:0.96.2-12.3E
  • quagga-0:0.98.3-2.4.0.1.el4
  • quagga-0:0.98.6-2.1.0.1.el5
  • quagga-contrib-0:0.98.3-2.4.0.1.el4
  • quagga-contrib-0:0.98.6-2.1.0.1.el5
  • quagga-debuginfo-0:0.96.2-12.3E
  • quagga-debuginfo-0:0.98.3-2.4.0.1.el4
  • quagga-debuginfo-0:0.98.6-2.1.0.1.el5
  • quagga-devel-0:0.98.3-2.4.0.1.el4
  • quagga-devel-0:0.98.6-2.1.0.1.el5