Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

sfp_strangeheaders: Update common HTTP header list

bcolesa086f9a7795d
diff --git a/modules/sfp_strangeheaders.py b/modules/sfp_strangeheaders.py
index a0e02768..375ef30c 100644
--- a/modules/sfp_strangeheaders.py
+++ b/modules/sfp_strangeheaders.py
@@ -16,14 +16,67 @@ import json
from spiderfoot import SpiderFootEvent, SpiderFootPlugin
# Standard headers, taken from http://en.wikipedia.org/wiki/List_of_HTTP_header_fields
-headers = ["access-control-allow-origin", "accept-ranges", "age", "allow", "cache-control",
- "connection", "content-encoding", "content-language", "content-length", "content-location",
- "content-md5", "content-disposition", "content-range", "content-type", "date", "etag",
- "expires", "last-modified", "link", "location", "p3p", "pragma", "proxy-authenticate",
- "refresh", "retry-after", "server", "set-cookie", "status", "strict-transport-security",
- "trailer", "transfer-encoding", "vary", "via", "warning", "www-authenticate",
- "x-frame-options", "x-xss-protection", "content-security-policy", "x-content-security-policy",
- "x-webkit-csp", "x-content-type-options", "x-powered-by", "x-ua-compatible"]
+headers = [
+ "accept-patch",
+ "accept-ranges",
+ "access-control-allow-credentials",
+ "access-control-allow-headers",
+ "access-control-allow-methods",
+ "access-control-allow-origin",
+ "access-control-expose-headers",
+ "access-control-max-age",
+ "age",
+ "allow",
+ "alt-svc",
+ "cache-control",
+ "connection",
+ "content-disposition",
+ "content-encoding",
+ "content-language",
+ "content-length",
+ "content-location",
+ "content-md5",
+ "content-range",
+ "content-security-policy",
+ "content-type",
+ "date",
+ "delta-base",
+ "etag",
+ "expires",
+ "im",
+ "last-modified",
+ "link",
+ "location",
+ "p3p",
+ "pragma",
+ "proxy-authenticate",
+ "public-key-pins",
+ "refresh",
+ "retry-after",
+ "server",
+ "set-cookie",
+ "status",
+ "strict-transport-security",
+ "timing-allow-origin",
+ "tk",
+ "trailer",
+ "transfer-encoding",
+ "upgrade",
+ "vary",
+ "via",
+ "warning",
+ "www-authenticate",
+ "x-content-duration",
+ "x-content-security-policy",
+ "x-content-type-options",
+ "x-correlation-id",
+ "x-frame-options",
+ "x-powered-by",
+ "x-request-id",
+ "x-ua-compatible",
+ "x-webkit-csp",
+ "x-xss-protection",
+]
class sfp_strangeheaders(SpiderFootPlugin):