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

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: 4a0a0047304502207a0faf75d6fbb68c9a6920c402000ec73aa8ca6999369dc849d90b929bdaa5a5022100ae8a5a8c1cdaf0001b3eaaa12dc018d1bba45645cb24a2d563062a107ed47ed6:922c64590222798bb761d5b6d8e72950