Vulnerability & Exploit Database

Back to search

WordPress Photo Gallery Unrestricted File Upload

Photo Gallery Plugin for WordPress contains a flaw that allows a remote attacker to execute arbitrary PHP code. This flaw exists because the photo-gallery\photo-gallery.php script allows access to filemanager\UploadHandler.php. The post() method in UploadHandler.php does not properly verify or sanitize user-uploaded files. This module was tested on version 1.2.5.

Free Metasploit Download

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

 Download Now

Module Name

exploit/unix/webapp/wp_photo_gallery_unrestricted_file_upload

Authors

  • Kacper Szurek
  • rastating

References

Targets

  • photo-gallery < 1.2.6

Platforms

  • php

Architectures

  • php

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