Exploit database

Vulnerability

CVE-2013-2492

Vulnerability details

Score
6.8
Severity
medium

CVSS 2.0 · NVD

Vector string

AV:N/AC:M/Au:N/C:P/I:P/A:P

Description

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.

CVE Program

Exploit source choices

2 sources
Firebird Relational Database CNCT Group Number Buffer Overflow
MSF-windows--misc--fb_cnct_groupMetasploitWindows / remote

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.

2013-01-31fb_cnct_group.rb