Description
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.
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_uploadmsf undefined(wp_photo_gallery_unrestricted_file_upload) > show actions ...actions...msf undefined(wp_photo_gallery_unrestricted_file_upload) > set ACTION < action-name >msf undefined(wp_photo_gallery_unrestricted_file_upload) > show options ...show and set options...msf undefined(wp_photo_gallery_unrestricted_file_upload) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub