GCP - IAM, Principals & Org Unauthenticated Enum
Last updated
Last updated
Learn & practice AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE) Learn & practice GCP Hacking: HackTricks Training GCP Red Team Expert (GRTE)
Vir meer inligting, kyk:
GCP - IAM, Principals & Org Policies EnumKontroleer DNS rekords
As dit 'n google-site-verification
rekord het, is dit waarskynlik dat dit (of dit was) Workspace gebruik:
If something like include:_spf.google.com
also appears it confirms it (note that if it doesn't appear it doesn't denies it as a domain can be in Workspace without using gmail as mail provider).
Probeer om 'n Workspace met daardie domein op te stel
Another option is to try to setup a Workspace using the domain, if it kla dat die domein reeds gebruik word (like in the image), you know it's already used!
To try to setup a Workspace domain follow: https://workspace.google.com/business/signup/welcome
Probeer om die wagwoord van 'n e-pos te herstel met daardie domein
If you know any valid email address being use din that domain (like: admin@email.com or info@email.com) you can try to herstel die rekening in https://accounts.google.com/signin/v2/recoveryidentifier, and if try doesn't shows an error indicating that Google has no idea about that account, then it's using Workspace.
It's possible to enumereer geldige e-posse van 'n Workspace-domein en SA-e-posse by trying to assign them permissions and checking the error messages. For this you just need to have permissions to assign permission to a project (which can be just owned by you).
Note that to check them but even if they exist not grant them a permission you can use the type serviceAccount
when it's an user
and user
when it's a SA
:
'n Sneller manier om diensrekeninge in bekende projekte te enumereer, is net om te probeer om toegang te verkry tot die URL: https://iam.googleapis.com/v1/projects/<project-id>/serviceAccounts/<sa-email>
Byvoorbeeld: https://iam.googleapis.com/v1/projects/gcp-labs-3uis1xlx/serviceAccounts/appengine-lab-1-tarsget@gcp-labs-3uis1xlx.iam.gserviceaccount.com
As die antwoord 'n 403 is, beteken dit dat die SA bestaan. Maar as die antwoord 'n 404 is, beteken dit dat dit nie bestaan nie:
Let op hoe wanneer die gebruiker se e-pos geldig was, die foutboodskap aangedui het dat hulle tipe nie is nie, so ons het daarin geslaag om te ontdek dat die e-pos support@hacktricks.xyz bestaan sonder om enige voorregte toe te ken.
Jy kan die selfde doen met Diensrekeninge deur die tipe user:
te gebruik in plaas van serviceAccount:
:
Leer & oefen AWS Hacking:HackTricks Opleiding AWS Red Team Expert (ARTE) Leer & oefen GCP Hacking: HackTricks Opleiding GCP Red Team Expert (GRTE)