id: wordpress-fast-indexing-api

info:
  name: Instant Indexing for Google Detection
  author: ricardomaia
  severity: info
  reference:
    - https://wordpress.org/plugins/fast-indexing-api/
  metadata:
    plugin_namespace: fast-indexing-api
    wpscan: https://wpscan.com/plugin/fast-indexing-api
  tags: tech,wordpress,wp-plugin,top-200

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

    payloads:
      last_version: helpers/wordpress/plugins/fast-indexing-api.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: 4a0a00473045022100f30198d2b9fd9935ab7c2b197703a7a0c8bb8fe09296fcf3add8b406ec6a0f4002207f63d4556624be00fe42d4555b040018f206b1b0dea5b99af77280553f29dbfe:922c64590222798bb761d5b6d8e72950