WordPress Plugin Vulnerabilities

WP Show Posts < 1.1.4 - Contributor+ Stored XSS

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

1. Add a new list and get the ID.

2. Insert the following shortcode with the ID and submit the draft/save.

[wp_show_posts id='1' settings='inner_wrapper=div+onmouseover=alert(1)']

[wp_show_posts id='608" onmouseover=alert(/XSS1/)//']

3. Browse the post preview, and hover over the content; the alert triggers successfully.

Affects Plugins

Fixed in 1.1.4

References

Classification

Type
XSS
CWE

Miscellaneous

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

Timeline

Publicly Published
2023-01-11 (about 1 years ago)
Added
2023-01-11 (about 1 years ago)
Last Updated
2023-01-11 (about 1 years ago)

Other