WordPress Plugin Vulnerabilities

Rich Table of Contents < 1.3.9 - Contributor+ Stored XSS

Description

The plugin does not validate and escape some 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

Note: The shortcode generates the content based on the h2 tags, so the heading tags must also be specified. Please use the Classic editor » text area to paste the content: 

<h2>title</h2>
[rtoc_mokuji frame_design='" onmouseover="alert(1)"' list_h2_type='round' heading='h2']

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-01-17 (about 1 years ago)
Added
2023-01-17 (about 1 years ago)
Last Updated
2023-02-20 (about 1 years ago)

Other