id: wordpress-woo-checkout-field-editor-pro

info:
  name: Checkout Field Editor (Checkout Manager) for WooCommerce Detection
  author: ricardomaia
  severity: info
  reference:
    - https://wordpress.org/plugins/woo-checkout-field-editor-pro/
  metadata:
    plugin_namespace: woo-checkout-field-editor-pro
    wpscan: https://wpscan.com/plugin/woo-checkout-field-editor-pro
  tags: tech,wordpress,wp-plugin,top-200,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/woo-checkout-field-editor-pro/readme.txt"

    payloads:
      last_version: helpers/wordpress/plugins/woo-checkout-field-editor-pro.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: 4a0a00473045022071c1d1e759909976d60e8ea57d48850bb95e1f31b7069f0b3d2dbb991c26e0b2022100c04857d77e2ea7895dff0191d98b43b59826726958959137b67ce249fc9b9f54:922c64590222798bb761d5b6d8e72950