Web Front End
-
Issue Description: The web front end response includes
Server: AmazonS3.Severity: Low
Explanation:
The Amorphic web application is served from Amazon S3 through an Amorphic-managed CloudFront distribution. S3 adds
Server: AmazonS3to every object response. The bucket has no setting to turn that header off. The value names S3 as the origin. It does not include a software version, a patch level, or a list of installed components, so it does not show whether a known product vulnerability applies.Amorphic reviewed the controls CloudFront provides for this header. None of them can omit it.
Response headers policy. This is the control AWS documents. A response headers policy can remove the
Serverheader that CloudFront received from the origin. AWS states that CloudFront then adds its ownServerheader, with the valueCloudFront, on the response it sends to the browser. This is described under Remove headers in Understand response headers policies. The browser still receives aServerheader. Only the value changes, fromAmazonS3toCloudFront.CloudFront Function and Lambda@Edge. A function on the viewer-response event can delete or rewrite response headers.
Serveris not in the list of headers those functions are forbidden to change, so a function is allowed to delete it from the response object it returns. That list is in Restrictions on all edge functions. AWS does not document what the browser receives after a function deletesServer. The only documented result of removing the origin value is the response headers policy behavior above: CloudFront sendsServer: CloudFront. A function can set a different value, and CloudFront keeps that value, but the response still includes aServerheader. There is no documented way to send the page with the header omitted.Each control therefore ends in the same place. The browser receives
Server: AmazonS3orServer: CloudFront.CloudFrontnames the CDN the browser has already reached.AmazonS3names the origin behind that CDN. Both values identify AWS, and neither value includes a version. ReplacingAmazonS3withCloudFrontdoes not reduce what the response discloses. Amorphic leaves the header as S3 returns it.Customers cannot configure response headers on this distribution. Amorphic manages the distribution and sets its security headers: Strict-Transport-Security, Content-Security-Policy, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, and Permissions-Policy. Those headers are separate from this item and remain in place.
Impact:
- A client can see that the origin is S3. The client cannot see a product version from this header.
- The security headers listed above are unaffected.
Note: Cloudwick assessed this as a low residual risk and does not plan to change it. The header cannot be omitted, and the only value CloudFront substitutes still names AWS and still contains no version.