id: audiobookshelf-panel

info:
  name: Audiobookshelf Login Panel - Detect
  author: ritikchaddha
  severity: info
  reference:
    - https://github.com/advplyr/audiobookshelf
  classification:
    cpe: cpe:2.3:a:audiobookshelf:audiobookshelf:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    shodan-query: title:"Audiobookshelf"
    product: audiobookshelf
    vendor: audiobookshelf
  tags: panel,audiobookshelf,detect,discovery

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

    stop-at-first-match: true
    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<title>Audiobookshelf'
          - 'content="Audiobookshelf'
        condition: or

      - type: status
        status:
          - 200
# digest: 490a00463044022046e8fbfa1e847e4394e8468e13ff52b25da1c3a00daffa189169b23547dc212f022041f7cf7c2166a6bf4a6c9c409db63a7289d7c56baad2c7c7f1ec8f35ba6dcf60:922c64590222798bb761d5b6d8e72950