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
|
2022-07-28 12:47:23 +00:00
|
|
|
author: geeknik,dwisiswant0,ELSFA7110
|
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
|
2022-01-04 19:34:16 +00:00
|
|
|
tags: exposure,backup,mysql
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 20
|
2020-09-04 22:38:46 +00:00
|
|
|
|
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:
|
|
|
|
- "{{BaseURL}}/1.sql"
|
|
|
|
- "{{BaseURL}}/backup.sql"
|
|
|
|
- "{{BaseURL}}/database.sql"
|
2020-09-08 15:10:58 +00:00
|
|
|
- "{{BaseURL}}/data.sql"
|
2020-09-04 22:38:46 +00:00
|
|
|
- "{{BaseURL}}/db_backup.sql"
|
|
|
|
- "{{BaseURL}}/dbdump.sql"
|
|
|
|
- "{{BaseURL}}/db.sql"
|
|
|
|
- "{{BaseURL}}/dump.sql"
|
2020-09-08 15:10:58 +00:00
|
|
|
- "{{BaseURL}}/{{Hostname}}.sql"
|
2021-04-01 11:39:28 +00:00
|
|
|
- "{{BaseURL}}/{{Hostname}}_db.sql"
|
2020-09-04 22:38:46 +00:00
|
|
|
- "{{BaseURL}}/localhost.sql"
|
2020-09-08 15:10:58 +00:00
|
|
|
- "{{BaseURL}}/mysqldump.sql"
|
2020-09-04 22:38:46 +00:00
|
|
|
- "{{BaseURL}}/mysql.sql"
|
|
|
|
- "{{BaseURL}}/site.sql"
|
|
|
|
- "{{BaseURL}}/sql.sql"
|
|
|
|
- "{{BaseURL}}/temp.sql"
|
|
|
|
- "{{BaseURL}}/translate.sql"
|
2020-09-08 15:10:58 +00:00
|
|
|
- "{{BaseURL}}/users.sql"
|
|
|
|
- "{{BaseURL}}/wp-content/uploads/dump.sql"
|
2022-07-28 12:47:23 +00:00
|
|
|
- "{{BaseURL}}/wp-content/mysql.sql"
|
2020-09-08 15:10:58 +00:00
|
|
|
headers:
|
|
|
|
Range: "bytes=0-3000"
|
2021-06-01 07:51:24 +00:00
|
|
|
|
2022-02-28 14:09:26 +00:00
|
|
|
max-size: 2000 # Size in bytes - Max Size to read from server response
|
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
|
2022-10-19 21:11:27 +00:00
|
|
|
|
|
|
|
# Enhanced by mp on 2022/10/12
|