Rapid7 Vulnerability & Exploit Database

MoinMoin twikidraw Action Traversal File Upload

Back to Search

MoinMoin twikidraw Action Traversal File Upload

Disclosed
12/30/2012
Created
05/30/2018

Description

This module exploits a vulnerability in MoinMoin 1.9.5. The vulnerability exists on the manage of the twikidraw actions, where a traversal path can be used in order to upload arbitrary files. Exploitation is achieved on Apached/mod_wsgi configurations by overwriting moin.wsgi, which allows to execute arbitrary python code, as exploited in the wild on July, 2012. This module is "ManualRanking," and the user is warned to use this module at his own risk since it will overwrite the moin.wsgi file, required for the correct working of the MoinMoin wiki. While the exploit will try to restore the attacked application at post exploitation, successful restoration cannot be guaranteed.

Author(s)

  • Unknown
  • HTP
  • juan vazquez <juan.vazquez@metasploit.com>

Platform

Unix

Architectures

cmd

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

;