Security Experts:

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

“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

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.

Data Breaches

GoTo said an unidentified threat actor stole encrypted backups and an encryption key for a portion of that data during a 2022 breach.

Network Security

NSA publishes guidance to help system administrators identify and mitigate cyber risks associated with transitioning to IPv6.

Mobile & Wireless

Technical details published for an Arm Mali GPU flaw leading to arbitrary kernel code execution and root on Pixel 6.

Mobile & Wireless

Apple rolled out iOS 16.3 and macOS Ventura 13.2 to cover serious security vulnerabilities.

Cloud Security

VMware vRealize Log Insight vulnerability allows an unauthenticated attacker to take full control of a target system.

Mobile & Wireless

Apple’s iOS 12.5.7 update patches CVE-2022-42856, an actively exploited vulnerability, in old iPhones and iPads.

Malware & Threats

Microsoft plans to improve the protection of Office users by blocking XLL add-ins from the internet.