2020-08-21 11:09:30 +00:00
id : ds-store-file
2020-08-21 10:51:02 +00:00
info :
2024-07-12 17:25:13 +00:00
name : DS_Store File - Exposed
2023-03-04 08:05:35 +00:00
author : 0w4ys,pwnhxl
2020-08-21 11:09:30 +00:00
severity : info
2024-03-23 09:28:19 +00:00
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.
2023-03-04 08:05:35 +00:00
reference :
- https://github.com/lijiejie/ds_store_exp
2023-04-28 08:11:21 +00:00
metadata :
max-request : 1
2023-10-14 11:27:55 +00:00
tags : exposure,files,ds_store,config
2020-08-21 10:51:02 +00:00
2023-04-27 04:28:59 +00:00
http :
2020-08-21 10:51:02 +00:00
- 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 :
2024-07-12 17:25:13 +00:00
- "contains(hex_encode(body), '44534442')"
2023-03-04 08:05:35 +00:00
- "contains(hex_encode(body), '0000000142756431')"
condition : or
2020-08-21 11:09:30 +00:00
2024-07-15 15:26:27 +00:00
- type : dsl
negative : true
dsl :
- "contains(to_lower(body), '\0<\0h\0t\0m\0l')"
- "contains(to_lower(body), '\0<\0b\0o\0d\0y')"
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")'
2023-10-14 11:27:55 +00:00
condition : or
2024-07-21 08:33:01 +00:00
# digest: 4b0a004830460221009fab4eb9b1d318314b8572f28732d7eacb4454e67e6fee390bbc8a32a0a155a1022100cb5b2748c2e2b89321d1179608471af748d567c9f28dd902c0416eac803dc002:922c64590222798bb761d5b6d8e72950