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,discovery

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: 490a004630440220634ce97f80bc7062b51ee1392f6fefc11677610f74887783218e8b3f820c948a0220359c192b1376de123a74e148b995f5e8c6b2f3111e4d3c3e21a337b12fcad195:922c64590222798bb761d5b6d8e72950