nuclei-templates/http/technologies/wordpress/plugins/woocommerce-gateway-paypal-...

50 lines
1.5 KiB
YAML

id: wordpress-woocommerce-gateway-paypal-express-checkout
info:
name: WooCommerce PayPal Checkout Payment Gateway Detection
author: ricardomaia
severity: info
reference:
- https://wordpress.org/plugins/woocommerce-gateway-paypal-express-checkout/
metadata:
max-request: 1
plugin_namespace: woocommerce-gateway-paypal-express-checkout
wpscan: https://wpscan.com/plugin/woocommerce-gateway-paypal-express-checkout
tags: tech,wordpress,wp-plugin,top-200
http:
- method: GET
path:
- "{{BaseURL}}/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/readme.txt"
payloads:
last_version: helpers/wordpress/plugins/woocommerce-gateway-paypal-express-checkout.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: 4a0a00473045022100f24d6dd6230d079649cb7191de46b22312043cd2fcfb1c30045ab949f606cb25022001c7d2aa126ce412f37928bab46da104c5ac81fa9b17d1d843d36cf1b5753d87:922c64590222798bb761d5b6d8e72950