For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex CloudApplication Security

Azure web app does not redirect all HTTP traffic to HTTPS in Azure App Service Slot misconfiguration

Rule Details

Cortex AppSec Rule ID

APPSEC_AZURE_153

Category - Subcategory

Public Exposure - APIs

Provider

AZURE

Severity

LOW

Framework

ARM, Bicep, Terraform, Terraform Plan

Impact

Redirecting all HTTP traffic to HTTPS for your Azure web app in the App Service slot can help improve the security of your app. HTTPS is a secure protocol that encrypts data in transit, and using it can help prevent attackers from intercepting and reading your data.

How to Fix

Resource: azurerm_app_service_slot

  • Arguments: https_only (true is default) [source,go]


resource "azurerm_app_service_slot" "pass" { name = random_id.server.hex app_service_name = azurerm_app_service.example.name location = azurerm_resource_group.example.location resource_group_name = azurerm_resource_group.example.name app_service_plan_id = azurerm_app_service_plan.example.id

https_only = true #thedefault min_tls_version="1.1" #the default is 1.2 remote_debugging_enabled=true #default is false

site_config { dotnet_framework_version = "v4.0" }

app_settings = { "SOME_KEY" = "some-value" }

connection_string { name = "Database" type = "SQLServer" value = "Server=some-server.mydomain.com;Integrated Security=SSPI" } }

Last updated

Was this helpful?