2.7 Ensure 'passwordFormat' is not set to clear - Applications


The <credentials> element of the <authentication> element allows optional definitions of name and password for IIS Manager User accounts within the configuration file. Forms based authentication also uses these elements to define the users. IIS Manager Users can use the administration interface to connect to sites and applications in which they've been granted authorization. Note that the <credentials> element only applies when the default provider, ConfigurationAuthenticationProvider, is configured as the authentication provider. It is recommended that passwordFormat be set to a value other than Clear, such as SHA1.
Authentication credentials should always be protected to reduce the risk of stolen authentication credentials.


Authentication mode is configurable at the machine.config, root-level web.config, or application-level web.config:
1. Locate and open the configuration file where the credentials are stored
2. Find the <credentials> element
3. If present, ensure passwordFormat is not set to Clear
4. Change passwordFormatto SHA1
The clear text passwords will need to be replaced with the appropriate hashed version.
Enter the following command in PowerShell to configure:
Set-WebConfigurationProperty -pspath 'MACHINE/WEBROOT/APPHOST/<website name>' -filter 'system.web/authentication/forms/credentials' -name 'passwordFormat' -value 'SHA1'
Default Value:
The default passwordFormat method is SHA1.

See Also


Item Details


References: 800-53|IA-5(1)(c), CSCv7|16.14

Plugin: Windows

Control ID: 54e9823a0bbd8184a943bbfce109551ee71f88f92bab42c2ada176fd9fb695f8