id: papercut-login-panel

info:
  name: PaperCut Panel - Detect
  author: ritikchaddha
  severity: info
  description: |
    PaperCut is a print management system. Log in to manage your print quotas, see your print history and configure your system.
  classification:
    cpe: cpe:2.3:a:papercut:papercut_ng:*:*:*:*:*:*:*:*
  metadata:
    google-query: html:'content="PaperCut'
    max-request: 1
    product: papercut_ng
    vendor: papercut
    verified: true
  tags: panel,papercut,detect

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

    host-redirects: true
    max-redirects: 2

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

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100ce863e4ace61a140ed505d71cb40ccf7ff41e6f971bf8efe3179c537c83de15302202e6e6ee538a61bd26bdc61363768a78b6ab95a4f7e9286f1aa4c75ddb56df632:922c64590222798bb761d5b6d8e72950