28 - Ensure scheme is set accurately

Information

The scheme attribute is used to indicate to callers of request.getScheme() which scheme is in use by the Connector. Ensure the scheme attribute is set to http for Connectors operating over HTTP. Ensure the scheme attribute is set to https for Connectors operating of HTTPS.

Maintaining parity between the scheme in use by the Connector and advertised by request.getScheme() will ensure applications built on Jetty have an accurate depiction of the context and security guarantees provided to them.

Solution

In server.xml, set the Connectors scheme attribute to http for Connectors operating over HTTP. Set the Connectors scheme attribute to https for Connectors operating of HTTPS.

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-13

Plugin: Unix

Control ID: 86f0cdc8ab0054ca9c2fd580699902c67b48bbc0307cc55f29259d611bcab745