------------------------------------------------------------------------ Cross-Site Scripting vulnerability in ColorWay WordPress Theme ------------------------------------------------------------------------ Yorick Koster, July 2016 ------------------------------------------------------------------------ Abstract ------------------------------------------------------------------------ Multiple Cross-Site Scripting vulnerabilities were found in the ColorWay WordPress Theme. These issues allows an attacker to perform a wide variety of actions, such as stealing users' session tokens, or performing arbitrary actions on their behalf. In order to exploit this issue, the attacker has to lure/force a victim into opening a malicious website. ------------------------------------------------------------------------ OVE ID ------------------------------------------------------------------------ OVE-20160712-0024 ------------------------------------------------------------------------ Tested versions ------------------------------------------------------------------------ These issues were successfully tested on ColorWay [2] WordPress Theme version 3.4.1. ------------------------------------------------------------------------ Fix ------------------------------------------------------------------------ This issue is resolved in ColorWay [2] WordPress Theme version 3.4.2. ------------------------------------------------------------------------ Introduction ------------------------------------------------------------------------ Colorway [2] is simple, elegant, responsive WordPress Theme built by InkThemes.com. Multiple Cross-Site Scripting vulnerabilities were found in the ColorWay WordPress Theme. These issues allows an attacker to perform a wide variety of actions, such as stealing users' session tokens, or performing arbitrary actions on their behalf. In order to exploit this issue, the attacker has to lure/force a victim into opening a malicious website. ------------------------------------------------------------------------ Details ------------------------------------------------------------------------ These issues exists due to the lack of output encoding of user input. An example can be seen in the file contact.php. Several POST parameters are using in the output without applying proper encoding.
------------------------------------------------------------------------ Proof of concept ------------------------------------------------------------------------
------------------------------------------------------------------------ References ------------------------------------------------------------------------ [1] https://sumofpwn.nl/advisory/2016/cross_site_scripting_vulnerability_in_colorway_wordpress_theme.html [2] https://wordpress.org/themes/colorway/