------------------------------------------------------------------------ Cross-Site Scripting vulnerability in Caldera Forms WordPress Plugin ------------------------------------------------------------------------ Jurgen Kloosterman, July 2016 ------------------------------------------------------------------------ Abstract ------------------------------------------------------------------------ A Cross-Site Scripting vulnerability was found in the Caldera Forms WordPress Plugin. This issue allows an attacker to perform a wide variety of actions, such as stealing Administrators' session tokens, or performing arbitrary actions on their behalf. In order to exploit this issue, the attacker has to lure/force a logged on WordPress Administrator into opening a malicious website. ------------------------------------------------------------------------ OVE ID ------------------------------------------------------------------------ OVE-20160720-0007 ------------------------------------------------------------------------ Tested versions ------------------------------------------------------------------------ This issue was successfully tested on Caldera Forms [2] WordPress Plugin version 1.3.5.3 ------------------------------------------------------------------------ Fix ------------------------------------------------------------------------ The Caldera Forms developers issued a fix in Caldera Forms 1.4.2 [3] which adds nonces for multiple functions (including create_form()), therefore effectively solving this issue. ------------------------------------------------------------------------ Introduction ------------------------------------------------------------------------ A Cross-Site Scripting vulnerability was found in the Caldera Forms WordPress Plugin, as the source code such as the creating new forms does not include an anti-Cross-Site Request Forgery token. ------------------------------------------------------------------------ Details ------------------------------------------------------------------------ A Stored Cross-Site Scripting vulnerability exists in the Caldera Forms WordPress plugin. This vulnerability allows an attacker to perform any action with the privileges of the target user. The affected code is not protected with an anti-Cross-Site Request Forgery token. Consequently, it can be exploited by luring the target user into clicking a specially crafted link or visiting a malicious website (or advertisement). The vulnerability exists in the file caldera-forms/classes/admin.php and is located in the function create_form(). 1417: echo $newform['ID']; The vulnerability can be exploited using a specially crafted HTTP POST request to obtain the CSRF token and execute Javascript. In order to exploit this issue the target user must have an active session in the Administrator control panel and visit a malicious site (or advertisement). ------------------------------------------------------------------------ Proof of concept ------------------------------------------------------------------------
------------------------------------------------------------------------ References ------------------------------------------------------------------------ [1] https://sumofpwn.nl/advisory/2016/cross_site_scripting_vulnerability_in_caldera_forms_wordpress_plugin.html [2] https://wordpress.org/plugins/caldera-forms/ [3] https://nl.wordpress.org/plugins/caldera-forms/changelog/