mirror of
https://github.com/projectdiscovery/nuclei-templates.git
synced 2026-02-02 00:33:27 +08:00
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: 4a0a004730450221008efb638a50101ee566c95f553e61dccc779114bbf77c11ecbe34fb79bc625a5a0220435bbaccd7bba906910a7c6b4be6ad469090bc2d9d7ea97aad4310573927ae05:922c64590222798bb761d5b6d8e72950 |