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

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: 4b0a00483046022100bd0897313d6be384d1bf1810ff39eed5340b25087ef7765fefc05370d947852f022100a26bdf47e541e004ff2a98645c8d2b77928507bb78ea2592b1512df2dd5127de:922c64590222798bb761d5b6d8e72950