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

57 lines
1.6 KiB
YAML
Raw Permalink Normal View History

id: mysql-history
2023-11-03 10:16:04 +00:00
info:
2023-11-06 19:24:41 +00:00
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
2024-09-10 09:08:16 +00:00
classification:
cpe: cpe:2.3:a:oracle:mysql:*:*:*:*:*:*:*:*
2023-11-03 10:16:04 +00:00
metadata:
verified: true
max-request: 1
2024-09-10 08:22:50 +00:00
vendor: oracle
2024-09-10 09:08:16 +00:00
product: mysql
shodan-query: html:"mysql_history"
2023-11-06 19:24:41 +00:00
tags: misconfig,disclosure,config
2023-11-03 10:16:04 +00:00
http:
- method: GET
path:
- "{{BaseURL}}/.mysql_history"
matchers-condition: and
matchers:
2023-11-04 13:10:58 +00:00
- type: word
words:
- "_HiStOrY_V2_"
- "show databases;"
2023-11-03 10:16:04 +00:00
condition: or
2023-11-06 19:24:41 +00:00
- type: word
part: header
words:
- "application/octet-stream"
- "text/plain"
- "filename=\".mysql_"
2023-11-03 10:16:04 +00:00
- type: word
part: response
words:
- "<?xml"
- "<env"
- "application/javascript"
- "application/json"
- "application/xml"
- "html>"
- "text/html"
- "image/"
negative: true
- type: status
status:
- 200
2024-09-12 05:14:01 +00:00
# digest: 4a0a0047304502210082cee34a71a2f654b13c56332af71a1e008e0713fdc3a3c5e23380be6137ffa202201ab6058e334acd6ca430237bf3696b19b39982287fc926f15f2c659cf7ce983f:922c64590222798bb761d5b6d8e72950