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