Guides · ← All guides
Dangerous HTTP Methods: What TRACE, PUT and DELETE Should Never Answer
Published: November 14, 2026 · Last reviewed: November 14, 2026 · 7 min read
Run a free BreachHunter assessment on your site →
HTTP methods are verbs, and servers are often more fluent than their owners realize. Frameworks, WebDAV modules and default configurations have a habit of enabling verbs nobody uses — harmless on a trusted network, and on the public internet a standing invitation to check whether they are merely enabled or actually honored.
This guide explains what the audit's methods check sends, why TRACE earned its own attack name, the honest middle cases (APIs that legitimately use PUT/DELETE — behind authentication, deliberately), and the server-level restriction that returns your public surface to read-and-post.
TRACE, PUT, DELETE: what each one risks
TRACE asks the server to echo the request it received. Its attack, cross-site tracing (XST), was designed to read headers — including HttpOnly cookies — through the echo, bypassing the flag's protection. Modern browsers block TRACE from scripts, which demoted XST from critical to historical, but the method still has no public purpose: a server answering TRACE in 2026 is announcing an unreviewed configuration, which is exactly what an assessment is for.
PUT and DELETE are the substantive risks where they are honored rather than merely listed: a WebDAV-enabled or misconfigured server that accepts an unauthenticated PUT is a file-upload vulnerability with no upload form. The audit distinguishes “OPTIONS says allowed” from “the method actually works” where it safely can — and the report treats a working write method on a public page as a serious finding, not a curiosity.
The API exception, handled deliberately
Plenty of legitimate APIs use PUT, PATCH and DELETE — behind authentication, scoped tokens, and routes designed for them. The assessment's concern is the public web surface: the marketing site, the login flow, the static host. The correct end state is per-surface method policy: the API answers its verbs to authenticated callers on its own host or path prefix; the public site answers GET, POST and the harmless OPTIONS/HEAD set — and 405s everything else.
Implementation is a server or framework allow-list, verified by re-probing: the same OPTIONS and per-method requests the audit sends, confirming the dangerous verbs now return 405 Method Not Allowed on public paths while the API's authenticated flows still pass their tests. Configuration drift brings these back — a WebDAV module enabled for one use case tends to apply vhost-wide — so the methods line belongs in the retest diff every scan, like the port list in the open ports guide.
Worked example: silverlineaccounting.example
Silverline Accounting's client portal ran on a stack whose WebDAV module had been enabled years earlier for a file-sync tool and never scoped down. The methods check on the public site returned:
OPTIONS / -> 200 Allow: GET, POST, PUT, DELETE, TRACE, OPTIONS, PROPFIND Direct tests: TRACE answered 200 (echo), PUT to /test-probe -> 201 on staging vhost
The 201 on the staging sibling turned a configuration tidy-up into a priority fix: WebDAV was removed from both vhosts (the sync tool had been retired in 2024), a method allow-list was set at the server, and the retest showed Allow: GET, POST, OPTIONS with TRACE and PUT returning 405. The portal API — which did use authenticated PUT on its own subdomain — was untouched and verified working, the both-directions test the checklist demands.
The five actions to take
Reducing your public method surface:
- Probe your own public hosts with OPTIONS and direct TRACE/PUT/DELETE tests — record what is listed and what actually works.
- Disable WebDAV and any unused method-handling modules at the server level.
- Set an explicit method allow-list per surface: GET/POST (+HEAD/OPTIONS) for public pages; full verbs only on authenticated API routes.
- Verify the API exception still functions with its real authentication after the restriction.
- Re-scan and watch the methods line in future diffs — module changes re-enable verbs silently.
Run a free BreachHunter assessment on your site →
Frequently asked questions
OPTIONS lists PUT, but PUT does not actually work. Is it still a finding?
A lesser one — the audit reports listed versus working methods with different weight where it can distinguish them safely. Fix the listing anyway: OPTIONS output is free recon, and a module change can turn “listed” into “working” without anyone noticing.
Why do browsers blocking TRACE not close the issue?
Browser restrictions killed the classic XST path, but TRACE remains a diagnostic echo with no public purpose, and non-browser clients are unrestricted. Assessments flag unnecessary capability: if nothing legitimate uses it, its only possible role is in someone else's chain.
We use DELETE in our REST API. Are we failing the audit?
Not if it is scoped correctly: authenticated, on API routes, with authorization per resource. The finding targets unauthenticated public surfaces. Documenting the API's method policy in the report response turns the line from a finding into a reviewed design.
What should a restricted method return?
405 Method Not Allowed is the honest answer and what the retest expects. Some stacks return 403 or 404; those also pass the substance test — the verb must not work — but 405 communicates intent to future maintainers.
How does the audit test methods safely?
With OPTIONS discovery and minimal, non-destructive probes — a TRACE echo request and method attempts that do not write real content to real paths. Destructive verification belongs to an authorized pentest, not an automated assessment.
What to ask your host or developer, verbatim
Method control lives in server configuration, so the fix request needs the config names, not a vague 'close the dangerous methods'. On Apache, TRACE is governed by TraceEnable off, and per-directory method limits use LimitExcept. On nginx, limit_except restricts methods per location. On IIS, request filtering carries a verbs section where each verb is explicitly allowed or denied.
Ask for the answer in writing: which methods does the server accept on the public site, and where is that set? If nobody can point at the line, the methods are whatever the defaults shipped — and defaults are written for compatibility, not for your threat model.
Sources
The references this guide stands on — standards, specifications and official documentation:
- RFC 9110 (2022) — HTTP Semantics — the method definitions, including TRACE.
- OWASP Web Security Testing Guide (2021) — testing HTTP methods as an assessor does.