http_methods_audit
Audit which HTTP request methods a server allows, grading the risk of dangerous methods such as TRACE, PUT, and DELETE. Uses read-only probes to identify exposure without sending mutating requests.
Instructions
Audit which HTTP request methods a server allows and grade the risk.
Enabled write/diagnostic methods widen the attack surface: TRACE enables Cross-Site Tracing (XST), and PUT / DELETE can allow file upload or deletion under weak access control. This is read-only and never sends a mutating request: it actively probes only OPTIONS, HEAD, and TRACE (TRACE merely echoes the request); PUT, DELETE, PATCH, and CONNECT are read from the OPTIONS Allow header and reported as advertised, never invoked.
Args: host: Hostname to audit, e.g. "example.com". port: TCP port. Defaults to 443 when use_ssl is True, else 80. use_ssl: Connect over HTTPS (default True). path: Request path to test (default "/"). timeout: Network timeout in seconds.
Returns: A dict with host, url, grade, score, allow_header, advertised_methods, trace_enabled, dangerous_methods, and a findings list. An error field on fetch failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| path | No | / | |
| port | No | ||
| timeout | No | ||
| use_ssl | No |