id: wordpress-happy-elementor-addons

info:
  name: Happy Addons for Elementor Detection
  author: ricardomaia
  severity: info
  reference:
    - https://wordpress.org/plugins/happy-elementor-addons/
  metadata:
    plugin_namespace: happy-elementor-addons
    wpscan: https://wpscan.com/plugin/happy-elementor-addons
  tags: tech,wordpress,wp-plugin,top-200

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

    payloads:
      last_version: helpers/wordpress/plugins/happy-elementor-addons.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: 4a0a00473045022100e41e65328a09347daef2491f56efd99381a27c72feb81c3c0bafd591dbd810e502205291235156745bcb6fcce7986900d1a4df7bb0d18bd7c8f14451c11f873f5b89:922c64590222798bb761d5b6d8e72950