AWS AmazonCloudFront: Note that OPTIONS requests bypass signed URL verification
Summary
Added a note explaining that CloudFront does not require a signed URL or signed cookies for OPTIONS requests (to permit CORS preflight), that such requests are forwarded to the origin without signature verification when OPTIONS is allowed, and recommends ensuring the origin does not return protected content or limiting methods to GET/HEAD.
Security assessment
Documents that signature verification for private content via signed URLs is skipped for OPTIONS requests, a potential authorization bypass if the origin returns protected content without enforcing its own auth. The note provides explicit mitigation guidance, making it security-relevant documentation of a specific weakness.
Evidence
CloudFront doesn't require a signed URL or signed cookies for `OPTIONS` requests. This allows CORS preflight requests, which browsers send without credentials, to succeed for cache behaviors that require signed URLs or signed cookies. If the cache behavior's allowed methods include `OPTIONS`, CloudFront forwards `OPTIONS` requests to your origin without verifying a signature. Make sure that your origin doesn't return protected content in response to `OPTIONS` requests, or restrict the allowed methods to `GET` and `HEAD` if your application doesn't use CORS.
Diff
diff --git a/AmazonCloudFront/latest/DeveloperGuide/private-content-signed-urls.md b/AmazonCloudFront/latest/DeveloperGuide/private-content-signed-urls.md index c834856db..0407dbbfb 100644 --- a//AmazonCloudFront/latest/DeveloperGuide/private-content-signed-urls.md +++ b//AmazonCloudFront/latest/DeveloperGuide/private-content-signed-urls.md @@ -90,0 +91,4 @@ If an unsigned URL contains query string parameters, make sure you include them +###### Note + +CloudFront doesn't require a signed URL or signed cookies for `OPTIONS` requests. This allows CORS preflight requests, which browsers send without credentials, to succeed for cache behaviors that require signed URLs or signed cookies. If the cache behavior's allowed methods include `OPTIONS`, CloudFront forwards `OPTIONS` requests to your origin without verifying a signature. Make sure that your origin doesn't return protected content in response to `OPTIONS` requests, or restrict the allowed methods to `GET` and `HEAD` if your application doesn't use CORS. +