id: wordpress-templately

info:
  name: Templately – Elementor & Gutenberg Template Library' 5500+ Free & Pro Ready Templates And Cloud! Detection
  author: ricardomaia
  severity: info
  reference:
    - https://wordpress.org/plugins/templately/
  metadata:
    plugin_namespace: templately
    wpscan: https://wpscan.com/plugin/templately
  tags: tech,wordpress,wp-plugin,top-200,discovery

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

    payloads:
      last_version: helpers/wordpress/plugins/templately.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: 4b0a004830460221009697ce88e130c9bf6a8f5bb2fe8964bf9e83a1859df118c722f6f11ba83ed502022100d169f0edf561f01b5dee7bf52ed9353733244f1a5cd82c5fb83acc29d91b5610:922c64590222798bb761d5b6d8e72950