2020-08-21 11:09:30 +00:00
|
|
|
id: ds-store-file
|
2020-08-21 10:51:02 +00:00
|
|
|
|
|
|
|
info:
|
2023-03-04 08:05:35 +00:00
|
|
|
name: Exposed DS_Store File
|
|
|
|
author: 0w4ys,pwnhxl
|
2020-08-21 11:09:30 +00:00
|
|
|
severity: info
|
2023-03-04 08:05:35 +00:00
|
|
|
reference:
|
|
|
|
- https://github.com/lijiejie/ds_store_exp
|
|
|
|
tags: exposure,files,ds_store,config
|
2020-08-21 10:51:02 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/.DS_Store"
|
2020-08-21 11:09:30 +00:00
|
|
|
|
2020-08-21 10:51:02 +00:00
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
2023-03-04 08:05:35 +00:00
|
|
|
- type: dsl
|
|
|
|
dsl:
|
|
|
|
- "contains(body, '\x00@\x00')"
|
|
|
|
- "contains(hex_encode(body), '0000000142756431')"
|
|
|
|
condition: or
|
2020-08-21 11:09:30 +00:00
|
|
|
|
2023-03-04 08:05:35 +00:00
|
|
|
- type: dsl
|
|
|
|
dsl:
|
|
|
|
- 'status_code == 200'
|
2020-08-21 11:09:30 +00:00
|
|
|
|
2023-03-04 08:05:35 +00:00
|
|
|
- type: dsl
|
|
|
|
dsl:
|
|
|
|
- 'contains(to_lower(header), "accept-ranges: bytes")'
|
|
|
|
- 'contains(to_lower(header), "octet-stream")'
|
|
|
|
condition: or
|