Rapid7 Vulnerability & Exploit Database

Squiggle 1.7 SVG Browser Java Code Execution

Back to Search

Squiggle 1.7 SVG Browser Java Code Execution

Disclosed
05/11/2012
Created
05/30/2018

Description

This module abuses the SVG support to execute Java Code in the Squiggle Browser included in the Batik framework 1.7 through a crafted SVG file referencing a jar file. In order to gain arbitrary code execution, the browser must meet the following conditions: (1) It must support at least SVG version 1.1 or newer, (2) It must support Java code and (3) The "Enforce secure scripting" check must be disabled. The module has been tested against Windows and Linux platforms.

Author(s)

  • Nicolas Gregoire
  • sinn3r <sinn3r@metasploit.com>
  • juan vazquez <juan.vazquez@metasploit.com>

Platform

Java,Linux,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/multi/misc/batik_svg_java
msf exploit(batik_svg_java) > show targets
    ...targets...
msf exploit(batik_svg_java) > set TARGET < target-id >
msf exploit(batik_svg_java) > show options
    ...show and set options...
msf exploit(batik_svg_java) > 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

;