Lucene search
K

WordPress CM Ad Changer 1.7.2 Cross Site Scripting

🗓️ 24 Apr 2016 00:00:00Reported by Rahul Pratap SinghType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 23 Views

WordPress CM Ad Changer 1.7.2 Cross Site Scripting vulnerability in title, comment, and link parameters. XSS found in multiple files. POC available at linked website. Update to version 1.7.6 for fix

Code
`## FULL DISCLOSURE  
  
#Product : cm-ad-changer  
#Exploit Author : Rahul Pratap Singh  
#Version :1.7.2  
#Home page Link : https://wordpress.org/plugins/cm-ad-changer/  
#Website : 0x62626262.wordpress.com  
#Linkedin : https://in.linkedin.com/in/rahulpratapsingh94  
#Date : 21/4/2016  
  
XSS Vulnerability:  
  
----------------------------------------  
Description:  
----------------------------------------  
Following parameters are not sanitized that leads to XSS Vulnerability.  
  
title, comment, link  
  
----------------------------------------  
Vulnerable Code:  
----------------------------------------  
File Name: testfiles/cm-ad-changer/backend/views/admin_settings.php  
Found at line:61  
<input type="checkbox" name="acs_active" id="acs_active" value="1" <?php  
echo ($fields_data['acs_active'] == '1' ? 'checked=checked' : '') ?> />  
Found at line:73  
  
<textarea id="acs_custom_css" name="acs_custom_css" rows=7 value="<?php  
echo stripslashes($fields_data['acs_custom_css']) ?>"><?php echo  
stripslashes($fields_data['acs_custom_css']) ?></textarea>  
  
File Name: testfiles/cm-ad-changer/backend/views/admin_campaigns.php  
Found at line:96  
<textarea value="<?php echo (isset($fields_data['comment']) ?  
stripslashes($fields_data['comment']) : '') ?>" name="comment"  
id="comment"><?php echo (isset($fields_data['comment']) ?  
stripslashes($fields_data['comment']) : '') ?></textarea>  
  
  
----------------------------------------  
POC:  
----------------------------------------  
https://0x62626262.files.wordpress.com/2016/04/cm-ad-changer-xss-poc.png  
https://0x62626262.files.wordpress.com/2016/04/cm-ad-changer-xss-poc1.png  
  
Fix:  
Update to 1.7.6  
  
Vulnerability Disclosure Timeline:  
→ March 14, 2016 – Bug discovered, initial report to Vendor.  
→ March 22, 2016 – No Response. Report sent again.  
→ March 23, 2016 – WordPress Acknowledged.  
→ April 21, 2016 – Full Disclosure.  
  
Pub Ref:  
https://0x62626262.wordpress.com/2016/04/21/cm-ad-changer-xss-vulnerability/  
https://ad-changer.cminds.com/cm-ad-changer-plugin-free-edition-release-notes/  
`

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