OPTIONS Method Enabled
The web server responds to the OPTIONS HTTP method with an Allow header listing supported methods, including TRACE. An attacker could use this information to learn about the server configuration, but the report does not demonstrate any direct exploitation.
Originally disclosed on HackerOne
- Triaged in 46 hours
- Fixed in 2 days
- Disclosed after 5 days
Vulnerability Details:- I detected that OPTIONS method is allowed. This issue is reported as extra information.
Impact:- Information disclosed from this page can be used to gain additional information about the target system.
Remedy:- Disable OPTIONS method in all production systems.
POC :- Request :- OPTIONS /wp-content/themes/theme/js/ HTTP/1.1 Host: c2fo.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Connection: keep-alive
Responce :- HTTP/1.1 200 OK Connection: keep-alive Date: Wed, 02 Apr 2014 17:21:31 GMT Server: WP Engine/6.0.2 Keep-Alive: timeout=20 X-Type: default X-Frame-Options: SAMEORIGIN Allow: GET,HEAD,POST,OPTIONS,TRACE Content-Length: 0 Content-Type: httpd/unix-directory
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the web server or its configuration allows the OPTIONS method and advertises supported methods, including TRACE, without restricting them.
Impact
The disclosed list of allowed methods could help an attacker understand the server configuration, but no direct exploitation is shown.
What the attacker needed
None
The fix
The OPTIONS method should be disabled in production systems, as the report recommends.
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 report has not been written yet. The Original tab links to the source.
Web servers support different HTTP methods, like GET to fetch a page or POST to send data. The OPTIONS method asks the server which methods it allows. Here, the server replied with a list that included TRACE, which is often considered unnecessary. Knowing this list can help an attacker plan further attacks, but by itself it is not a vulnerability.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.