Vulnerabilities > CVE-2013-2492 - Improper Restriction of Operations Within the Bounds of A Memory Buffer vulnerability in Firebirdsql Firebird

047910
CVSS 6.8 - MEDIUM
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
PARTIAL
Integrity impact
PARTIAL
Availability impact
PARTIAL
network
firebirdsql
microsoft
CWE-119
nessus
exploit available
metasploit

Summary

Stack-based buffer overflow in Firebird 2.1.3 through 2.1.5 before 18514, and 2.5.1 through 2.5.3 before 26623, on Windows allows remote attackers to execute arbitrary code via a crafted packet to TCP port 3050, related to a missing size check during extraction of a group number from CNCT information.

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

descriptionFirebird - Relational Database CNCT Group Number Buffer Overflow (Metasploit). CVE-2013-2492. Local exploit for Windows platform
idEDB-ID:41709
last seen2017-03-23
modified2017-03-23
published2017-03-23
reporterExploit-DB
sourcehttps://www.exploit-db.com/download/41709/
titleFirebird - Relational Database CNCT Group Number Buffer Overflow (Metasploit)

Metasploit

descriptionThis module exploits a vulnerability in Firebird SQL Server. A specially crafted packet can be sent which will overwrite a pointer allowing the attacker to control where data is read from. Shortly, following the controlled read, the pointer is called resulting in code execution. The vulnerability exists with a group number extracted from the CNCT information, which is sent by the client, and whose size is not properly checked. This module uses an existing call to memcpy, just prior to the vulnerable code, which allows a small amount of data to be written to the stack. A two-phases stack pivot allows to execute the ROP chain which ultimately is used to execute VirtualAlloc and bypass DEP.
idMSF:EXPLOIT/WINDOWS/MISC/FB_CNCT_GROUP
last seen2020-05-21
modified2018-10-28
published2013-03-07
referenceshttps://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-2492
reporterRapid7
sourcehttps://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/windows/misc/fb_cnct_group.rb
titleFirebird Relational Database CNCT Group Number Buffer Overflow

Nessus

  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-2648.NASL
    descriptionA buffer overflow was discovered in the Firebird database server, which could result in the execution of arbitrary code. In addition, a denial of service vulnerability was discovered in the TraceManager.
    last seen2020-03-17
    modified2013-03-16
    plugin id65582
    published2013-03-16
    reporterThis script is Copyright (C) 2013-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/65582
    titleDebian DSA-2648-1 : firebird2.5 - several vulnerabilities
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Debian Security Advisory DSA-2648. The text 
    # itself is copyright (C) Software in the Public Interest, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(65582);
      script_version("1.10");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/03/12");
    
      script_cve_id("CVE-2012-5529", "CVE-2013-2492");
      script_bugtraq_id(56521, 58393);
      script_xref(name:"DSA", value:"2648");
    
      script_name(english:"Debian DSA-2648-1 : firebird2.5 - several vulnerabilities");
      script_summary(english:"Checks dpkg output for the updated package");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Debian host is missing a security-related update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "A buffer overflow was discovered in the Firebird database server,
    which could result in the execution of arbitrary code. In addition, a
    denial of service vulnerability was discovered in the TraceManager."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://packages.debian.org/source/squeeze/firebird2.5"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://www.debian.org/security/2013/dsa-2648"
      );
      script_set_attribute(
        attribute:"solution", 
        value:
    "Upgrade the firebird2.5 packages.
    
    For the stable distribution (squeeze), these problems have been fixed
    in version 2.5.0.26054~ReleaseCandidate3.ds2-1+squeeze1."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"true");
      script_set_attribute(attribute:"exploit_framework_core", value:"true");
      script_set_attribute(attribute:"metasploit_name", value:'Firebird Relational Database CNCT Group Number Buffer Overflow');
      script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:firebird2.5");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:debian:debian_linux:6.0");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2013/03/15");
      script_set_attribute(attribute:"plugin_publication_date", value:"2013/03/16");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2013-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Debian Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/Debian/release", "Host/Debian/dpkg-l");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("debian_package.inc");
    
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    if (!get_kb_item("Host/Debian/release")) audit(AUDIT_OS_NOT, "Debian");
    if (!get_kb_item("Host/Debian/dpkg-l")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    
    flag = 0;
    if (deb_check(release:"6.0", prefix:"firebird2.5-classic", reference:"2.5.0.26054~ReleaseCandidate3.ds2-1+squeeze1")) flag++;
    if (deb_check(release:"6.0", prefix:"firebird2.5-classic-common", reference:"2.5.0.26054~ReleaseCandidate3.ds2-1+squeeze1")) flag++;
    if (deb_check(release:"6.0", prefix:"firebird2.5-common", reference:"2.5.0.26054~ReleaseCandidate3.ds2-1+squeeze1")) flag++;
    if (deb_check(release:"6.0", prefix:"firebird2.5-common-doc", reference:"2.5.0.26054~ReleaseCandidate3.ds2-1+squeeze1")) flag++;
    if (deb_check(release:"6.0", prefix:"firebird2.5-dev", reference:"2.5.0.26054~ReleaseCandidate3.ds2-1+squeeze1")) flag++;
    if (deb_check(release:"6.0", prefix:"firebird2.5-doc", reference:"2.5.0.26054~ReleaseCandidate3.ds2-1+squeeze1")) flag++;
    if (deb_check(release:"6.0", prefix:"firebird2.5-examples", reference:"2.5.0.26054~ReleaseCandidate3.ds2-1+squeeze1")) flag++;
    if (deb_check(release:"6.0", prefix:"firebird2.5-server-common", reference:"2.5.0.26054~ReleaseCandidate3.ds2-1+squeeze1")) flag++;
    if (deb_check(release:"6.0", prefix:"firebird2.5-super", reference:"2.5.0.26054~ReleaseCandidate3.ds2-1+squeeze1")) flag++;
    if (deb_check(release:"6.0", prefix:"firebird2.5-superclassic", reference:"2.5.0.26054~ReleaseCandidate3.ds2-1+squeeze1")) flag++;
    if (deb_check(release:"6.0", prefix:"libfbclient2", reference:"2.5.0.26054~ReleaseCandidate3.ds2-1+squeeze1")) flag++;
    if (deb_check(release:"6.0", prefix:"libfbembed2.5", reference:"2.5.0.26054~ReleaseCandidate3.ds2-1+squeeze1")) flag++;
    if (deb_check(release:"6.0", prefix:"libib-util", reference:"2.5.0.26054~ReleaseCandidate3.ds2-1+squeeze1")) flag++;
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:deb_report_get());
      else security_warning(0);
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");
    
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2013-3707.NASL
    descriptionfix CVE-2013-2492. 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-03-17
    modified2013-03-21
    plugin id65636
    published2013-03-21
    reporterThis script is Copyright (C) 2013-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/65636
    titleFedora 18 : firebird-2.5.2.26539.0-2.fc18 (2013-3707)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Fedora Security Advisory 2013-3707.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(65636);
      script_version("1.9");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/03/12");
    
      script_cve_id("CVE-2013-2492");
      script_bugtraq_id(58393);
      script_xref(name:"FEDORA", value:"2013-3707");
    
      script_name(english:"Fedora 18 : firebird-2.5.2.26539.0-2.fc18 (2013-3707)");
      script_summary(english:"Checks rpm output for the updated package.");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Fedora host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "fix CVE-2013-2492.
    
    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."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.redhat.com/show_bug.cgi?id=919549"
      );
      # https://lists.fedoraproject.org/pipermail/package-announce/2013-March/100576.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?70fd2115"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected firebird package."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"true");
      script_set_attribute(attribute:"exploit_framework_core", value:"true");
      script_set_attribute(attribute:"metasploit_name", value:'Firebird Relational Database CNCT Group Number Buffer Overflow');
      script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:firebird");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:fedoraproject:fedora:18");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2013/03/12");
      script_set_attribute(attribute:"plugin_publication_date", value:"2013/03/21");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2013-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Fedora Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/RedHat/release", "Host/RedHat/rpm-list");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/RedHat/release");
    if (isnull(release) || "Fedora" >!< release) audit(AUDIT_OS_NOT, "Fedora");
    os_ver = eregmatch(pattern: "Fedora.*release ([0-9]+)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Fedora");
    os_ver = os_ver[1];
    if (! ereg(pattern:"^18([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Fedora 18.x", "Fedora " + os_ver);
    
    if (!get_kb_item("Host/RedHat/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Fedora", cpu);
    
    flag = 0;
    if (rpm_check(release:"FC18", reference:"firebird-2.5.2.26539.0-2.fc18")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get());
      else security_warning(0);
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "firebird");
    }
    
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-2647.NASL
    descriptionA buffer overflow was discovered in the Firebird database server, which could result in the execution of arbitrary code.
    last seen2020-03-17
    modified2013-03-16
    plugin id65581
    published2013-03-16
    reporterThis script is Copyright (C) 2013-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/65581
    titleDebian DSA-2647-1 : firebird2.1 - buffer overflow
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Debian Security Advisory DSA-2647. The text 
    # itself is copyright (C) Software in the Public Interest, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(65581);
      script_version("1.10");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/03/12");
    
      script_cve_id("CVE-2013-2492");
      script_bugtraq_id(58393);
      script_xref(name:"DSA", value:"2647");
    
      script_name(english:"Debian DSA-2647-1 : firebird2.1 - buffer overflow");
      script_summary(english:"Checks dpkg output for the updated package");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Debian host is missing a security-related update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "A buffer overflow was discovered in the Firebird database server,
    which could result in the execution of arbitrary code."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=702735"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://packages.debian.org/source/squeeze/firebird2.1"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://www.debian.org/security/2013/dsa-2647"
      );
      script_set_attribute(
        attribute:"solution", 
        value:
    "Upgrade the firebird2.1 packages.
    
    For the stable distribution (squeeze), this problem has been fixed in
    version 2.1.3.18185-0.ds1-11+squeeze1."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"true");
      script_set_attribute(attribute:"exploit_framework_core", value:"true");
      script_set_attribute(attribute:"metasploit_name", value:'Firebird Relational Database CNCT Group Number Buffer Overflow');
      script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:firebird2.1");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:debian:debian_linux:6.0");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2013/03/15");
      script_set_attribute(attribute:"plugin_publication_date", value:"2013/03/16");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2013-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Debian Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/Debian/release", "Host/Debian/dpkg-l");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("debian_package.inc");
    
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    if (!get_kb_item("Host/Debian/release")) audit(AUDIT_OS_NOT, "Debian");
    if (!get_kb_item("Host/Debian/dpkg-l")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    
    flag = 0;
    if (deb_check(release:"6.0", prefix:"firebird2.1-classic", reference:"2.1.3.18185-0.ds1-11+squeeze1")) flag++;
    if (deb_check(release:"6.0", prefix:"firebird2.1-common", reference:"2.1.3.18185-0.ds1-11+squeeze1")) flag++;
    if (deb_check(release:"6.0", prefix:"firebird2.1-common-doc", reference:"2.1.3.18185-0.ds1-11+squeeze1")) flag++;
    if (deb_check(release:"6.0", prefix:"firebird2.1-dev", reference:"2.1.3.18185-0.ds1-11+squeeze1")) flag++;
    if (deb_check(release:"6.0", prefix:"firebird2.1-doc", reference:"2.1.3.18185-0.ds1-11+squeeze1")) flag++;
    if (deb_check(release:"6.0", prefix:"firebird2.1-examples", reference:"2.1.3.18185-0.ds1-11+squeeze1")) flag++;
    if (deb_check(release:"6.0", prefix:"firebird2.1-server-common", reference:"2.1.3.18185-0.ds1-11+squeeze1")) flag++;
    if (deb_check(release:"6.0", prefix:"firebird2.1-super", reference:"2.1.3.18185-0.ds1-11+squeeze1")) flag++;
    if (deb_check(release:"6.0", prefix:"libfbembed2.1", reference:"2.1.3.18185-0.ds1-11+squeeze1")) flag++;
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:deb_report_get());
      else security_warning(0);
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");
    
  • NASL familyFreeBSD Local Security Checks
    NASL idFREEBSD_PKG_6ADCA5E995D211E2854968B599B52A02.NASL
    descriptionFirebird Project reports : The FirebirdSQL server is vulnerable to a stack-based buffer overflow that can be triggered when an unauthenticated user sends a specially crafted packet. The result can lead to remote code execution as the user which runs the FirebirdSQL server.
    last seen2020-06-01
    modified2020-06-02
    plugin id65843
    published2013-04-08
    reporterThis script is Copyright (C) 2013-2018 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/65843
    titleFreeBSD : firebird -- Remote Stack Buffer Overflow (6adca5e9-95d2-11e2-8549-68b599b52a02)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from the FreeBSD VuXML database :
    #
    # Copyright 2003-2018 Jacques Vidrine and contributors
    #
    # Redistribution and use in source (VuXML) and 'compiled' forms (SGML,
    # HTML, PDF, PostScript, RTF and so forth) with or without modification,
    # are permitted provided that the following conditions are met:
    # 1. Redistributions of source code (VuXML) must retain the above
    #    copyright notice, this list of conditions and the following
    #    disclaimer as the first lines of this file unmodified.
    # 2. Redistributions in compiled form (transformed to other DTDs,
    #    published online in any format, converted to PDF, PostScript,
    #    RTF and other formats) must reproduce the above copyright
    #    notice, this list of conditions and the following disclaimer
    #    in the documentation and/or other materials provided with the
    #    distribution.
    # 
    # THIS DOCUMENTATION IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS"
    # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
    # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS
    # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
    # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
    # OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
    # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
    # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
    # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS DOCUMENTATION,
    # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(65843);
      script_version("1.5");
      script_cvs_date("Date: 2018/11/10 11:49:43");
    
      script_cve_id("CVE-2013-2492");
    
      script_name(english:"FreeBSD : firebird -- Remote Stack Buffer Overflow (6adca5e9-95d2-11e2-8549-68b599b52a02)");
      script_summary(english:"Checks for updated packages in pkg_info output");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:
    "The remote FreeBSD host is missing one or more security-related
    updates."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Firebird Project reports :
    
    The FirebirdSQL server is vulnerable to a stack-based buffer overflow that
    can be triggered when an unauthenticated user sends a specially
    crafted packet. The result can lead to remote code execution as the
    user which runs the FirebirdSQL server."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://gist.github.com/zeroSteiner/85daef257831d904479c"
      );
      # https://vuxml.freebsd.org/freebsd/6adca5e9-95d2-11e2-8549-68b599b52a02.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?3a5f3135"
      );
      script_set_attribute(attribute:"solution", value:"Update the affected packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
      script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"true");
      script_set_attribute(attribute:"exploit_framework_core", value:"true");
      script_set_attribute(attribute:"metasploit_name", value:'Firebird Relational Database CNCT Group Number Buffer Overflow');
      script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:freebsd:freebsd:firebird21-server");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:freebsd:freebsd:firebird25-server");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:freebsd:freebsd");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2013/01/31");
      script_set_attribute(attribute:"patch_publication_date", value:"2013/03/06");
      script_set_attribute(attribute:"plugin_publication_date", value:"2013/04/08");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2013-2018 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"FreeBSD Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/FreeBSD/release", "Host/FreeBSD/pkg_info");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("freebsd_package.inc");
    
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    if (!get_kb_item("Host/FreeBSD/release")) audit(AUDIT_OS_NOT, "FreeBSD");
    if (!get_kb_item("Host/FreeBSD/pkg_info")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    
    flag = 0;
    
    if (pkg_test(save_report:TRUE, pkg:"firebird25-server>=2.5.0<=2.5.2")) flag++;
    if (pkg_test(save_report:TRUE, pkg:"firebird21-server>=2.1.0<=2.1.5")) flag++;
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:pkg_report_get());
      else security_warning(0);
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");
    
  • NASL familyGentoo Local Security Checks
    NASL idGENTOO_GLSA-201512-11.NASL
    descriptionThe remote host is affected by the vulnerability described in GLSA-201512-11 (Firebird: Buffer Overflow) The vulnerability is caused due to an error when processing requests from remote clients. Impact : A remote attacker could possibly execute arbitrary code with the privileges of the process, or cause a Denial of Service condition. Workaround : There is no known workaround at this time.
    last seen2020-06-01
    modified2020-06-02
    plugin id87711
    published2016-01-04
    reporterThis script is Copyright (C) 2016-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/87711
    titleGLSA-201512-11 : Firebird: Buffer Overflow
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were
    # extracted from Gentoo Linux Security Advisory GLSA 201512-11.
    #
    # The advisory text is Copyright (C) 2001-2016 Gentoo Foundation, Inc.
    # and licensed under the Creative Commons - Attribution / Share Alike 
    # license. See http://creativecommons.org/licenses/by-sa/3.0/
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(87711);
      script_version("2.2");
      script_cvs_date("Date: 2019/04/11 17:23:06");
    
      script_cve_id("CVE-2013-2492");
      script_xref(name:"GLSA", value:"201512-11");
    
      script_name(english:"GLSA-201512-11 : Firebird: Buffer Overflow");
      script_summary(english:"Checks for updated package(s) in /var/db/pkg");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:
    "The remote Gentoo host is missing one or more security-related
    patches."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "The remote host is affected by the vulnerability described in GLSA-201512-11
    (Firebird: Buffer Overflow)
    
        The vulnerability is caused due to an error when processing requests
          from remote clients.
      
    Impact :
    
        A remote attacker could possibly execute arbitrary code with the
          privileges of the process, or cause a Denial of Service condition.
      
    Workaround :
    
        There is no known workaround at this time."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://security.gentoo.org/glsa/201512-11"
      );
      script_set_attribute(
        attribute:"solution", 
        value:
    "All Firebird users should upgrade to the latest version:
          # emerge --sync
          # emerge --ask --oneshot --verbose
          '>=dev-db/firebird-2.5.3.26780.0-r3'
        NOTE: Firebird package was moved to the testing branch (unstable) of
          Gentoo. There is currently no stable version of Firebird, and  there will
          be no further GLSAs for this package."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"true");
      script_set_attribute(attribute:"exploit_framework_core", value:"true");
      script_set_attribute(attribute:"metasploit_name", value:'Firebird Relational Database CNCT Group Number Buffer Overflow');
      script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:gentoo:linux:firebird");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:gentoo:linux");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2015/12/30");
      script_set_attribute(attribute:"plugin_publication_date", value:"2016/01/04");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2016-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Gentoo Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/Gentoo/release", "Host/Gentoo/qpkg-list");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("qpkg.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    if (!get_kb_item("Host/Gentoo/release")) audit(AUDIT_OS_NOT, "Gentoo");
    if (!get_kb_item("Host/Gentoo/qpkg-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    
    flag = 0;
    
    if (qpkg_check(package:"dev-db/firebird", unaffected:make_list("ge 2.5.3.26780.0-r3"), vulnerable:make_list("lt 2.5.3.26780.0-r3"))) flag++;
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:qpkg_report_get());
      else security_warning(0);
      exit(0);
    }
    else
    {
      tested = qpkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "Firebird");
    }
    
  • NASL familySuSE Local Security Checks
    NASL idOPENSUSE-2013-222.NASL
    descriptionThis update fixes a bug which allows an unauthenticated remote attacker to cause a stack overflow in server code, resulting in either server crash or even code execution as the user running firebird.
    last seen2020-06-05
    modified2014-06-13
    plugin id74929
    published2014-06-13
    reporterThis script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/74929
    titleopenSUSE Security Update : firebird (openSUSE-SU-2013:0496-1)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were
    # extracted from openSUSE Security Update openSUSE-2013-222.
    #
    # The text description of this plugin is (C) SUSE LLC.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(74929);
      script_version("1.5");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/06/04");
    
      script_cve_id("CVE-2013-2492");
      script_bugtraq_id(58393);
    
      script_name(english:"openSUSE Security Update : firebird (openSUSE-SU-2013:0496-1)");
      script_summary(english:"Check for the openSUSE-2013-222 patch");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote openSUSE host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "This update fixes a bug which allows an unauthenticated remote
    attacker to cause a stack overflow in server code, resulting in either
    server crash or even code execution as the user running firebird."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.novell.com/show_bug.cgi?id=808268"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://lists.opensuse.org/opensuse-updates/2013-03/msg00067.html"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected firebird packages."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"true");
      script_set_attribute(attribute:"exploit_framework_core", value:"true");
      script_set_attribute(attribute:"metasploit_name", value:'Firebird Relational Database CNCT Group Number Buffer Overflow');
      script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:firebird");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:firebird-32bit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:firebird-classic");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:firebird-classic-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:firebird-classic-debugsource");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:firebird-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:firebird-debuginfo-32bit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:firebird-debugsource");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:firebird-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:firebird-devel-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:firebird-filesystem");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:firebird-superserver");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:firebird-superserver-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libfbclient2");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libfbclient2-32bit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libfbclient2-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libfbclient2-debuginfo-32bit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libfbclient2-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libfbembed-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libfbembed2");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libfbembed2-32bit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libfbembed2-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libfbembed2-debuginfo-32bit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libfbembed2_5");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libfbembed2_5-debuginfo");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:novell:opensuse:12.1");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:novell:opensuse:12.2");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:novell:opensuse:12.3");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2013/03/08");
      script_set_attribute(attribute:"plugin_publication_date", value:"2014/06/13");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"SuSE Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/SuSE/release", "Host/SuSE/rpm-list", "Host/cpu");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/SuSE/release");
    if (isnull(release) || release =~ "^(SLED|SLES)") audit(AUDIT_OS_NOT, "openSUSE");
    if (release !~ "^(SUSE12\.1|SUSE12\.2|SUSE12\.3)$") audit(AUDIT_OS_RELEASE_NOT, "openSUSE", "12.1 / 12.2 / 12.3", release);
    if (!get_kb_item("Host/SuSE/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    ourarch = get_kb_item("Host/cpu");
    if (!ourarch) audit(AUDIT_UNKNOWN_ARCH);
    if (ourarch !~ "^(i586|i686|x86_64)$") audit(AUDIT_ARCH_NOT, "i586 / i686 / x86_64", ourarch);
    
    flag = 0;
    
    if ( rpm_check(release:"SUSE12.1", reference:"firebird-2.1.3.18185.0-22.4.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"firebird-classic-2.1.3.18185.0-22.4.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"firebird-classic-debuginfo-2.1.3.18185.0-22.4.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"firebird-debuginfo-2.1.3.18185.0-22.4.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"firebird-debugsource-2.1.3.18185.0-22.4.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"firebird-devel-2.1.3.18185.0-22.4.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"firebird-devel-debuginfo-2.1.3.18185.0-22.4.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"firebird-filesystem-2.1.3.18185.0-22.4.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"firebird-superserver-2.1.3.18185.0-22.4.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"firebird-superserver-debuginfo-2.1.3.18185.0-22.4.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"libfbclient2-2.1.3.18185.0-22.4.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"libfbclient2-debuginfo-2.1.3.18185.0-22.4.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"libfbembed2-2.1.3.18185.0-22.4.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", reference:"libfbembed2-debuginfo-2.1.3.18185.0-22.4.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", cpu:"x86_64", reference:"libfbclient2-32bit-2.1.3.18185.0-22.4.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", cpu:"x86_64", reference:"libfbclient2-debuginfo-32bit-2.1.3.18185.0-22.4.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", cpu:"x86_64", reference:"libfbembed2-32bit-2.1.3.18185.0-22.4.1") ) flag++;
    if ( rpm_check(release:"SUSE12.1", cpu:"x86_64", reference:"libfbembed2-debuginfo-32bit-2.1.3.18185.0-22.4.1") ) flag++;
    if ( rpm_check(release:"SUSE12.2", reference:"firebird-2.5.2.26539-2.8.1") ) flag++;
    if ( rpm_check(release:"SUSE12.2", reference:"firebird-classic-2.5.2.26539-2.8.1") ) flag++;
    if ( rpm_check(release:"SUSE12.2", reference:"firebird-classic-debuginfo-2.5.2.26539-2.8.1") ) flag++;
    if ( rpm_check(release:"SUSE12.2", reference:"firebird-classic-debugsource-2.5.2.26539-2.8.1") ) flag++;
    if ( rpm_check(release:"SUSE12.2", reference:"firebird-debuginfo-2.5.2.26539-2.8.1") ) flag++;
    if ( rpm_check(release:"SUSE12.2", reference:"firebird-debugsource-2.5.2.26539-2.8.1") ) flag++;
    if ( rpm_check(release:"SUSE12.2", reference:"firebird-devel-2.5.2.26539-2.8.1") ) flag++;
    if ( rpm_check(release:"SUSE12.2", reference:"firebird-superserver-2.5.2.26539-2.8.1") ) flag++;
    if ( rpm_check(release:"SUSE12.2", reference:"firebird-superserver-debuginfo-2.5.2.26539-2.8.1") ) flag++;
    if ( rpm_check(release:"SUSE12.2", reference:"libfbclient2-2.5.2.26539-2.8.1") ) flag++;
    if ( rpm_check(release:"SUSE12.2", reference:"libfbclient2-debuginfo-2.5.2.26539-2.8.1") ) flag++;
    if ( rpm_check(release:"SUSE12.2", reference:"libfbclient2-devel-2.5.2.26539-2.8.1") ) flag++;
    if ( rpm_check(release:"SUSE12.2", reference:"libfbembed-devel-2.5.2.26539-2.8.1") ) flag++;
    if ( rpm_check(release:"SUSE12.2", reference:"libfbembed2_5-2.5.2.26539-2.8.1") ) flag++;
    if ( rpm_check(release:"SUSE12.2", reference:"libfbembed2_5-debuginfo-2.5.2.26539-2.8.1") ) flag++;
    if ( rpm_check(release:"SUSE12.2", cpu:"x86_64", reference:"firebird-32bit-2.5.2.26539-2.8.1") ) flag++;
    if ( rpm_check(release:"SUSE12.2", cpu:"x86_64", reference:"firebird-debuginfo-32bit-2.5.2.26539-2.8.1") ) flag++;
    if ( rpm_check(release:"SUSE12.2", cpu:"x86_64", reference:"libfbclient2-32bit-2.5.2.26539-2.8.1") ) flag++;
    if ( rpm_check(release:"SUSE12.2", cpu:"x86_64", reference:"libfbclient2-debuginfo-32bit-2.5.2.26539-2.8.1") ) flag++;
    if ( rpm_check(release:"SUSE12.3", reference:"firebird-2.5.2.26539-2.5.1") ) flag++;
    if ( rpm_check(release:"SUSE12.3", reference:"firebird-classic-2.5.2.26539-2.5.1") ) flag++;
    if ( rpm_check(release:"SUSE12.3", reference:"firebird-classic-debuginfo-2.5.2.26539-2.5.1") ) flag++;
    if ( rpm_check(release:"SUSE12.3", reference:"firebird-classic-debugsource-2.5.2.26539-2.5.1") ) flag++;
    if ( rpm_check(release:"SUSE12.3", reference:"firebird-debuginfo-2.5.2.26539-2.5.1") ) flag++;
    if ( rpm_check(release:"SUSE12.3", reference:"firebird-debugsource-2.5.2.26539-2.5.1") ) flag++;
    if ( rpm_check(release:"SUSE12.3", reference:"firebird-devel-2.5.2.26539-2.5.1") ) flag++;
    if ( rpm_check(release:"SUSE12.3", reference:"firebird-superserver-2.5.2.26539-2.5.1") ) flag++;
    if ( rpm_check(release:"SUSE12.3", reference:"firebird-superserver-debuginfo-2.5.2.26539-2.5.1") ) flag++;
    if ( rpm_check(release:"SUSE12.3", reference:"libfbclient2-2.5.2.26539-2.5.1") ) flag++;
    if ( rpm_check(release:"SUSE12.3", reference:"libfbclient2-debuginfo-2.5.2.26539-2.5.1") ) flag++;
    if ( rpm_check(release:"SUSE12.3", reference:"libfbclient2-devel-2.5.2.26539-2.5.1") ) flag++;
    if ( rpm_check(release:"SUSE12.3", reference:"libfbembed-devel-2.5.2.26539-2.5.1") ) flag++;
    if ( rpm_check(release:"SUSE12.3", reference:"libfbembed2_5-2.5.2.26539-2.5.1") ) flag++;
    if ( rpm_check(release:"SUSE12.3", reference:"libfbembed2_5-debuginfo-2.5.2.26539-2.5.1") ) flag++;
    if ( rpm_check(release:"SUSE12.3", cpu:"x86_64", reference:"firebird-32bit-2.5.2.26539-2.5.1") ) flag++;
    if ( rpm_check(release:"SUSE12.3", cpu:"x86_64", reference:"firebird-debuginfo-32bit-2.5.2.26539-2.5.1") ) flag++;
    if ( rpm_check(release:"SUSE12.3", cpu:"x86_64", reference:"libfbclient2-32bit-2.5.2.26539-2.5.1") ) flag++;
    if ( rpm_check(release:"SUSE12.3", cpu:"x86_64", reference:"libfbclient2-debuginfo-32bit-2.5.2.26539-2.5.1") ) flag++;
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get());
      else security_warning(0);
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "firebird / firebird-classic / firebird-classic-debuginfo / etc");
    }
    
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2013-3719.NASL
    descriptionfix CVE-2013-2492. 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-03-17
    modified2013-03-21
    plugin id65637
    published2013-03-21
    reporterThis script is Copyright (C) 2013-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/65637
    titleFedora 17 : firebird-2.5.2.26539.0-2.fc17 (2013-3719)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Fedora Security Advisory 2013-3719.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(65637);
      script_version("1.9");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/03/12");
    
      script_cve_id("CVE-2013-2492");
      script_bugtraq_id(58393);
      script_xref(name:"FEDORA", value:"2013-3719");
    
      script_name(english:"Fedora 17 : firebird-2.5.2.26539.0-2.fc17 (2013-3719)");
      script_summary(english:"Checks rpm output for the updated package.");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Fedora host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "fix CVE-2013-2492.
    
    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."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.redhat.com/show_bug.cgi?id=919549"
      );
      # https://lists.fedoraproject.org/pipermail/package-announce/2013-March/100556.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?b1413123"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected firebird package."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"true");
      script_set_attribute(attribute:"exploit_framework_core", value:"true");
      script_set_attribute(attribute:"metasploit_name", value:'Firebird Relational Database CNCT Group Number Buffer Overflow');
      script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:firebird");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:fedoraproject:fedora:17");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2013/03/12");
      script_set_attribute(attribute:"plugin_publication_date", value:"2013/03/21");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2013-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Fedora Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/RedHat/release", "Host/RedHat/rpm-list");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/RedHat/release");
    if (isnull(release) || "Fedora" >!< release) audit(AUDIT_OS_NOT, "Fedora");
    os_ver = eregmatch(pattern: "Fedora.*release ([0-9]+)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Fedora");
    os_ver = os_ver[1];
    if (! ereg(pattern:"^17([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Fedora 17.x", "Fedora " + os_ver);
    
    if (!get_kb_item("Host/RedHat/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Fedora", cpu);
    
    flag = 0;
    if (rpm_check(release:"FC17", reference:"firebird-2.5.2.26539.0-2.fc17")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get());
      else security_warning(0);
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "firebird");
    }
    

Packetstorm

data sourcehttps://packetstormsecurity.com/files/download/120717/fb_cnct_group.rb.txt
idPACKETSTORM:120717
last seen2016-12-05
published2013-03-08
reporterSpencer McIntyre
sourcehttps://packetstormsecurity.com/files/120717/Firebird-Relational-Database-CNCT-Group-Number-Buffer-Overflow.html
titleFirebird Relational Database CNCT Group Number Buffer Overflow