Azure Active Directory Information Disclosure Vulnerability (CVE-2021-42306)
Azure AD stored private key data in clear text when it was uploaded as part of an authentication certificate keyCredential on an Application or Service Principal. Any user or service in the tenant with application read access could then read that private key data.
Originally disclosed on Microsoft
Description
An information disclosure vulnerability manifests when a user or an application uploads unprotected private key data as part of an authentication certificate keyCredential on an Azure AD Application or Service Principal (which is not recommended). This vulnerability allows a user or service in the tenant with application read access to read the private key data that was added to the application. Azure AD addressed this vulnerability by preventing disclosure of any private key values added to the application. Microsoft has identified services that could manifest this vulnerability, and steps that customers should take to be protected. Refer to the FAQ section for more information. For more details on this issue, please refer to the MSRC Blog Entry .
FAQ
Where can I find more information? Please see the MSRC Blog here. What Microsoft services are known to be affected by this vulnerability? Product/Service Microsoft's Mitigation Customer impact assessment and remediation Azure Automation uses the Application and Service Principal keyCredential APIs when Automation Run-As Accounts are created. Azure Automation deployed an update to the service to prevent private keys data in clear text from being uploaded to Azure AD applications. Run-As accounts created or renewed after 10/15/2021 are not impacted and do not require further action. Automation Run As accounts created with an Azure Automation self-signed certificate between 10/15/2020 and 10/15/2021 that have not been renewed are impacted. Separately customers who bring their own certificates could be affected. This is regardless of the renewal date of the certificate. To identify and remediate impacted Azure AD applications associated with impacted Automation Run-As accounts, please navigate to this Github Repo . In addition, Azure Automation supports Managed Identities Support (GA announced on October 2021). Migrating to Managed Identities from Run-As will mitigate this issue. Please follow the guidance here to migrate. Azure Migrate service creates Azure AD applications to enable Azure Migrate appliances to communicate with the service’s endpoints. Azure Migrate deployed an update to prevent private key data in clear text from being uploaded to Azure AD applications. Azure Migrate appliances that were registered after 11/02/2021 and had Appliance configuration manager version 6.1.220.1 and above are not impacted and do not require further action. Azure Migrate appliances registered prior to 11/02/2021 and/or appliances registered after 11/02/2021 where auto-update was disabled could affected by this issue. To identify and remediate any impacted Azure AD applications associated with Azure Migrate appliances, please navigate to this link . Azure Site Recovery (ASR) creates Azure AD applications to communicate with the ASR service endpoints Azure Site Recovery deployed an update to prevent private key data in clear text from being uploaded to Azure AD applications. Customers using Azure Site Recovery’s preview experience “ VMware to Azure Disaster Recovery ” after 11/01/2021 are not impacted and do not require further action. Customers who have deployed and registered the preview version of VMware to Azure DR experience with ASR before 11/01/2021 could be affected. To identify and remediate the impacted AAD Apps associated with such Azure Site Recovery appliances, please navigate to this link . Azure AD applications and Service Principals [1] Microsoft has blocked reading private key data as of 10/30/2021. Follow the guidance available at https://aka.ms/aad-app-credential-remediation-guide to assess if your application key credentials need to be rotated. The guidance walks through the assessment steps to identify if private key information was stored in keyCredentials and provides remediation options for credential rotation. [1] This issue only affects Azure AD Applications and Service Principals where private key material in clear text was added to a keyCredential. Microsoft recommends taking precautionary steps to identify any additional instances of this issue in applications where you manage credentials and take remediation steps if impact is found.
Azure
Azure
Microsoft
Microsoft
Customer Action Required
Yes
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the service stored the private key material of uploaded keyCredential certificates in clear text rather than discarding or protecting it, so it remained readable through the application read API.
Impact
A user or service with application read access in the tenant could read private key data, and Microsoft notes that customers who bring their own certificates could be affected regardless of the certificate renewal date.
What the attacker needed
Application read access in the tenant; private key uploaded as a keyCredential
The fix
Azure AD was fixed by blocking the reading of private key data and preventing private key values from being disclosed, and customers should assess whether their key credentials need to be rotated.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
An application in Azure AD can be given a certificate to prove its identity, and that certificate comes with a secret private key. The service saved that secret in a readable form, so anyone in the same organisation who could view the application's settings could also see the secret. With that secret they could impersonate the application.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.