2020-09-05 06:55:52 +00:00
|
|
|
id: default-sql-dump
|
2020-09-04 22:38:46 +00:00
|
|
|
|
|
|
|
info:
|
2020-09-05 06:57:00 +00:00
|
|
|
name: MySQL Dump Files
|
2021-06-09 12:20:56 +00:00
|
|
|
author: geeknik,dwisiswant0
|
2020-09-04 22:38:46 +00:00
|
|
|
severity: medium
|
2022-01-04 19:34:16 +00:00
|
|
|
tags: exposure,backup,mysql
|
2020-09-04 22:38:46 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- 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"
|
|
|
|
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
|