WordPress Plugin Vulnerabilities

Welcart e-Commerce < 2.8.9 - Contributor+ Stored XSS via Shortcode

Description

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

Proof of Concept

1. Add a product item to the plugin. The item name, for example, "first". You will also use this in the shortcode.


2. Exploit shortcode:

[button_to_cart item='first' value='SUBMIT" onmouseover="alert(1)" style="border:5px solid red;"']

Affects Plugins

Fixed in 2.8.9

References

Classification

Type
XSS
CWE

Miscellaneous

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

Timeline

Publicly Published
2022-12-23 (about 1 years ago)
Added
2022-12-23 (about 1 years ago)
Last Updated
2022-12-23 (about 1 years ago)

Other