Virtual Event Today: Supply Chain Security Summit - Join Event In-Progress

Security Experts:

Connect with us

Hi, what are you looking for?


Application Security

Microsoft Confirms ‘NotLegit’ Azure Flaw Exposed Source Code Repositories

Microsoft has quietly started notifying some Azure customers that a serious security vulnerability in the Azure App Service has caused the exposure of hundreds of source code repositories.

Microsoft has quietly started notifying some Azure customers that a serious security vulnerability in the Azure App Service has caused the exposure of hundreds of source code repositories.

Microsoft’s confirmation comes more than two months after it was reported by Israeli cloud security startup Wiz and weeks after Redmond quietly patched the flaw and released notifications to “a limited subset of customers” believed to be at risk.

In an advisory, the Microsoft Security Response Center described the flaw as an issue where customers can unintentionally configure the .git folder to be created in the content root, which would put them at risk for information disclosure. 

“This, when combined with an application configured to serve static content, makes it possible for others to download files not intended to be public. We have notified the limited subset of customers that we believe are at risk due to this and we will continue to work with our customers on securing their applications,” Microsoft said.

[ READ: Critical Vulnerability Exposed Azure Cosmos DBs for Months ]

The company warned that App Service Linux customers who deployed applications using Local Git after files were created or modified in the content root directory are impacted. 

“The combination of the .git folder in the content folder along with the application which serves out static content makes the app susceptible to source code exposure,” Redmond added.

A separate technical note from the Wiz research team describes the flaw as an insecure default behavior in the Azure App Service that exposed the source code of customer applications written in PHP, Python, Ruby, or Node, that were deployed using “Local Git”. 

“The vulnerability, which we dubbed as “NotLegit”, has existed since September 2017 and has probably been exploited in the wild,” the company warned.   

[ READ: Severe OMIGOD Vulnerabilities Expose Thousands of Azure Users ]

The Wiz researchers described exploitation as “extremely easy” and noted that there are signs that unknown malicious actors are already launching exploits.

“To assess the chance of exposure with the issue we found, we deployed a vulnerable Azure App Service application, linked it to an unused domain, and waited patiently to see if anyone tried to reach the .git files. Within 4 days of deploying, we were not surprised to see multiple requests for the .git folder from unknown actors,” the company said. 

“As this exploitation method is extremely easy, common, and is actively being exploited, we encourage all affected users to overview their application’s source code and evaluate the potential risk,” Wiz added.

Researchers at the Israel-based Wiz have been actively finding and documenting gaping security holes — ChaosDB and OMIGOD are two examples —  in Microsoft’s flagship Azure cloud computing infrastructure. 

Related: Critical Vulnerability Exposed Azure Cosmos DBs for Months

Related: Severe OMIGOD Vulnerabilities Expose Thousands of Azure Users to Attacks

Related: CISA, Microsoft Issue Guidance on Recent Azure Cosmos DB

Related: Cloud Security Company Wiz Raises $250 Million at $6 Billion

Written By

Ryan Naraine is Editor-at-Large at SecurityWeek and host of the popular Security Conversations podcast series. He is a security community engagement expert who has built programs at major global brands, including Intel Corp., Bishop Fox and GReAT. Ryan is a founding-director of the Security Tinkerers non-profit, an advisor to early-stage entrepreneurs, and a regular speaker at security conferences around the world.

Click to comment

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts.

Join this webinar to learn best practices that organizations can use to improve both their resilience to new threats and their response times to incidents.


Join this live webinar as we explore the potential security threats that can arise when third parties are granted access to a sensitive data or systems.


Expert Insights

Related Content

Application Security

Cycode, a startup that provides solutions for protecting software source code, emerged from stealth mode on Tuesday with $4.6 million in seed funding.


Less than a week after announcing that it would suspended service indefinitely due to a conflict with an (at the time) unnamed security researcher...

Data Protection

The CRYSTALS-Kyber public-key encryption and key encapsulation mechanism recommended by NIST for post-quantum cryptography has been broken using AI combined with side channel attacks.

Data Protection

The cryptopocalypse is the point at which quantum computing becomes powerful enough to use Shor’s algorithm to crack PKI encryption.


The changing nature of what we still generally call ransomware will continue through 2023, driven by three primary conditions.

Data Breaches

LastPass DevOp engineer's home computer hacked and implanted with keylogging malware as part of a sustained cyberattack that exfiltrated corporate data from the cloud...

Application Security

PayPal is alerting roughly 35,000 individuals that their accounts have been targeted in a credential stuffing campaign.


No one combatting cybercrime knows everything, but everyone in the battle has some intelligence to contribute to the larger knowledge base.