id: netdisco-unauth

info:
  name: Netdisco - Unauth Access
  author: ritikchaddha
  severity: critical
  description: |
    Detects an unauth dashboard access of Netdisco.
  impact: |
    Attackers can potentially exploit this vulnerability to gain unauthorized access to sensitive information.
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:"Netdisco"
    fofa-query: title="Netdisco"
  tags: netdisco,misconfig,unauth,vuln

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

    host-redirects: true
    max-redirects: 2
    matchers:
      - type: dsl
        dsl:
          - contains_all(body, "User Management", "/admin/discoverall", "Logged in as")
          - status_code == 200
        condition: and
# digest: 4a0a0047304502206b92465851ca03a61244bf7cd6bd3066e58c547c8425d1661826febc1ddbb53b0221009d2ef0f96c1409aff0530159e64b317552fcbc4e74477bbf706c604552d9a594:922c64590222798bb761d5b6d8e72950