id: wordpress-forminator

info:
  name: Forminator Forms – Contact Form, Payment Form & Custom Form Builder Detection
  author: ricardomaia
  severity: info
  reference:
    - https://wordpress.org/plugins/forminator/
  metadata:
    plugin_namespace: forminator
    wpscan: https://wpscan.com/plugin/forminator
  tags: tech,wordpress,wp-plugin,top-200

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/forminator/readme.txt"

    payloads:
      last_version: helpers/wordpress/plugins/forminator.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: 490a00463044022055c6c0aade0740bfc97ac81d7a9953b96b5a2506d9296e8bee0e796f461ac072022052a0c4a68cb4f4bf6f04579a24c7f4d85b7e5159c22d89a95edf595bced79444:922c64590222798bb761d5b6d8e72950