NotLegit Azure App Service Flaw Exposed Git Repositories for Some Applications

Summary
Wiz found that certain PHP, Python, Ruby, and Node apps on Azure App Service could expose their source through publicly accessible .git directories. Microsoft mitigated the flaw, but some customers may still need to act.
Key points
- The flaw affected PHP, Python, Ruby, and Node applications deployed through Local Git, and some applications using other Git sources after files were created or modified in the container.
- The Git repository could be placed in the publicly accessible web directory; non-IIS servers did not enforce the web.config protection.
- An attacker could request the application's .git directory to retrieve source code, which might contain secrets and other sensitive information.
- Wiz observed requests for .git files on its test application within four days, indicating scanning activity; the article says the flaw had probably been exploited in the wild.
- Microsoft fixed the issue for most affected customers and notified potentially still-exposed users, who may need to take additional steps.
Article Details
- Vulnerability Types
- Public exposure of Git repositories and application source code due to insecure default deployment behavior
- Exploitation Status
- active
- Exploit Availability
- unknown
- Patch Status
- partial
