forked from PortSwigger/BChecks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request PortSwigger#29 from compr00t/main
Missing security.txt
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
metadata: | ||
language: v1-beta | ||
name: "Missing security.txt" | ||
description: "Checks for a missing security.txt according to RFC 9116" | ||
author: "Patrick Schmid" | ||
|
||
define: | ||
potential_path = | ||
"/.well-known/security.txt" | ||
|
||
given host then | ||
send request called check: | ||
method: "GET" | ||
path: {potential_path} | ||
|
||
if not("Contact:" in {check.response.body}) then | ||
report issue: | ||
severity: info | ||
confidence: certain | ||
detail: `No security.txt could be found at {potential_path}.` | ||
remediation: "Consider describing your security vulnerability disclosure process in a security.txt file according to RFC 9116 (https://www.rfc-editor.org/rfc/rfc9116)." | ||
end if |