Security Issue with az desktopvirtualization using old API which is exposing the registrationtoken to users who dont have permission to view it #4580
Labels
Auto-Assign
Auto assign by bot
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Desktop Virtualization
Milestone
Extension name (the extension in question)
desktopvirtualization
Description of issue (in as much detail as possible)
az desktopvirtualization hostpool list is using a old API Version : api-version=2019-12-10-preview
So when a user who does not have permission to read the HostPool registration token can easily expose it from the az cli.
Risk
Users are able to steal the token and can register any machine they want to the HostPool
Detail of the issue
As you can see, I can view the token, even when I dont have access to see this on the Portal. I can use this token to register any machine.
I have altered the token here in the example for security reasons ofcourse
Mitigation
Remove use of old API "2019-12-10-preview" instead use latest API "api-version=2021-07-12" which does not have this issue.
The text was updated successfully, but these errors were encountered: