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

R3dg33k patch 1 wordpress readme file exposure #66

Merged
Merged
Changes from all commits
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
26 changes: 26 additions & 0 deletions other/files/configs/WordPress-ReadMe.bcheck
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
metadata:
language: v1-beta
name: "WordPress README file Exposure"
description: "Tests for WordPress README file exposed"
author: "r3dg33k"
tags: "exposure", "php", "wordpress"

run for each:
# you could add more values to this list to make the check repeat
potential_path =
"/readme.html",
"/wp/readme.html",
"/blog/wp/readme.html"

given host then
send request called check:
method: "GET"
path: {potential_path}

if "First Things First" in {check.response.body} and {check.response.status_code} is "200" then
report issue:
severity: info
confidence: certain
detail: `WordPress README file found at {potential_path}.`
remediation: "Ensure WordPress is hardened."
end if