40 lines
978 B
YAML
40 lines
978 B
YAML
id: mysql-empty-password
|
|
|
|
info:
|
|
name: MySQL - Empty Password
|
|
author: DhiyaneshDk
|
|
severity: high
|
|
description: |
|
|
Checks for MySQL servers with an empty password for root or anonymous.
|
|
metadata:
|
|
max-request: 3
|
|
shodan-query: "port:3306"
|
|
tags: js,mssql,network
|
|
|
|
javascript:
|
|
- pre-condition: |
|
|
isPortOpen(Host,Port);
|
|
code: |
|
|
var m = require("nuclei/mysql");
|
|
var c = m.MySQLClient();
|
|
c.Connect(Host,Port,User,Pass)
|
|
|
|
args:
|
|
Host: "{{Host}}"
|
|
Port: "3306"
|
|
User: "{{username}}"
|
|
Pass: " "
|
|
|
|
payloads:
|
|
usernames:
|
|
- root
|
|
- anonymous
|
|
|
|
stop-at-first-match: true
|
|
matchers:
|
|
- type: dsl
|
|
dsl:
|
|
- "response == true"
|
|
- "success == true"
|
|
condition: and
|
|
# digest: 4a0a0047304502203bf8e2005273801e14f090a1d92a5e3846617dc81a082eee32f7a3a362e76bda022100d9add9d77d14ada3782f0f7535f5e66d942033225f9c31a47a78fbd3979473de:922c64590222798bb761d5b6d8e72950 |