LOW
Source
Trivy/CSPM
CSPM ID
http-2.0-enabled
ID
AVD-AZU-0005

Web App uses the latest HTTP version

Use the latest version of HTTP to ensure you are benefiting from security fixes

Impact

Outdated versions of HTTP has security vulnerabilities

Follow the appropriate remediation steps below to resolve the issue.

  1. Log in to the Microsoft Azure Management Console.

  2. Find the search bar at the top and search for App Services. Step

  3. Select the “App Service” by clicking on “Name” to go to its configuration.Step

  4. Scroll down the selected “App Services” left navigation panel and under “Settings” click on the “Configuration” option.Step

  5. On the “Configuration” page select the “General settings” tab, scroll down and under the “HTTP version” check the value. It’s recommended to use version 2.0 to improve performance.Step

  6. If the “HTTP version” is not set to the latest version 2.0, then select version 2.0 from the dropdown.Step

  7. Click on the “Save” button at the top to make the changes.Step

  8. Click “Continue” in the confirmation pop up to save the changes.Step

  9. Repeat steps number 3 - 8 to verify all other “Apps” are using latest HTTP protocol version in the account.

Use the latest version of HTTP

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
 resource "azurerm_app_service" "good_example" {
   name                = "example-app-service"
   location            = azurerm_resource_group.example.location
   resource_group_name = azurerm_resource_group.example.name
   app_service_plan_id = azurerm_app_service_plan.example.id
 
   site_config {
 	  http2_enabled = true
   }
 }