id: wordpress-userfeedback-lite

info:
  name: User Feedback – Create Interactive Feedback Form, User Surveys, and Polls in Seconds Detection
  author: ricardomaia
  severity: info
  reference:
    - https://wordpress.org/plugins/userfeedback-lite/
  metadata:
    plugin_namespace: userfeedback-lite
    wpscan: https://wpscan.com/plugin/userfeedback-lite
  tags: tech,wordpress,wp-plugin,top-200

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

    payloads:
      last_version: helpers/wordpress/plugins/userfeedback-lite.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: 4a0a00473045022100cc27288a6e1fa0134e85896e87729a23eae97e4d0a88b53c1c8a999d32aee140022041b0ec7cc370234cc1dfee3699d53d1f24f7a0966f7fe36b3f3bcb982b31d224:922c64590222798bb761d5b6d8e72950