id: wordpress-sticky-header-effects-for-elementor

info:
  name: Sticky Header Effects for Elementor Detection
  author: ricardomaia
  severity: info
  reference:
    - https://wordpress.org/plugins/sticky-header-effects-for-elementor/
  metadata:
    plugin_namespace: sticky-header-effects-for-elementor
    wpscan: https://wpscan.com/plugin/sticky-header-effects-for-elementor
  tags: tech,wordpress,wp-plugin,top-200,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/sticky-header-effects-for-elementor/readme.txt"

    payloads:
      last_version: helpers/wordpress/plugins/sticky-header-effects-for-elementor.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: 490a00463044022009da7a88e68e359df5aa0cf56fc0ef346b8e3c97b19ec919cd2e00250355a4d60220700f2f800ba6b8be5cf2602abf928a4b1e1b2d9d47eef26bd88087f44d9c7917:922c64590222798bb761d5b6d8e72950