id: zte-panel

info:
  name: ZTE Panel - Detect
  author: its0x08,idealphase
  severity: info
  description: |
    ZTE panel was detected. ZTE Corporation is a global leader in telecommunications and information technology. Founded in 1985 and listed on both the Hong Kong and Shenzhen Stock Exchanges, the company has been committed to providing innovative technologies and integrated solutions for global operators, government and enterprise, and consumers from over 160 countries across the globe. ZTE Corporation is a global leader in telecommunications and information technology. Founded in 1985 and listed on both the Hong Kong and Shenzhen Stock Exchanges, the company has been committed to providing innovative technologies and integrated solutions for global operators, government and enterprise, and consumers from over 160 countries across the globe.
  reference:
    - https://www.zte.com.cn/global/
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
    cpe: cpe:2.3:h:zte:nr8120a:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.html:"ZTE Corporation"
    product: nr8120a
    vendor: zte
  tags: panel,zte,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    matchers:
      - type: word
        part: body
        words:
          - "ZTE Corporation. All rights reserved. </div>"
          - '<form name="fLogin" id="fLogin" method="post"  onsubmit="return false;" action="">'
        condition: and

      - type: word
        part: header
        words:
          - "Mini web server 1.0 ZTE corp 2005."

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '<div class="type"><font id="">(.+)<\/font><\/div>'
# digest: 4a0a00473045022100917418e575ff9e0c04b0f2ff5ab6dae2aa8e355374361cc35fdbd0abe617538f02204f3bc5f10fa205dbb29c4a216f6644ca80ef650dcba8500a5ca20849cbcc4df9:922c64590222798bb761d5b6d8e72950