2020-04-22 14:55:53 +00:00
|
|
|
id: zip-backup-files
|
2020-04-21 19:26:15 +00:00
|
|
|
|
|
|
|
info:
|
2023-02-08 17:00:50 +00:00
|
|
|
name: Compressed Backup File - Detect
|
2023-12-31 16:09:36 +00:00
|
|
|
author: toufik-airane,dwisiswant0,ffffffff0x,pwnhxl,mastercho
|
2020-04-21 19:26:15 +00:00
|
|
|
severity: medium
|
2023-02-08 17:00:50 +00:00
|
|
|
description: Multiple compressed backup files were detected.
|
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.1/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-03-04 08:20:22 +00:00
|
|
|
max-request: 1305
|
2023-09-06 08:31:04 +00:00
|
|
|
tags: exposure,backup
|
2020-04-21 19:26:15 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2020-04-21 19:26:15 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
2023-03-02 06:40:18 +00:00
|
|
|
- "{{BaseURL}}/{{FILENAME}}.{{EXT}}"
|
2022-02-24 14:33:38 +00:00
|
|
|
|
2023-03-02 06:40:18 +00:00
|
|
|
attack: clusterbomb
|
2022-02-24 14:33:38 +00:00
|
|
|
payloads:
|
2023-03-02 06:40:18 +00:00
|
|
|
FILENAME:
|
2023-10-14 11:27:55 +00:00
|
|
|
- "{{FQDN}}" # www.example.com
|
2024-07-23 13:48:26 +00:00
|
|
|
- "{{RDN}}" #
|
2023-10-14 11:27:55 +00:00
|
|
|
- "{{DN}}" # example
|
|
|
|
- "{{SD}}" # www
|
|
|
|
- "{{date_time('%Y')}}" # 2023
|
|
|
|
- "ROOT" # tomcat
|
2023-03-02 06:40:18 +00:00
|
|
|
- "wwwroot"
|
|
|
|
- "htdocs"
|
|
|
|
- "www"
|
|
|
|
- "html"
|
|
|
|
- "web"
|
|
|
|
- "webapps"
|
|
|
|
- "public"
|
|
|
|
- "public_html"
|
|
|
|
- "uploads"
|
|
|
|
- "website"
|
|
|
|
- "api"
|
|
|
|
- "test"
|
|
|
|
- "app"
|
|
|
|
- "backup"
|
2023-12-31 16:09:36 +00:00
|
|
|
- "backup_1"
|
|
|
|
- "backup_2"
|
|
|
|
- "backup_3"
|
|
|
|
- "backup_4"
|
|
|
|
- "backups"
|
2023-03-02 06:40:18 +00:00
|
|
|
- "bin"
|
2023-12-31 16:09:36 +00:00
|
|
|
- "temp"
|
2023-03-02 06:40:18 +00:00
|
|
|
- "bak"
|
2023-12-31 16:09:36 +00:00
|
|
|
- "db"
|
|
|
|
- "sql"
|
|
|
|
- "dump"
|
|
|
|
- "database"
|
2023-03-02 06:40:18 +00:00
|
|
|
- "Release"
|
2023-09-05 08:59:31 +00:00
|
|
|
- "inetpub"
|
2024-01-04 06:42:10 +00:00
|
|
|
- "package"
|
|
|
|
- "tmp"
|
|
|
|
- "db"
|
|
|
|
- "data"
|
|
|
|
- "ftp"
|
|
|
|
- "output"
|
|
|
|
- "admin"
|
|
|
|
- "upload"
|
|
|
|
- "src"
|
|
|
|
- "conf/conf"
|
|
|
|
- "old"
|
|
|
|
|
2022-02-24 14:33:38 +00:00
|
|
|
EXT:
|
2023-12-23 15:27:26 +00:00
|
|
|
- "tar"
|
2022-02-24 14:33:38 +00:00
|
|
|
- "7z"
|
|
|
|
- "bz2"
|
|
|
|
- "gz"
|
|
|
|
- "lz"
|
|
|
|
- "rar"
|
|
|
|
- "tar.gz"
|
2022-12-13 04:35:36 +00:00
|
|
|
- "tar.bz2"
|
2022-02-24 14:33:38 +00:00
|
|
|
- "xz"
|
|
|
|
- "zip"
|
|
|
|
- "z"
|
2023-12-31 16:09:36 +00:00
|
|
|
- "Z"
|
2022-02-24 14:33:38 +00:00
|
|
|
- "tar.z"
|
2023-12-31 16:09:36 +00:00
|
|
|
- "tgz"
|
2022-02-24 14:33:38 +00:00
|
|
|
- "db"
|
2023-12-31 16:09:36 +00:00
|
|
|
- "jar"
|
2022-02-24 14:33:38 +00:00
|
|
|
- "sqlite"
|
|
|
|
- "sqlitedb"
|
|
|
|
- "sql.7z"
|
|
|
|
- "sql.bz2"
|
|
|
|
- "sql.gz"
|
|
|
|
- "sql.lz"
|
|
|
|
- "sql.rar"
|
|
|
|
- "sql.tar.gz"
|
|
|
|
- "sql.xz"
|
|
|
|
- "sql.zip"
|
|
|
|
- "sql.z"
|
|
|
|
- "sql.tar.z"
|
2023-03-02 06:40:18 +00:00
|
|
|
- "war"
|
2023-10-14 11:27:55 +00:00
|
|
|
max-size: 500 # Size in bytes - Max Size to read from server response
|
2021-06-01 07:35:11 +00:00
|
|
|
|
2020-07-08 11:38:57 +00:00
|
|
|
matchers-condition: and
|
2020-04-21 19:26:15 +00:00
|
|
|
matchers:
|
|
|
|
- type: binary
|
|
|
|
binary:
|
2024-01-02 16:18:57 +00:00
|
|
|
- "7573746172202000" # tar
|
|
|
|
- "7573746172003030" # tar
|
2023-10-14 11:27:55 +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:
|
2022-02-28 14:09:26 +00:00
|
|
|
- 200
|
2024-07-23 13:48:26 +00:00
|
|
|
# digest: 4b0a00483046022100a51f2952c9c24769da7d9ad5fa3f8ad2c01a800385052b494e5cf8b8cd2b0b2002210086e92de1a4bcde1fb7758917220ed3470e42201e239106f349d60c0e28d6452b:922c64590222798bb761d5b6d8e72950
|