36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
id: ds-store-file
|
|
|
|
info:
|
|
name: Exposed DS_Store File
|
|
description: A .DS_Store file was found. This file may contain names of files that exist on the server, including backups or other files that aren't meant to be publicly available.
|
|
author: 0w4ys,pwnhxl
|
|
severity: info
|
|
reference:
|
|
- https://github.com/lijiejie/ds_store_exp
|
|
metadata:
|
|
max-request: 1
|
|
tags: exposure,files,ds_store,config
|
|
|
|
http:
|
|
- method: GET
|
|
path:
|
|
- "{{BaseURL}}/.DS_Store"
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: dsl
|
|
dsl:
|
|
- "contains(body, '\0@\0')"
|
|
- "contains(hex_encode(body), '0000000142756431')"
|
|
condition: or
|
|
|
|
- type: dsl
|
|
dsl:
|
|
- 'status_code == 200'
|
|
|
|
- type: dsl
|
|
dsl:
|
|
- 'contains(to_lower(header), "accept-ranges: bytes")'
|
|
- 'contains(to_lower(header), "octet-stream")'
|
|
condition: or
|
|
# digest: 4a0a00473045022100f399a98ef680365fe9a555e55b34d178210e368e14c0665d6654e3b37b597e9802203c87bf96203dc568092dfefcda3fc6a2ce651dc4f49c71c170432a1b189c41a6:922c64590222798bb761d5b6d8e72950 |