id: wordpress-all-in-one-seo-pack

info:
  name: All in One SEO – Best WordPress SEO Plugin – Easily Improve SEO Rankings & Increase Traffic Detection
  author: ricardomaia
  severity: info
  reference:
    - https://wordpress.org/plugins/all-in-one-seo-pack/
  metadata:
    max-request: 1
    plugin_namespace: all-in-one-seo-pack
    wpscan: https://wpscan.com/plugin/all-in-one-seo-pack
  tags: tech,wordpress,wp-plugin,top-100,top-200

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/all-in-one-seo-pack/readme.txt"

    payloads:
      last_version: helpers/wordpress/plugins/all-in-one-seo-pack.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: 4a0a00473045022100b2f096c8924484e07ea853b51aee095d6bb3526b2cee555078c79f45f85e9a5b02203bb660fe4a0d0e3a97a0d4d509edba66e5a43004a6fd1ebdf93fa0a58b82b5ba:922c64590222798bb761d5b6d8e72950