Skip to main content
Version: v3.4 print this page

Web Front End

  1. 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: AmazonS3 to 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 Server header that CloudFront received from the origin. AWS states that CloudFront then adds its own Server header, with the value CloudFront, on the response it sends to the browser. This is described under Remove headers in Understand response headers policies. The browser still receives a Server header. Only the value changes, from AmazonS3 to CloudFront.

    CloudFront Function and Lambda@Edge. A function on the viewer-response event can delete or rewrite response headers. Server is 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 deletes Server. The only documented result of removing the origin value is the response headers policy behavior above: CloudFront sends Server: CloudFront. A function can set a different value, and CloudFront keeps that value, but the response still includes a Server header. 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: AmazonS3 or Server: CloudFront. CloudFront names the CDN the browser has already reached. AmazonS3 names the origin behind that CDN. Both values identify AWS, and neither value includes a version. Replacing AmazonS3 with CloudFront does 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.