id: xiaomi-wireless-router-login

info:
  name: Xiaomi Wireless Router Admin Panel - Detect
  author: lu4nx
  severity: info
  description: |
    Xiaomi Wireless router admin panel was detected.
  reference:
    - https://www.mi.com/shop/search?keyword=%E8%B7%AF%E7%94%B1%E5%99%A8
  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:mi:xiaomi_router_ax3200:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    shodan-query: http.title:"小米路由器"
    zoomeye-query: app="小米路由器"
    product: xiaomi_router_ax3200
    vendor: mi
  tags: panel,xiaomi

http:
  - method: GET
    path:
      - "{{BaseURL}}/cgi-bin/luci/web"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<title>小米路由器</title>"
          - "<title>Redmi路由器</title>"
        condition: or

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