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,discovery

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: 4a0a00473045022100f833112c22a7947eb622630bfecf30eaf17c1d4fb1c5ba91e9700747fc58e15a02204091bd0f822fd831fc679ab70cd414377812d23d227c047b6129896849b8110d:922c64590222798bb761d5b6d8e72950