id: openwrt-login

info:
  name: Opentwrt Login / Configuration Interface
  author: For3stCo1d,TechbrunchFR
  severity: info
  reference:
    - https://openwrt.org
    - https://github.com/openwrt/luci
  classification:
    cpe: cpe:2.3:o:openwrt:openwrt:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    product: openwrt
    shodan-query: http.title:"OpenWrt - LuCI"
    vendor: openwrt
  tags: openwrt,router,panel

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

    stop-at-first-match: true
    host-redirects: true
    max-redirects: 2
    matchers:
      - type: word
        part: body
        words:
          - '<title>OpenWrt'
          - "Powered by LuCI"
        condition: or

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '(?i)OpenWrt  ([A-Z0-9.]+)'
# digest: 4a0a00473045022100f384e4d62f02fb2fa6cdc78261d5ee2bcb82486c397620b12a39a2bcb68a4f2b022002a01a25ae26c88e15075b9d2fa2abef4911fc673faa6e2dac981bf172bf330c:922c64590222798bb761d5b6d8e72950