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:
    verified: true
    max-request: 1
    vendor: papercut
    product: papercut_ng
    google-query:
      - html:'content="PaperCut'
      - html:'content="papercut'
    shodan-query:
      - http.html:'content="papercut'
      - cpe:"cpe:2.3:a:papercut:papercut_ng"
      - http.html:"content=\"papercut\""
    fofa-query:
      - body='content="papercut'
      - body="content=\"papercut\""
  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: 4a0a0047304502200cf353f9f3bbe01e1805248dfb75f4445b25853f0d9b53ef531b04e465627834022100ad6c7851eb4e70c05cc55b1cce698fb80a36342e0bfa056f5dacb10f0df1f51f:922c64590222798bb761d5b6d8e72950