id: intelbras-dvr-unauth

info:
  name: Intelbras DVR - Unrestricted Access
  author: pussycat0x
  severity: low
  description: |
    The HTTP GET request to /cap.js on the server Intelbras DVR reveals several potentially sensitive pieces of information that are not properly protected or encrypted.
  reference:
    - https://github.com/netsecfish/intelbras_cap_js
  metadata:
    verified: true
    max-request: 1
    fofa-query: "body=\"Intelbras\""
  tags: unauth,intelbras,dvr,misconfig

http:
  - method: GET
    path:
      - "{{BaseURL}}/cap.js"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "var talkTypes="
          - "var userInfo="
        condition: and

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