nuclei-templates/http/misconfiguration/mysql-history.yaml

50 lines
1.3 KiB
YAML
Raw Normal View History

id: mysql-history
2023-11-03 10:16:04 +00:00
info:
name: mysql History - File Disclosure
2023-11-03 10:16:04 +00:00
author: kazet
severity: low
description: |
The mysql_history file is a history file used by the MySQL command-line client (mysql) to store a record of the SQL commands and statements entered by a user during their interactive MySQL sessions. It serves as a command history for the MySQL client, allowing users to recall and reuse previously executed SQL commands.
reference:
- http://doc.docs.sk/mysql-refman-5.5/mysql-history-file.html
2023-11-03 10:16:04 +00:00
metadata:
max-request: 1
shodan-query: html:"mysql_history"
verified: true
tags: misconfig,disclosure,file,config
2023-11-03 10:16:04 +00:00
http:
- method: GET
path:
- "{{BaseURL}}/.mysql_history"
max-redirects: 1
2023-11-03 10:16:04 +00:00
matchers-condition: and
matchers:
- type: regex
regex:
- "(?i)^CREATE "
- "(?i)^GRANT "
- "(?i)^UPDATE "
- "(?i)^INSERT "
- "(?i)^SELECT "
condition: or
- type: word
part: response
words:
- "<?xml"
- "<env"
- "application/javascript"
- "application/json"
- "application/xml"
- "html>"
- "text/html"
- "image/"
negative: true
- type: status
status:
- 200