2020-04-22 14:55:53 +00:00
|
|
|
id: zip-backup-files
|
2020-04-21 19:26:15 +00:00
|
|
|
|
|
|
|
info:
|
2020-09-09 14:26:30 +00:00
|
|
|
name: Compressed Web File
|
2020-09-12 18:56:58 +00:00
|
|
|
author: Toufik Airane & @dwisiswant0
|
2020-04-21 19:26:15 +00:00
|
|
|
severity: medium
|
2021-04-06 06:46:11 +00:00
|
|
|
tags: exposure,backup
|
2020-04-21 19:26:15 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/{{Hostname}}.7z"
|
|
|
|
- "{{BaseURL}}/{{Hostname}}.bz2"
|
|
|
|
- "{{BaseURL}}/{{Hostname}}.gz"
|
|
|
|
- "{{BaseURL}}/{{Hostname}}.lz"
|
|
|
|
- "{{BaseURL}}/{{Hostname}}.rar"
|
|
|
|
- "{{BaseURL}}/{{Hostname}}.tar.gz"
|
|
|
|
- "{{BaseURL}}/{{Hostname}}.xz"
|
|
|
|
- "{{BaseURL}}/{{Hostname}}.zip"
|
|
|
|
- "{{BaseURL}}/{{Hostname}}.z"
|
|
|
|
- "{{BaseURL}}/{{Hostname}}.tar.z"
|
|
|
|
- "{{BaseURL}}/{{Hostname}}.db"
|
|
|
|
- "{{BaseURL}}/{{Hostname}}.sqlite"
|
|
|
|
- "{{BaseURL}}/{{Hostname}}.sqlitedb"
|
|
|
|
- "{{BaseURL}}/{{Hostname}}.sql.7z"
|
|
|
|
- "{{BaseURL}}/{{Hostname}}.sql.bz2"
|
|
|
|
- "{{BaseURL}}/{{Hostname}}.sql.gz"
|
|
|
|
- "{{BaseURL}}/{{Hostname}}.sql.lz"
|
|
|
|
- "{{BaseURL}}/{{Hostname}}.sql.rar"
|
|
|
|
- "{{BaseURL}}/{{Hostname}}.sql.tar.gz"
|
|
|
|
- "{{BaseURL}}/{{Hostname}}.sql.xz"
|
|
|
|
- "{{BaseURL}}/{{Hostname}}.sql.zip"
|
|
|
|
- "{{BaseURL}}/{{Hostname}}.sql.z"
|
|
|
|
- "{{BaseURL}}/{{Hostname}}.sql.tar.z"
|
2021-06-01 07:35:11 +00:00
|
|
|
|
|
|
|
max-size: 500 # Size in bytes - Max Size to read from server response
|
2020-07-08 11:38:57 +00:00
|
|
|
matchers-condition: and
|
2020-04-21 19:26:15 +00:00
|
|
|
matchers:
|
|
|
|
- type: binary
|
|
|
|
binary:
|
2020-09-12 18:56:58 +00:00
|
|
|
- "377ABCAF271C" # 7z
|
|
|
|
- "314159265359" # bz2
|
|
|
|
- "53514c69746520666f726d6174203300" # SQLite format 3.
|
|
|
|
- "1f8b" # gz tar.gz
|
|
|
|
- "526172211A0700" # rar RAR archive version 1.50
|
|
|
|
- "526172211A070100" # rar RAR archive version 5.0
|
|
|
|
- "FD377A585A0000" # xz tar.xz
|
|
|
|
- "1F9D" # z tar.z
|
|
|
|
- "1FA0" # z tar.z
|
|
|
|
- "4C5A4950" # lz
|
|
|
|
- "504B0304" # zip
|
2020-04-21 19:26:15 +00:00
|
|
|
condition: or
|
2020-04-21 22:55:04 +00:00
|
|
|
part: body
|
2021-06-01 07:35:11 +00:00
|
|
|
|
2020-09-09 14:26:30 +00:00
|
|
|
- type: regex
|
|
|
|
regex:
|
|
|
|
- "application/[-\\w.]+"
|
|
|
|
part: header
|
2021-06-01 07:35:11 +00:00
|
|
|
|
2020-04-22 14:52:54 +00:00
|
|
|
- type: status
|
|
|
|
status:
|
2020-05-25 08:02:27 +00:00
|
|
|
- 200
|