# Title: Cross-Site Request Forgery, Cross-Site Scripting and SQL Injection in CP Contact Form with Paypal Wordpress Plugin v1.1.5 # Submitter: Nitin Venkatesh # Product: CP Contact Form with Paypal Wordpress Plugin # Product URL: https://wordpress.org/plugins/cp-contact-form-with-paypal/ # Vulnerability Type: Cross-site Request Forgery [CWE-352], Cross-site scripting[CWE-79], Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')[CWE-89] # Affected Versions: v1.1.5 and possibly below. # Tested versions: v1.1.5 # Fixed Version: v1.1.6 # Link to code diff: https://plugins.trac.wordpress.org/changeset?new=1166955%40cp-contact-form-with-paypal&old=1162550%40cp-contact-form-with-paypal # Changelog: https://wordpress.org/plugins/cp-contact-form-with-paypal/changelog/ # CVE Status: None/Unassigned/Fresh ## Product Information: With CP Contact Form with Paypal you can insert a contact form into a WordPress website and connect it to a PayPal payment. ## Vulnerability Description: The forms in the admin area of the plugin allows CSRF. This gives the capacity for the attacker to add new forms, modify existing form settings, launch XSS attacks, export CSV files of the messages, delete forms, and perform SQL Injection. ## Proof of Concept:

CSRF - Action Links

CSRF, XSS, SQLi - Settings form

## Solution: Upgrade to v1.1.6 ## Disclosure Timeline: 2015-05-19 - Discovered. Contacted developer on support forums. 2015-05-20 - Mailed developer initial report 2015-05-25 - Patched v1.1.6 released 2015-07-09 - Publishing disclosure to FD ## Disclaimer: This disclosure is purely meant for educational purposes. I will in no way be responsible as to how the information in this disclosure is used.