WordPress Pootle Button 1.1.1 Cross Site Scripting
Posted on 12 October 2017
Class Input Validation Error Remote Yes Reflected Yes Credit Ricardo Sanchez Vulnerable Pootle button plugin 1.1.1 Pootle button plugin is prone to a cross-site scripting vulnerability because it fails to sufficiently sanitize user-supplied data. An attacker may leverage this issue to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This may allow the attacker to steal cookie-based authentication credentials and to launch other attacks. To exploit this issue following steps: The XSS reflected because the "assets_url" value is not filter correcly: <script src="<?php echo $_GET['assets_url'] . 'alpha-color.js' ?>"></script> <link rel="stylesheet" href="<?php echo $_GET['assets_url'] . 'dashicons-select.css' ?>"> <script src="<?php echo $_GET['assets_url'] . 'dashicons-select.js?v=1.0.1' ?>"></script> Demo url: *http://localhost/wordpress/wp-admin/admin-ajax.php?action=pbtn_dialog&assets_url=%22%3E%3Cscript%3Ealert(1)%3C%2fscript%3E <http://localhost/wordpress/wp-admin/admin-ajax.php?action=pbtn_dialog&assets_url=%22%3E%3Cscript%3Ealert(1)%3C%2fscript%3E>*