id: apple-cups-exposure

info:
  name: Apple CUPS Sources - Exposure
  author: DhiyaneshDK
  severity: unknown
  description: |
    Apple CUPS Sources was exposed.
  reference:
    - https://github.com/apple/cups
  classification:
    cpe: cpe:2.3:a:apple:cups:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: apple
    product: cups
    shodan-query: html:"Home - CUPS"
  tags: apple,cups,exposure,misconfig

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

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - "<title>Home \\- CUPS ([0-9.]+)<\\/title>"

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