------------------------------------------------------------------------ Admin Custom Login WordPress plugin custom login page affected by persistent Cross-Site Scripting ------------------------------------------------------------------------ Burak Kelebek, July 2016 ------------------------------------------------------------------------ Abstract ------------------------------------------------------------------------ A persistent Cross-Site Scripting vulnerability has been encountered in the Admin Custom Login 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. There is an option in this plugin to add custom style on the login page of wordpress. If you simply close the tags you are able to put malicious script which will be executed on the login page. ------------------------------------------------------------------------ OVE ID ------------------------------------------------------------------------ OVE-20160712-0003 ------------------------------------------------------------------------ Tested versions ------------------------------------------------------------------------ This issue was succesfully tested on the Admin Custom Login [2] WordPress plugin version 2.4.5.2. ------------------------------------------------------------------------ Fix ------------------------------------------------------------------------ There is currently no fix available. ------------------------------------------------------------------------ Introduction ------------------------------------------------------------------------ Admin custom login plugin give ability to customize your WordPress admin login page according to you. Pugin allows to change background color, background image, background slide show, login form color, login form font size, login form position, add social media icon on form and many more features. ------------------------------------------------------------------------ Details ------------------------------------------------------------------------ It is possible as an Admin to put XSS on login page, but more interesting is the lack of CSRF, so if you can trick a logged-in admin to open a link with code below XSS will be added to the login page. ------------------------------------------------------------------------ Proof of concept ------------------------------------------------------------------------
------------------------------------------------------------------------ References ------------------------------------------------------------------------ [1] https://sumofpwn.nl/advisory/2016/admin_custom_login_wordpress_plugin_custom_login_page_affected_by_persistent_cross_site_scripting.html [2] https://wordpress.org/plugins/admin-custom-login/