We recently got a security vulnerability as below.
"OPTIONS method returned values including itself"
we wanted to block at AEM level using Apache Sling referrer filter by adding OPTIONS in 'filter.methods', and post updating the configurations, i was still able to get response for the below CURL request.
curl -i -X POST https://test.*****.com/
HTTP/1.1 200 OK
Date: Tue, 26 May 2020 18:28:02 GMT
Server: Apache
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Allow: OPTIONS, TRACE, GET, HEAD
Content-Length: 0
Content-Security-Policy: frame-ancestors 'self';
Content-Type: text/html
request to please help me with any other config through which the OPTIONS method is blocked for all the URL's hosted on this AEM instance.
Solved! Go to Solution.
Views
Replies
Total Likes
You can block it an the dispatcher level using the below config
/1040 { /type “deny" /method "OPTIONS" /url "*" }
Updating the Apache Referrer Filter to include OPTIONS method would only check if there is a referrer header in the request when you request using OPTIONS method.
You can block it an the dispatcher level using the below config
/1040 { /type “deny" /method "OPTIONS" /url "*" }
Updating the Apache Referrer Filter to include OPTIONS method would only check if there is a referrer header in the request when you request using OPTIONS method.
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Review the following document. There are some OSGI settings that should be changed on your publish and author productive instances to avoid internal information leaking to the public.
Views
Replies
Total Likes
Hi Hamid,
thanks for the reply, i was not able find the exact configurations which would resolve my issue. could you please help me with something specific to my issue.
Views
Replies
Total Likes
It seems in your case the info is released by Apache HTTP server. You may to check ServerTokens configuration that could contribute to this:
https://httpd.apache.org/docs/2.4/es/mod/core.html#servertokens
Views
Likes
Replies