“403 Forbidden?
The server allowed the TRACE HTTP method on a directory that returned 403 for GET, and the OPTIONS response listed TRACE as enabled. An attacker could use TRACE to reflect request headers, potentially exposing cookies or tokens if chained with other vulnerabilities.
medium.com
Published on medium.com
This search dork led me to https://files.example.com/secret/, a seemingly innocent directory path that turned out to hold a lot more value than expected.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the web server or application framework was configured to allow the TRACE method in production, which is unnecessary and exposes request reflection.
Impact
TRACE alone is usually informational, but if chained with other vulnerabilities such as XSS or CORS misconfiguration, it could lead to token leakage, session hijacking, or internal header disclosure.
What the attacker needed
None
The fix
The server should be configured to disable TRACE globally, limit OPTIONS to whitelisted paths, and enforce uniform access control across all HTTP methods.
How it was found
- Use FOFA to find subdomains with ASP.NET headers.
- Run 4-ZERO-3 on the files subdomain to test HTTP methods on forbidden paths.
- Observe that GET to /secret/ returns 403 but OPTIONS returns 200 with a list of allowed methods.
- Confirm with curl that TRACE is among the allowed methods.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
HTTP methods are commands a browser or tool sends to a server, like GET to fetch a page or POST to submit data. TRACE is a debugging command that makes the server echo back exactly what it received, including any cookies or login tokens. If TRACE is left on in production, an attacker who can run JavaScript in a victim's browser might trick the browser into sending a TRACE request and then read the echoed sensitive data, though this is hard and usually needs another bug.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.