id: wordpress-coming-soon

info:
  name: Website Builder by SeedProd — Theme Builder, Landing Page Builder, Coming Soon Page, Maintenance Mode Detection
  author: ricardomaia
  severity: info
  reference:
    - https://wordpress.org/plugins/coming-soon/
  metadata:
    plugin_namespace: coming-soon
    wpscan: https://wpscan.com/plugin/coming-soon
  tags: tech,wordpress,wp-plugin,top-100,top-200,discovery

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

    payloads:
      last_version: helpers/wordpress/plugins/coming-soon.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: 4a0a00473045022021fd3440850fb30e43403d1cb89112a6a49846023c0e23ec8ae43da4ec9d234f022100b9e1b0a96bbd40cad0e8cbad5b56117c9d792e60d3a29495efe209b6360d5968:922c64590222798bb761d5b6d8e72950