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,vuln

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: 4a0a00473045022100f2aef5cc42f97446563d8d37858173e723963560971e4fc0a50c6fb84da760350220722314a8d50ed86e707f28e0c8307d0c7f848d15c465db9f3329ff25be3cacfa:922c64590222798bb761d5b6d8e72950