id: wordpress-elementskit-lite

info:
  name: ElementsKit Elementor Addons and Templates Detection
  author: ricardomaia
  severity: info
  reference:
    - https://wordpress.org/plugins/elementskit-lite/
  metadata:
    plugin_namespace: elementskit-lite
    wpscan: https://wpscan.com/plugin/elementskit-lite
  tags: tech,wordpress,wp-plugin,top-100,top-200,discovery

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

    payloads:
      last_version: helpers/wordpress/plugins/elementskit-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: 490a0046304402200108f16fb81bea92d7fa34f3a97c307ecc12d5d01ef51f5bb348b0af9fb35b2302206404b94a052cc71731ea26a5f86581d4a16cd7f645e93e997f053e904e09d153:922c64590222798bb761d5b6d8e72950