id: wordpress-essential-addons-for-elementor-lite

info:
  name: Essential Addons for Elementor – Best Elementor Widgets With Kits, Templates & WooCommerce Builders Detection
  author: ricardomaia
  severity: info
  reference:
    - https://wordpress.org/plugins/essential-addons-for-elementor-lite/
  metadata:
    max-request: 1
    plugin_namespace: essential-addons-for-elementor-lite
    wpscan: https://wpscan.com/plugin/essential-addons-for-elementor-lite
  tags: tech,wordpress,wp-plugin,top-100,top-200

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

    payloads:
      last_version: helpers/wordpress/plugins/essential-addons-for-elementor-lite.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: 4a0a00473045022100f4d4536b494fe3fd2c8a307186feae439391e18144fc4598eff2695b69fbe7eb02205ecd4097e6616b6b054cb29b3db6f872b43810c84bee264896bd6ebaf9e835ec:922c64590222798bb761d5b6d8e72950