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

Create 000~ROOT~000-exposed.bcheck #226

Merged
merged 2 commits into from
Sep 3, 2024
Merged
Changes from 1 commit
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
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/`
Hannah-PortSwigger marked this conversation as resolved.
Show resolved Hide resolved

given request then
Hannah-PortSwigger marked this conversation as resolved.
Show resolved Hide resolved
send request:
replacing path: `{payloads_array}`
Hannah-PortSwigger marked this conversation as resolved.
Show resolved Hide resolved

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