Skip to content

Commit

Permalink
twa: add check for .envrc (#92)
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodruff <william@trailofbits.com>
  • Loading branch information
woodruffw authored Jun 25, 2024
1 parent a77914a commit 92ba0d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion twa
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,7 @@ function stage_3_server_information_disclosure {
# * GET /.hg/store/00manifest.i should 404.
# * GET /.svn/entries should 404.
# * GET /.env should 404.
# * GET /.envrc should 404.
# * GET /.dockerenv should 404.
function stage_4_repo_and_env_disclosure {
verbose "Stage 4: SCM repo and env file disclosure"
Expand All @@ -692,7 +693,7 @@ function stage_4_repo_and_env_disclosure {
fi
done

for env_file in .env .dockerenv; do
for env_file in .env .envrc .dockerenv; do
url="http://${domain}/${env_file}"

read -r -a resp < <(fetch_respcode "${url}")
Expand Down

0 comments on commit 92ba0d0

Please sign in to comment.