id: wordpress-breeze

info:
  name: Breeze – WordPress Cache Plugin Detection
  author: ricardomaia
  severity: info
  reference:
    - https://wordpress.org/plugins/breeze/
  metadata:
    plugin_namespace: breeze
    wpscan: https://wpscan.com/plugin/breeze
  tags: tech,wordpress,wp-plugin,top-200,discovery

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

    payloads:
      last_version: helpers/wordpress/plugins/breeze.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: 4a0a00473045022048a488570e6493eea7fe5103afe8c1c277df2dd9cf05c7fff700382a357e44d4022100acc4fee60dfd15bf62518a20e30e9980068baebffb855b36533799407fe4c621:922c64590222798bb761d5b6d8e72950