Skip to content

Commit

Permalink
Create 000~ROOT~000-exposed.bcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
r3nt0n authored Aug 30, 2024
1 parent f19174b commit bd4c6eb
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions other/files/000~ROOT~000-exposed.bcheck
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
metadata:
language: v1-beta
name: "Filesystem exposure via /home/000~ROOT~000/"
description: "Tests for exposed 000~ROOT~000 in current path and at the root directory of site"
author: "r3nt0n"
tags: "exposure", "path traversal"

run for each:
payloads_array =
"/home/000~ROOT~000/",
`{base.request.url.path}/home/000~ROOT~000/`

given request then
send request:
replacing path: `{payloads_array}`

if "Index of" in {latest.response} then
report issue:
severity: high
confidence: firm
detail: "Potential exposure of entire filesystem via \"/home/000~ROOT~000\" path"
end if

0 comments on commit bd4c6eb

Please sign in to comment.