Merge pull request #10943 from projectdiscovery/netdisco-default-login

Create netdisco-default-login.yaml
patch-12
Dhiyaneshwaran 2024-10-07 13:32:41 +05:30 committed by GitHub
commit 0e48dca4cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,40 @@
id: netdisco-default-login
info:
name: Netdisco Admin - Default Login
author: ritikchaddha
severity: critical
description: |
Detects use of hard-coded credentials in Netdisco.
impact: |
Attackers can potentially exploit this vulnerability to gain unauthorized access to sensitive information.
remediation: |
Update the application to remove hard-coded credentials and implement secure credential management practices.
metadata:
verified: true
max-request: 1
shodan-query: title:"Netdisco"
fofa-query: title="Netdisco"
tags: netdisco,default-login
variables:
username: "netdisco"
password: "netdisco"
http:
- raw:
- |
POST /login HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
username={{username}}&password={{password}}&return_url=%2Finventory
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