ID CVE-2013-2492
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.
References
Vulnerable Configurations
  • Firebird Firebird 2.1.3
    cpe:2.3:a:firebirdsql:firebird:2.1.3
  • Firebird Firebird 2.1.4
    cpe:2.3:a:firebirdsql:firebird:2.1.4
  • Firebird Firebird 2.1.5
    cpe:2.3:a:firebirdsql:firebird:2.1.5
  • firebirdsql firebird 2.5.1
    cpe:2.3:a:firebirdsql:firebird:2.5.1
  • Firebird Firebird 2.5.2
    cpe:2.3:a:firebirdsql:firebird:2.5.2
  • Firebird Firebird 2.5.3
    cpe:2.3:a:firebirdsql:firebird:2.5.3
  • Microsoft Windows
    cpe:2.3:o:microsoft:windows
CVSS
Base: 6.8 (as of 18-03-2013 - 10:50)
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
PARTIAL PARTIAL PARTIAL
exploit-db via4
description Firebird - Relational Database CNCT Group Number Buffer Overflow (Metasploit). CVE-2013-2492. Local exploit for Windows platform
id EDB-ID:41709
last seen 2017-03-23
modified 2017-03-23
published 2017-03-23
reporter Exploit-DB
source https://www.exploit-db.com/download/41709/
title Firebird - Relational Database CNCT Group Number Buffer Overflow (Metasploit)
metasploit via4
description This 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.
id MSF:EXPLOIT/WINDOWS/MISC/FB_CNCT_GROUP
last seen 2019-02-02
modified 2018-10-28
published 2013-03-07
reliability Normal
reporter Rapid7
source https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/windows/misc/fb_cnct_group.rb
title Firebird Relational Database CNCT Group Number Buffer Overflow
nessus via4
  • NASL family Debian Local Security Checks
    NASL id DEBIAN_DSA-2647.NASL
    description A buffer overflow was discovered in the Firebird database server, which could result in the execution of arbitrary code.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 65581
    published 2013-03-16
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=65581
    title Debian DSA-2647-1 : firebird2.1 - buffer overflow
  • NASL family Debian Local Security Checks
    NASL id DEBIAN_DSA-2648.NASL
    description 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.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 65582
    published 2013-03-16
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=65582
    title Debian DSA-2648-1 : firebird2.5 - several vulnerabilities
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2013-3719.NASL
    description 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.
    last seen 2019-02-21
    modified 2018-12-05
    plugin id 65637
    published 2013-03-21
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=65637
    title Fedora 17 : firebird-2.5.2.26539.0-2.fc17 (2013-3719)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2013-3707.NASL
    description 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.
    last seen 2019-02-21
    modified 2018-12-05
    plugin id 65636
    published 2013-03-21
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=65636
    title Fedora 18 : firebird-2.5.2.26539.0-2.fc18 (2013-3707)
  • NASL family FreeBSD Local Security Checks
    NASL id FREEBSD_PKG_6ADCA5E995D211E2854968B599B52A02.NASL
    description 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.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 65843
    published 2013-04-08
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=65843
    title FreeBSD : firebird -- Remote Stack Buffer Overflow (6adca5e9-95d2-11e2-8549-68b599b52a02)
  • NASL family SuSE Local Security Checks
    NASL id OPENSUSE-2013-222.NASL
    description 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.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 74929
    published 2014-06-13
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=74929
    title openSUSE Security Update : firebird (openSUSE-SU-2013:0496-1)
  • NASL family Gentoo Local Security Checks
    NASL id GENTOO_GLSA-201512-11.NASL
    description 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.
    last seen 2019-02-21
    modified 2016-01-04
    plugin id 87711
    published 2016-01-04
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=87711
    title GLSA-201512-11 : Firebird: Buffer Overflow
packetstorm via4
data source https://packetstormsecurity.com/files/download/120717/fb_cnct_group.rb.txt
id PACKETSTORM:120717
last seen 2016-12-05
published 2013-03-08
reporter Spencer McIntyre
source https://packetstormsecurity.com/files/120717/Firebird-Relational-Database-CNCT-Group-Number-Buffer-Overflow.html
title Firebird Relational Database CNCT Group Number Buffer Overflow
refmap via4
bid 58393
confirm http://tracker.firebirdsql.org/browse/CORE-4058
debian
  • DSA-2647
  • DSA-2648
gentoo GLSA-201512-11
misc
suse
  • openSUSE-SU-2013:0496
  • openSUSE-SU-2013:0504
Last major update 06-12-2016 - 22:00
Published 15-03-2013 - 18:55
Back to Top