id: phplist-detect

info:
  name: phpList - Detect
  author: ricardomaia
  severity: info
  description: |
    phpList is an open source newsletter manager.
  reference:
    - https://www.phplist.org/
  classification:
    cpe: cpe:2.3:a:phplist:phplist:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: phplist
    product: phplist
    shodan-query: html:"phplist"
  tags: tech,phplist,detect

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    host-redirects: true
    max-redirects: 2
    matchers:
      - type: word
        part: body
        words:
          - 'content="phpList'
          - 'phpList Ltd'
          - 'phpList</a>'
        condition: or
        case-insensitive: true

    extractors:
      - type: regex
        name: version
        part: body
        group: 1
        regex:
          - '(?i)version.((\d\.?)+)'
# digest: 4b0a00483046022100ac74162bd9bde8f734e307925bd8926bf5d38242f64f874edf9fb551cf4a6e9e022100ce9cc1d1f1354c0e4e547492feca24535615b95d71e9107bc4061de762e1bc2b:922c64590222798bb761d5b6d8e72950