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

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