id: wordpress-extendify

info:
  name: Extendify Detection
  author: ricardomaia
  severity: info
  reference:
    - https://wordpress.org/plugins/extendify/
  metadata:
    plugin_namespace: extendify
    wpscan: https://wpscan.com/plugin/extendify
  tags: tech,wordpress,wp-plugin,top-200,discovery

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

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