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

Added apache-mod_info.bcheck #135

Merged
merged 1 commit into from
Oct 19, 2023
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
23 changes: 23 additions & 0 deletions other/apache-mod_info.bcheck
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
metadata:
language: v1-beta
name: "Apache mod_info"
description: "Check for Apache's mod_info pages"
author: "pyllyukko"

run for each:
potential_path =
"/server-status",
"/server-info"

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

if {check.response.status_code} is "200" and "Apache Server" in {check.response.body} then
report issue:
severity: info
confidence: certain
detail: `Apache's mod_info page found at {potential_path}.`
remediation: "Disable Apache's mod_info module."
end if