Description
The PayPal Pay Now, Buy Now, Donation and Cart Buttons Shortcode plugin for WordPress is vulnerable to Stored Cross-Site Scripting via admin settings in all versions up to, and including, 1.7 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with administrator-level permissions and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This only affects multi-site installations and installations where unfiltered_html has been disabled.
Severity
4.4 (Medium) - CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N
Affected Version
<= 1.7
PoC :
- Login
- Install Plugin
- Go to plugin
- Input payload eneriiiiiiiiii"><script>alert('eneriiiii?')</script> to this field :
Paypal E-Mail Address
Business/Product Name
Currency
Tax Rate
Shipping Charges
Checkout Page Border Color
Checkout Page Header Background Color
Checkout Page Background Color
Thank You Page URL
Logo URL
Custom Payment Button
- Save
Reference
- https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/paypal-pay-buy-donation-and-cart-buttons-shortcode/paypal-pay-now-buy-now-donation-and-cart-buttons-shortcode-17-authenticated-admin-stored-cross-site-scripting
- https://www.cve.org/CVERecord?id=CVE-2024-3065