2023-11-04 12:49:57 +00:00
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
2023-11-04 12:49:57 +00:00
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 :
2023-11-04 12:49:57 +00:00
verified : true
2023-11-07 05:24:50 +00:00
max-request : 1
2023-11-06 19:24:41 +00:00
shodan-query : html:"mysql_history"
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
2023-11-07 05:33:20 +00:00
# digest: 490a0046304402204a3e73fd4764e2ab60a4edeb79644228fa98d42ac7ccea958bde5dd4a124fbeb02201f70da8af717f2a5d68b47ecbcddc16b8692f9d3e8821a28cdf3f0db6dfe46b6:922c64590222798bb761d5b6d8e72950