Vulnerability & Exploit Database

Back to search

Firebird Relational Database CNCT Group Number Buffer Overflow

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.

Free Metasploit Download

Get your copy of the world's leading penetration testing tool

 Download Now

Module Name

exploit/windows/misc/fb_cnct_group

Authors

  • Spencer McIntyre

References

Targets

  • Windows FB 2.5.2.26539
  • Windows FB 2.5.1.26351
  • Windows FB 2.1.5.18496
  • Windows FB 2.1.4.18393
  • Debug

Platforms

  • windows

Architectures

  • x86

Reliability

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/windows/misc/fb_cnct_group msf exploit(fb_cnct_group) > show targets ...targets... msf exploit(fb_cnct_group) > set TARGET <target-id> msf exploit(fb_cnct_group) > show options ...show and set options... msf exploit(fb_cnct_group) > exploit

Related Vulnerabilities