Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sql server backup exposure #9757

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions http/exposures/backups/sql-server-dump.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
id: default-sql-server-dump

info:
name: SQL Server - Dump Files
author: userdehghani
severity: medium
description: A SQL Server 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
metadata:
max-request: 21
tags: exposure,backup,sql-server

http:
- method: GET
path:
- "{{BaseURL}}{{paths}}"
payloads:
paths:
- "/1.bak"
- "/sa.bak"
- "/wwwroot.bak"
- "/backup.bak"
- "/database.bak"
- "/data.bak"
- "/db_backup.bak"
- "/dbdump.bak"
- "/db.bak"
- "/dump.bak"
- "/{{Hostname}}.bak"
- "/{{Hostname}}_db.bak"
- "/localhost.bak"
- "/mysqldump.bak"
- "/mysql.bak"
- "/site.bak"
- "/sql.bak"
- "/temp.bak"
- "/translate.bak"
- "/users.bak"
- "/www.bak"
- "/wp-content/uploads/dump.bak"
- "/wp-content/mysql.bak"

headers:
Range: "bytes=0-500"
max-size: 500 # Size in bytes - Max Size to read from server response

matchers-condition: and
matchers:
- type: binary
binary:
- "54415045" # Microsoft Tape Format
part: body

- type: status
status:
- 200
Loading