6.3 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 over HTTPS.

Rationale:

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

Solution

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

<Connector
...
scheme='https'
...
/>

Default Value:

The scheme attribute is set to http.

See Also

https://workbench.cisecurity.org/files/4107

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6, 800-53|CM-7

Plugin: Unix

Control ID: 79c431280b704b6c9582cb532e6f2db9c38366fc2fac32e0099fc40b4d268f84