Password Reset Feature
Exploiting Password Reset Feature
Requirements: Contributor account/role access
Tools: Lava, Azure Portal , Azure command line
The password reset feature for Azure VMs was intended to simplify the process of resetting the password of a local Azure VM user, using the VM agent that is installed on every Azure VM. However, this feature could be abused to create new local users with administrative privileges on both Windows and Linux VMs in Azure!
VM Enumeration command
GetAzVM1) Azure Portal
2) Azure CLI
az vm user update -u USERNAME -p PASSWORD -n VM_NAME -g RESOURCE_GROUP (Create a local user for a VM.)3) Azure Powershell
Last updated