Translated ['src/pentesting-cloud/gcp-security/gcp-unauthenticated-enum-

This commit is contained in:
Translator
2025-06-10 12:37:02 +00:00
parent 0bae18e5dd
commit 66b54d498e

View File

@@ -18,9 +18,35 @@ A regex é: **`AIza[0-9A-Za-z_-]{35}`**
Pesquise, por exemplo, no Github seguindo: [https://github.com/search?q=%2FAIza%5B0-9A-Za-z\_-%5D%7B35%7D%2F\&type=code\&ref=advsearch](https://github.com/search?q=%2FAIza%5B0-9A-Za-z_-%5D%7B35%7D%2F&type=code&ref=advsearch)
### Verificar origem do projeto GCP - `apikeys.keys.lookup`
### Verificar o projeto de origem do GCP
Isso é extremamente útil para verificar **a qual projeto GCP uma chave de API que você encontrou pertence**:
Isso é extremamente útil para verificar **a qual projeto do GCP uma chave de API que você encontrou pertence**. Temos diferentes opções:
- Contate `https://www.googleapis.com/identitytoolkit/v3/relyingparty/getProjectConfig?key=<api-key`
Para fins de brevidade, a saída foi truncada, mas na saída completa o ID do projeto aparece mais de 5 vezes.
```bash
curl -s "https://www.googleapis.com/identitytoolkit/v3/relyingparty/getProjectConfig?key=AIzaSyD[...]uE8Y"
{
"error": {
"code": 403,
"message": "Identity Toolkit API has not been used in project 943955951114 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/identitytoolkit.googleapis.com/overview?project=943955951114 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
[...]
```
- Contate `https://www.googleapis.com/identitytoolkit/v3/relyingparty/getProjectConfig?key=<api-key>`
Para fins de brevidade, a saída foi truncada, mas na saída completa o ID do projeto aparece mais de 5 vezes.
```bash
curl -s "https://identitytoolkit.googleapis.com/v1/projects?key=AIzaSyD[...]uE8Y"
{
"error": {
"code": 403,
"message": "Identity Toolkit API has not been used in project 943955951114 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/identitytoolkit.googleapis.com/overview?project=943955951114 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
[...]
```
- [Este não funciona mais!] `apikeys.keys.lookup`
```bash
# If you have permissions
gcloud services api-keys lookup AIzaSyD[...]uE8Y