Skip to content
Info disclosure Advisory Beginner CVE-2023-36052

Azure CLI REST Command Information Disclosure Vulnerability (CVE-2023-36052)

The Azure CLI REST command wrote plaintext usernames and passwords into log files, which were then published by Azure DevOps and GitHub Actions. An unauthenticated attacker could search open-source repositories to discover these credentials.

Aviad Hahami Follow

Originally disclosed on Microsoft

Critical 8.6 View original

FAQ

What type of information could be disclosed by this vulnerability? An attacker that successfully exploited this vulnerability could recover plaintext passwords and usernames from log files created by the affected CLI commands and published by Azure DevOps and/or GitHub Actions.

FAQ

According to the CVSS metric, a successful exploitation could lead to a scope change (S:C). What does this mean for this vulnerability? An exploited vulnerability can affect resources beyond the security scope managed by the security authority of the vulnerable component. In this case, the vulnerable component and the impacted component are different and managed by different security authorities.

FAQ

How could an attacker exploit this vulnerability? An unauthenticated attacker can search and discover credentials contained in log files which have been stored in open-source repositories.

FAQ

Where can I find more information? Please see the MSRC Blog Post relating to this vulnerability here: Microsoft guidance regarding credentials leaked to Github Actions logs through Azure CLI .

FAQ

What actions do customers need to take to protect themselves from this vulnerability? Customers using the affected CLI commands must update their Azure CLI version to 2.53.1 or above to be protected against the risks of this vulnerability. This also applies to customers with log files created by using these commands through Azure DevOps and/or GitHub Actions.

Azure

Azure

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Aviad Hahami with PANW. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

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 Azure CLI REST command logged the full request, including credentials, without redacting sensitive fields before the logs were published.

Impact

An unauthenticated attacker could recover plaintext credentials from published logs, potentially gaining access to systems those credentials protect.

What the attacker needed

Logs published to open-source repositories; no authentication needed to search

The fix

The vulnerability was fixed by updating Azure CLI to version 2.53.1 or above.

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.

When you run a command-line tool, it often keeps a log of what it did. Here, the Azure CLI tool accidentally wrote secret login details into those logs in readable form. If those logs were uploaded to public places like GitHub, anyone could find the secrets and use them to log in.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.