id: wordpress-creame-whatsapp-me

info:
  name: Joinchat Detection
  author: ricardomaia
  severity: info
  reference:
    - https://wordpress.org/plugins/creame-whatsapp-me/
  metadata:
    max-request: 1
    plugin_namespace: creame-whatsapp-me
    wpscan: https://wpscan.com/plugin/creame-whatsapp-me
  tags: tech,wordpress,wp-plugin,top-200

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

    payloads:
      last_version: helpers/wordpress/plugins/creame-whatsapp-me.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: 490a0046304402206fc80394e3d0f0b762445b02ed393d3eacb700c39c3405dd7ec9eb2ad2a43aea0220767c2c7547f0df7c7b14c1af3eb63ccfeef39eb70d398d36dad51f090452e6e3:922c64590222798bb761d5b6d8e72950