Connect with us

Hi, what are you looking for?

SecurityWeekSecurityWeek

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”. 

Advertisement. Scroll to continue reading.

“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

Trending

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 the session as we discuss the challenges and best practices for cybersecurity leaders managing cloud identities.

Register

SecurityWeek’s Ransomware Resilience and Recovery Summit helps businesses to plan, prepare, and recover from a ransomware incident.

Register

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.

Vulnerabilities

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

Cybercrime

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

Data Protection

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

Cybercrime

A recently disclosed vBulletin vulnerability, which had a zero-day status for roughly two days last week, was exploited in a hacker attack targeting the...

Identity & Access

Zero trust is not a replacement for identity and access management (IAM), but is the extension of IAM principles from people to everyone and...

Data Breaches

OpenAI has confirmed a ChatGPT data breach on the same day a security firm reported seeing the use of a component affected by an...