Api keys
Table of Contents
Detailed Information
If the below command returns missing_text_or_fallback_or_attachments, it means that the URL is valid, any other responses would mean that the URL is invalid.
Facebook AppSecret
You can generate access tokens by visiting the URL below.
Facebook Access Token
Requires a custom token, and an API key.
Obtain ID token and refresh token from custom token and API key:
curl -s -XPOST -H 'content-type: application/json' -d '{"token":":custom_token","returnSecureToken":True}' 'https://identitytoolkit.googleapis.com/v1/accounts:signInWithCustomToken?key=:api_key'Exchange ID token for auth token:
curl -s -XPOST -H 'content-type: application/json' -d '{"idToken":":id_token"}' https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyCustomToken?key=:api_key'
Reference: https://abss.me/posts/fcm-takeover
GitHub private SSH key
SSH private keys can be tested against github.com to see if they are registered against an existing user account. If the key exists the username corresponding to the key will be provided. (source)
Get all owners:
Get all contact details:
Detection:
App id/client secret: sq0[a-z]{3}-[0-9A-Za-z\-_]{22,43} Auth token: EAAA[a-zA-Z0-9]{60}
Test App id & client secret:
Response indicating valid credentials:
Response indicating invalid credentials:
Test Auth token:
Response indicating valid credentials:
Response indicating invalid credentials:
Install awscli, set the access key and secret to environment variables, and execute the following command:
AWS credentials' permissions can be determined using Enumerate-IAM. This gives broader view of the discovered AWS credentials privileges instead of just checking S3 buckets.
Microsoft Azure Tenant
Format:
Verification:
The following powershell can be used to test a Shared Access Signature Token:
If valid, test further to see if it's an admin key
Mapbox secret keys start with sk, rest start with pk (public token), sk (secret token), or tk (temporary token).
Be cautious when running this command, since the payload might execute within an administrative environment, depending on what index you are editing the highlightPreTag of. It's recommended to use a more silent payload (such as XSS Hunter) to prove the possible cross-site scripting attack.
Key restrictions are set per service. When testing the key, if the key is restricted/inactive on one service try it with another.
Static Maps
$2
Embed
Varies
Find Place from Text
Varies
Autocomplete
Varies
Elevation
$5
*Pricing is in USD per 1000 requests (for the first 100k requests)
More Information available here-
https://github.com/ozguralp/gmapsapiscanner/
https://developers.google.com/maps/api-key-best-practices
Send a POST to the following URL:
secret and response are two required POST parameters, where secret is the key and response is the response to test for.
Regular expression: ^6[0-9a-zA-Z_-]{39}$. The API key always starts with a 6 and is 40 chars long. Read more here: https://developers.google.com/recaptcha/docs/verify.
Service Account credentials may be found in a JSON file like this:
If this is your case you may check these credentials using gcloud tool (how to install gcloud):
In case of success you'll see access token printed in terminal. Please note that after verifying that credentials are actually valid you may want to enumerate permissions of these credentials which is another story.
Visit the following URL to check for validity:
Visit this link to check for the key's validity. A valid key's response should start with authenticationResultCode: "ValidCredentials"
Visit the following URL to check for validity:
API tokens are different from OAuth tokens, API tokens are auto-generated passwords in the Support admin interface.
This issue can be further exploited by checking out @hateshape's gist https://gist.github.com/hateshape/2e671ea71d7c243fac7ebf51fb738f0a.
Do not delete the : at the end.
E.g.: IGQVJ...
E.g.: EAAJjmJ...
The access token can be further used to extract data from the PayPal API. More information: https://developer.paypal.com/docs/api/overview/#make-rest-api-calls.
This can be verified using:
Keep the colon at the end of the token to prevent cURL from requesting a password.
The token is always in the following format: sk_live_24charshere, where the 24charshere part contains 24 characters from a-z A-Z 0-9. There is also a test key, which starts with sk_test, but this key is worthless since it is only used for testing purposes and most likely doesn't contain any sensitive information. The live key, on the other hand, can be used to extract/retrieve a lot of info — ranging from charges to the complete product list.
Keep in mind that you will never be able to get the full credit card information since Stripe only gives you the last 4 digits.
More info/complete documentation: https://stripe.com/docs/api/authentication.
This can be verified using:
You can verify NPM token using npm (replacing 00000000-0000-0000-0000-000000000000 with NPM token):
Another way to verify token is to query API directly:
You'll get username in response in case of success, 401 Unauthorized in case if token doesn't exists and 403 Forbidden in case if your IP address is not whitelisted.
NPM token can be CIDR-whitelisted. Thus if you are using token from non-whitelisted CIDR you'll get 403 Forbidden in response. So try to verify NPM token from different IP ranges!.
P.S. Some companies uses registries other than registry.npmjs.org. If it's the case replace all registry.npmjs.org occurrences with domain name of company's NPM registry.
Get all collections for a specific project:
Note: Keep the colon at the end of the token to prevent cURL from requesting a password. Info: The token is always in the following format: sk_live_34charshere, where the 34charshere part contains 34 characters from a-z A-Z 0-9 There is also a test key, which starts with sk_test, but this key is worthless since it is only used for testing purposes and most likely doesn't contain any sensitive info. The live key, on the other hand, can be used to extract/retrieve a lot of info. Going from charges, to the complete product list. Keep in mind that you will never be able to get the full credit card information since stripe only gives you like the last 4 digits. More info / complete docs: https://stripe.com/docs/api/authentication =======
Get user information:
List Webhook Subscriptions:
Get the total number of requests made in last 24 hours:
In order to check recordKey validity you'll need projectId which is public value that usually can be found at cypress.json file. Replace {recordKey} and {projectId} in JSON body with your values.
Yes, this request needs to be that big. It'll return 200 OK with some information about run in case if both projectId and recordKey are valid, 404 Not Found with {"message":"Project not found. Invalid projectId."} if projectId is invalid or 401 Unauthorized with {"message":"Invalid Record Key."} if recordKey is invalid.
Example of projectId is 1yxykz and example of recordKey is a216e7b4-4819-4713-b9c2-c5da60a1c48c.
Fetch content details for a YouTube channel (The channelId in this case points to PewDiePie's channel).
Export campaign analytics data in JSON format, one entry per line. Use of either 'range' or 'startDateTime' and 'endDateTime' is required.
The response is a zipped archive of JSON files, with potentially multiple files per hour. Note that events prior to 2014-11-12 will be grouped by day instead of by the hour. If you request data for a time range during which no data has been collected for the project, then you will receive a 404 response from the server.
List all the app projects for the API Token:
Fetch the latest app build information for a particular project:
Use the
nameandowner.nameobtained in response in Step 1.
List User Information with API Token:
Obtain API Token with Valid User Credentials:
A successful access token request returns a JSON object containing access_token, expires_in.
A successful access token request returns a JSON object containing token_type, access_token, expires_in.
A Successful Passkey Request returns a JSON object containing company name
Grafana API supports Bearer and Basic authorisation schemes. Bearer:
Basic:
Last updated
