id: wordpress-jeg-elementor-kit

info:
  name: Jeg Elementor Kit Detection
  author: ricardomaia
  severity: info
  reference:
    - https://wordpress.org/plugins/jeg-elementor-kit/
  metadata:
    plugin_namespace: jeg-elementor-kit
    wpscan: https://wpscan.com/plugin/jeg-elementor-kit
  tags: tech,wordpress,wp-plugin,top-200

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

    payloads:
      last_version: helpers/wordpress/plugins/jeg-elementor-kit.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: 4a0a00473045022100d45a6aede13a203be6762c91eab84e3b412defaf71031e0c7ae1be8d4afadf900220297c33bfd6d55747418c29e8dff7ef3477c577bb37890753845e37c075ecf38c:922c64590222798bb761d5b6d8e72950