nuclei-templates/http/technologies/wordpress/plugins/woocommerce.yaml

49 lines
1.3 KiB
YAML

id: wordpress-woocommerce
info:
name: WooCommerce Detection
author: ricardomaia
severity: info
reference:
- https://wordpress.org/plugins/woocommerce/
metadata:
plugin_namespace: woocommerce
wpscan: https://wpscan.com/plugin/woocommerce
tags: tech,wordpress,wp-plugin,top-100,top-200
http:
- method: GET
path:
- "{{BaseURL}}/wp-content/plugins/woocommerce/readme.txt"
payloads:
last_version: helpers/wordpress/plugins/woocommerce.txt
extractors:
- type: regex
part: body
internal: true
name: internal_detected_version
group: 1
regex:
- '(?i)Stable.tag:\s?([\w.]+)'
- type: regex
part: body
name: detected_version
group: 1
regex:
- '(?i)Stable.tag:\s?([\w.]+)'
matchers-condition: or
matchers:
- type: dsl
name: "outdated_version"
dsl:
- compare_versions(internal_detected_version, concat("< ", last_version))
- type: regex
part: body
regex:
- '(?i)Stable.tag:\s?([\w.]+)'
# digest: 4b0a00483046022100bb8b5a2af4f171122c869e4248e05ea424df3e0a70e487f21e999553de4e3e2902210099a3e149120660a8bf7bc4b105325d64aee5d9a39dad3583330503be9c308c20:922c64590222798bb761d5b6d8e72950