2020-09-05 06:55:52 +00:00
|
|
|
id: default-sql-dump
|
2020-09-04 22:38:46 +00:00
|
|
|
|
|
|
|
info:
|
2022-10-19 21:11:27 +00:00
|
|
|
name: MySQL - Dump Files
|
2023-12-31 16:09:36 +00:00
|
|
|
author: geeknik,dwisiswant0,ELSFA7110,mastercho
|
2020-09-04 22:38:46 +00:00
|
|
|
severity: medium
|
2022-10-19 21:11:27 +00:00
|
|
|
description: A MySQL dump file was found
|
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
|
|
|
|
cvss-score: 5.3
|
|
|
|
cwe-id: CWE-200
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
2024-01-29 11:58:34 +00:00
|
|
|
max-request: 21
|
2023-10-14 11:27:55 +00:00
|
|
|
tags: exposure,backup,mysql
|
2022-10-19 21:11:27 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2020-09-04 22:38:46 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
2024-04-12 10:31:51 +00:00
|
|
|
- "{{BaseURL}}{{paths}}"
|
|
|
|
payloads:
|
|
|
|
paths:
|
|
|
|
- "/1.sql"
|
|
|
|
- "/backup.sql"
|
|
|
|
- "/database.sql"
|
|
|
|
- "/data.sql"
|
|
|
|
- "/db_backup.sql"
|
|
|
|
- "/dbdump.sql"
|
|
|
|
- "/db.sql"
|
|
|
|
- "/dump.sql"
|
|
|
|
- "/{{Hostname}}.sql"
|
|
|
|
- "/{{Hostname}}_db.sql"
|
|
|
|
- "/localhost.sql"
|
|
|
|
- "/mysqldump.sql"
|
|
|
|
- "/mysql.sql"
|
|
|
|
- "/site.sql"
|
|
|
|
- "/sql.sql"
|
|
|
|
- "/temp.sql"
|
|
|
|
- "/translate.sql"
|
|
|
|
- "/users.sql"
|
|
|
|
- "/www.sql"
|
|
|
|
- "/wp-content/uploads/dump.sql"
|
|
|
|
- "/wp-content/mysql.sql"
|
2023-10-14 11:27:55 +00:00
|
|
|
|
2020-09-08 15:10:58 +00:00
|
|
|
headers:
|
|
|
|
Range: "bytes=0-3000"
|
2023-10-14 11:27:55 +00:00
|
|
|
max-size: 2000 # Size in bytes - Max Size to read from server response
|
2021-06-01 07:51:24 +00:00
|
|
|
|
2020-09-05 06:55:52 +00:00
|
|
|
matchers-condition: and
|
2020-09-04 22:47:40 +00:00
|
|
|
matchers:
|
2020-09-08 15:10:58 +00:00
|
|
|
- type: regex
|
|
|
|
regex:
|
|
|
|
- "(?m)(?:DROP|CREATE|(?:UN)?LOCK) TABLE|INSERT INTO"
|
2020-09-04 22:44:36 +00:00
|
|
|
part: body
|
2021-06-01 07:51:24 +00:00
|
|
|
|
2020-09-05 06:55:52 +00:00
|
|
|
- type: status
|
|
|
|
status:
|
2020-09-08 15:10:58 +00:00
|
|
|
- 200
|
|
|
|
- 206
|
2021-04-01 11:39:28 +00:00
|
|
|
condition: or
|
2024-04-12 10:58:47 +00:00
|
|
|
# digest: 490a00463044022016d685f84a873147704d9f80f703c04e58ea0289663816a3a42548469ad2721a022008a33f91d80f14fd5de3c353e4065a1a756d08118b5c421e769646d47075467f:922c64590222798bb761d5b6d8e72950
|