Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add apigee client id and secret #107

Open
w1th0ut opened this issue Sep 3, 2021 · 1 comment
Open

add apigee client id and secret #107

w1th0ut opened this issue Sep 3, 2021 · 1 comment
Labels
status: pr needed Issue ticket is awaiting a PR

Comments

@w1th0ut
Copy link

w1th0ut commented Sep 3, 2021

Hello,
I have suggestion add apigee client id and secret. With client id and secret, we can gain full access to apigee service of that company who leak id and secret. No regex for hunting client id and secret but there is

curl -I -H 'Content-Type: application/x-www-form-urlencoded' -X POST 'https://company.apigee.net/oauth/accesstoken' -d 'grant_type=client_credentials&client_id=xxx&client_secret=yyy'

Client id always longer than client secret.

{
    "token": "xxx",
    "access_token": "xxx",
    "issued_at": "00000",
    "expires_in": "00000"
}

Access token will look like jwt token, so decode it and find this:

{
  "access_token": "agGEHDkB7WRDYNbVJ1VVbAjzGTi4",
  "audience": "",
  "api_product_list": [
  ],

Use this key as bearer authorization to explore more deep.

But do not always following /oauth/accesstoken endpoint because some company using custom endpoint.
Simple Regex to hunt apigee service of company: .*\.apigee\.net

reference:
https://docs.apigee.com/api-platform/security/oauth/oauth-20-client-credentials-grant-type

@streaak
Copy link
Owner

streaak commented Oct 2, 2021

Hey @w1th0ut,
Could you create a PR and reference this issue?

Thanks

@EdOverflow EdOverflow added the status: pr needed Issue ticket is awaiting a PR label Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: pr needed Issue ticket is awaiting a PR
Projects
None yet
Development

No branches or pull requests

3 participants