Skip to content

Commit

Permalink
Merge pull request PortSwigger#29 from compr00t/main
Browse files Browse the repository at this point in the history
Missing security.txt
  • Loading branch information
PortSwiggerWiener authored Jul 6, 2023
2 parents 8f677a1 + ca6c82d commit df824a3
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions other/missing-security-txt.bcheck
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

0 comments on commit df824a3

Please sign in to comment.