Rapid7 Vulnerability & Exploit Database

Irfanview JPEG2000 jp2 Stack Buffer Overflow

Back to Search

Irfanview JPEG2000 jp2 Stack Buffer Overflow

Disclosed
01/16/2012
Created
05/30/2018

Description

This module exploits a stack-based buffer overflow vulnerability in version <= 4.3.2.0 of Irfanview's JPEG2000.dll plugin. This exploit has been tested on a specific version of irfanview (v4.3.2), although other versions may work also. The vulnerability is triggered via parsing an invalid qcd chunk structure and specifying a malformed qcd size and data. Payload delivery and vulnerability trigger can be executed in multiple ways. The user can double click the file, use the file dialog, open via the icon and drag/drop the file into Irfanview's window. An egg hunter is used for stability.

Author(s)

  • Parvez Anwar <parvez@greyhathacker.net>
  • mr_me <steventhomasseeley@gmail.com>
  • juan vazquez <juan.vazquez@metasploit.com>

Platform

Windows

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/fileformat/irfanview_jpeg2000_bof
msf exploit(irfanview_jpeg2000_bof) > show targets
    ...targets...
msf exploit(irfanview_jpeg2000_bof) > set TARGET < target-id >
msf exploit(irfanview_jpeg2000_bof) > show options
    ...show and set options...
msf exploit(irfanview_jpeg2000_bof) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;