question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

webapp: Tenant can create Azure products from other regions not belonging to their subscription via Azure Classic/Modern CLIs

See original GitHub issue

Summary: Tenant can create Azure products from other regions not belonging to their subscription via Azure Classic/Modern CLIs.

Description: I was testing classic Azure CLI (version 0.10.20) for actually automating my pentesting tools like creating TrafficManager profiles, Cloud services and Azure websites.

While I was looking syntax for making Azure websites, I noticed that it was actually returning more locations then what was available on portal edition.

I noticed that portal edition was giving me this regions as available regions with total amount of 29:


"North Europe"

"West Europe"

"Southeast Asia"

"East Asia"

"West US"

"East US"

"Japan West"

"Japan East"

"East US 2"

"North Central US"

"South Central US"

"Brazil South"

"Australia East"

"Australia Southeast"

"Central India"

"West India"

"South India"

"Canada Central"

"Canada East"

"West Central US"

"West US 2"

"UK West"

"UK South"

"Korea South"

"Korea Central"

"France Central"

"Australia Central"

"South Africa North"

Meanwhile CLI edition was giving this regions with following command “azure site location list” with total amount of 35:


"North Europe"

"West Europe"

"Southeast Asia"

"East Asia"

"West US"

"East US"

"Japan West"

"Japan East"

"East US 2"

"North Central US"

"South Central US"

"Brazil South"

"Australia East"

"Australia Southeast"

"Central India"

"West India"

"South India"

"Canada Central"

"Canada East"

"West Central US"

"West US 2"

"UK West"

"UK South"

"Korea South"

"Korea Central"

"France South"

"France Central"

"Australia Central 2"

"Australia Central"

"South Africa North"

"South Africa West"

"Switzerland North"

"Germany West Central"

"UAE Central"

For testing purposes I created Azure website on “Germany West Central” region which wasn’t available on my subscription with following name: “tLzZxX” which could be accessed on http://tLzZxX.azurewebsites.net

During creation it actually gave me an error and indicated that even it was facing an error website potentially created,

When I visited my app service plans unfortunately there wasn’t such profile listed under.

Furthermore I tested new modern CLI (version 2.0.76) and it was giving same amount of locations with following command “az appservice list-locations --sku F1”.

Supporting materials:

Subscription ID of Azure tenant: “ffc6d1bc-66b2-4800-8a25-519ea15949f6”

Azure Classic CLI version: 0.10.20

Azure Modern CLI version: 2.0.76

Azure website created on non available region: tLzZxX @ http://tLzZxX.azurewebsites.net

Impact: As mentioned above while this is more like functional issue more than security impact, this could still lead user to create apps at regions not available on their subscription and causing them to unable to delete them as well as potential issues on backend.

Extra Info: This was reported to MSRC but since this is functional issue they closed case (VULN-012626 CRM:0469000267) and requested me to report it via here like 2 months ago but didn’t have a time so this is exact copy of my report and issue is still persisting.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mcipekcicommented, May 28, 2020

@panchagnula I see, that makes more sense now after changing to Windows, I was able to see it. Thank you for all your replies, please stay safe and be well.

0reactions
panchagnulacommented, May 28, 2020

@mcipekci ‘West Germany Central’ has been open to the public since end of January 2020, the region is available for creating Windows Apps & not Linux. Portal defaults you to linux if you change it to windows + code you will find this region on the list. Also, our API blocks from creating resources on unsupported regions, we verified this on our end. With the fix we made the list of regions b/w portal & CLI is consistent. thanks again for bringing this to our attention.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Products available by region - Microsoft Azure
View Azure products and features available by region. Azure makes it easy to choose the datacenter and regions right for you and your...
Read more >
Move resources to a new subscription or resource group
This article shows you how to move Azure resources to either another Azure subscription or another resource group under the same subscription.
Read more >
Private Link - Microsoft Azure
Azure Private Link provides private connectivity from a virtual network to Azure platform as a service (PaaS), customer-owned, or Microsoft partner services. It ......
Read more >
Data Residency in Azure | Microsoft Azure
Azure has more global regions than any other cloud provider—offering the scale and data residency options you need to bring your apps closer...
Read more >
Azure Resource Manager overview - Microsoft Learn
Describes how to use Azure Resource Manager for deployment, management, and access control of resources on Azure.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found