id: brother-printer-panel

info:
  name: Brother Printer Panel - Detect
  author: pdteam
  severity: info
  description: |
    Brother printer web interface and management panel was detected. This template identifies exposed Brother printer panels that may be accessible without authentication.
  reference:
    - https://www.rapid7.com/blog/post/multiple-brother-devices-multiple-vulnerabilities-fixed
    - https://support.brother.com/g/b/faqend.aspx?c=eu_ot&lang=en&prod=group2&faqid=faq00100846_000
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
  metadata:
    verified: true
    max-request: 3
    shodan-query:
      - http.title:"Brother" OR http.title:"Printer" AND "Brother Industries"
    fofa-query:
      - app="brother-Printer"
    zoomeye-query:
      - device="brother-Printer" || app="brother-Printer"
  tags: panel,brother,printer,iot,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/general/status.html"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200 && contains(tolower(body), "brother industries")'
          - 'status_code == 200 && contains(tolower(body), "brother printer")'
          - 'status_code == 200 && contains(tolower(body), "brother mfc")'
          - 'status_code == 200 && contains(tolower(body), "brother hl")'
          - 'status_code == 200 && contains(tolower(body), "brother dcp")'
        condition: or

      - type: dsl
        dsl:
          - 'status_code == 200 && contains(tolower(body), "solutions.brother.com")'

    extractors:
      - type: regex
        group: 1
        part: body
        regex:
          - '(?i)<title[^>]*>([^<]+)</title>'
# digest: 4a0a00473045022100fad223bafb8ff537484e2bcdab7cf2c7f2c9a97e9403b3d1bbdf814d2e2eb9ac022051531cb5e453b7c0758fef6fe6a4d9e42498bd3a2d5cad567438f8acfd354e3c:922c64590222798bb761d5b6d8e72950