id: flexmls-idx-detect

info:
  name: Flexmls IDX - Detect
  author: rxerium,sorrowx3
  severity: info
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"/wp-content/plugins/flexmls-idx"
  tags: tech,detect,flexmls,idx

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

    payloads:
      last_version: helpers/wordpress/plugins/flexmls-idx.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: 4b0a00483046022100e034da744d9b6febcfdb64fcf4e5ee801bfc30c3b1521332e69c03d01b2f89e5022100c7f8a04456f82e31d1937651f21f7b3b09c5c14cb3155e48668b5cd719ffa882:922c64590222798bb761d5b6d8e72950