Rapid7 Vulnerability & Exploit Database

MediaWiki SVG XML Entity Expansion Remote File Access

Back to Search

MediaWiki SVG XML Entity Expansion Remote File Access

Created
05/30/2018

Description

This module attempts to read a remote file from the server using a vulnerability in the way MediaWiki handles SVG files. The vulnerability occurs while trying to expand external entities with the SYSTEM identifier. In order to work MediaWiki must be configured to accept upload of SVG files. If anonymous uploads are allowed the username and password aren't required, otherwise they are. This module has been tested successfully on MediaWiki 1.19.4, 1.20.3 on Ubuntu 10.04 and Ubuntu 12.10. Older versions were also tested but do not seem to be vulnerable to this vulnerability. The following MediaWiki requirements must be met: File upload must be enabled, $wgFileExtensions[] must include 'svg', $wgSVGConverter must be set to something other than 'false'.

Author(s)

  • Daniel Franke
  • juan vazquez <juan.vazquez@metasploit.com>
  • Christian Mehlmauer <FireFart@gmail.com>

Development

References

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 auxiliary/scanner/http/mediawiki_svg_fileaccess
msf auxiliary(mediawiki_svg_fileaccess) > show actions
    ...actions...
msf auxiliary(mediawiki_svg_fileaccess) > set ACTION < action-name >
msf auxiliary(mediawiki_svg_fileaccess) > show options
    ...show and set options...
msf auxiliary(mediawiki_svg_fileaccess) > run 

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

;