id: wordpress-ml-slider

info:
  name: Slider, Gallery, and Carousel by MetaSlider – Image Slider, Video Slider Detection
  author: ricardomaia
  severity: info
  reference:
    - https://wordpress.org/plugins/ml-slider/
  metadata:
    plugin_namespace: ml-slider
    wpscan: https://wpscan.com/plugin/ml-slider
  tags: tech,wordpress,wp-plugin,top-200,discovery

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

    payloads:
      last_version: helpers/wordpress/plugins/ml-slider.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: 4a0a0047304502207c47afe535b47a3bf8af7a24afaf04750996e377eadb422d04e1eba6727012d3022100e0d8740f0593295f5feba26fd14481902cb1359e26055e46db64d3852a704f2f:922c64590222798bb761d5b6d8e72950