From b11d79711fcfe6dd3f8b0b701f8032d192158b7f Mon Sep 17 00:00:00 2001 From: Translator Date: Tue, 10 Jun 2025 12:36:34 +0000 Subject: [PATCH] Translated ['src/pentesting-cloud/gcp-security/gcp-unauthenticated-enum- --- .../gcp-api-keys-unauthenticated-enum.md | 32 +++++++++++++++++-- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/src/pentesting-cloud/gcp-security/gcp-unauthenticated-enum-and-access/gcp-api-keys-unauthenticated-enum.md b/src/pentesting-cloud/gcp-security/gcp-unauthenticated-enum-and-access/gcp-api-keys-unauthenticated-enum.md index 97a15c6cd..16def95b6 100644 --- a/src/pentesting-cloud/gcp-security/gcp-unauthenticated-enum-and-access/gcp-api-keys-unauthenticated-enum.md +++ b/src/pentesting-cloud/gcp-security/gcp-unauthenticated-enum-and-access/gcp-api-keys-unauthenticated-enum.md @@ -18,9 +18,35 @@ API 키에 대한 자세한 정보는 다음을 확인하세요: 예를 들어 Github에서 다음과 같이 검색하세요: [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) -### 원본 GCP 프로젝트 확인 - `apikeys.keys.lookup` +### 원본 GCP 프로젝트 확인 -이는 **당신이 찾은 API 키가 어떤 GCP 프로젝트에 속하는지 확인하는 데 매우 유용합니다**: +이는 **발견한 API 키가 어떤 GCP 프로젝트에 속하는지 확인하는 데 매우 유용합니다.** 다양한 옵션이 있습니다: + +- `https://www.googleapis.com/identitytoolkit/v3/relyingparty/getProjectConfig?key=`에 연락하세요. + +간결함을 위해 출력이 생략되었지만, 전체 출력에서는 프로젝트 ID가 5회 이상 나타납니다. +```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.", +[...] +``` +- Contact `https://www.googleapis.com/identitytoolkit/v3/relyingparty/getProjectConfig?key=` + +간결함을 위해 출력이 잘렸지만, 전체 출력에서 프로젝트 ID가 5회 이상 나타납니다. +```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.", +[...] +``` +- [이것은 더 이상 작동하지 않습니다!] `apikeys.keys.lookup` ```bash # If you have permissions gcloud services api-keys lookup AIzaSyD[...]uE8Y @@ -45,6 +71,6 @@ reason: AUTH_PERMISSION_DENIED ``` ### Brute Force API endspoints -프로젝트에서 어떤 API가 활성화되어 있는지 모를 수 있으므로, 도구 [https://github.com/ozguralp/gmapsapiscanner](https://github.com/ozguralp/gmapsapiscanner)를 실행하고 **API 키로 접근할 수 있는 내용을 확인하는 것이 흥미로울 것입니다.** +프로젝트에서 어떤 API가 활성화되어 있는지 모를 수 있으므로, 도구 [https://github.com/ozguralp/gmapsapiscanner](https://github.com/ozguralp/gmapsapiscanner)를 실행하고 **API 키로 무엇에 접근할 수 있는지 확인하는 것이 흥미로울 것입니다.** {{#include ../../../banners/hacktricks-training.md}}