WordPress Plugin Vulnerabilities

Top Bar < 3.0.5 - Admin+ Stored XSS

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)

Proof of Concept

1. Go to "Top Bar" in WP Admin
2. Save the settings and intercept the request in Burp
3. Change the `tpbr_color` parameter to: `"+onmouseover='alert(1)'"` 
4. Submit and see XSS when you mouseover the bar on the frontend

Affects Plugins

Fixed in 3.0.5

References

Classification

Type
XSS
CWE

Miscellaneous

Original Researcher
Dmitrii Ignatyev
Submitter
Dmitrii Ignatyev
Submitter website
Verified
Yes

Timeline

Publicly Published
2024-03-25 (about 1 months ago)
Added
2024-03-25 (about 1 months ago)
Last Updated
2024-03-25 (about 1 months ago)

Other