75172e9c80 | ||
---|---|---|
.. | ||
README.md | ||
asana.yaml | ||
bingmaps.yaml | ||
bitly.yaml | ||
buildkite.yaml | ||
buttercms.yaml | ||
calendly.yaml | ||
circleci.yaml | ||
deviantart.yaml | ||
dropbox.yaml | ||
github.yaml | ||
google-autocomplete.yaml | ||
google-customsearch.yaml | ||
google-directions.yaml | ||
google-elevation.yaml | ||
google-fcm.yaml | ||
google-findplacefromtext.yaml | ||
google-gedistancematrix.yaml | ||
google-geocode.yaml | ||
google-geolocation.yaml | ||
google-mapsembed.yaml | ||
google-mapsembedadvanced.yaml | ||
google-nearbysearch.yaml | ||
google-nearestroads.yaml | ||
google-placedetails.yaml | ||
google-placesphoto.yaml | ||
google-playablelocations.yaml | ||
google-routetotraveled.yaml | ||
google-speedlimit.yaml | ||
google-staticmaps.yaml | ||
google-streetview.yaml | ||
google-timezone.yaml | ||
googlet-extsearchplaces.yaml | ||
heroku.yaml | ||
hubspot.yaml | ||
instagram.yaml | ||
ipstack.yaml | ||
iterable.yaml | ||
jumpcloud.yaml | ||
lokalise.yaml | ||
loqate.yaml | ||
mailchimp.yaml | ||
mailgun.yaml | ||
mapbox.yaml | ||
nerdgraph.yaml | ||
npm.yaml | ||
openweather.yaml | ||
pagerduty.yaml | ||
pendo.yaml | ||
pivotaltracker.yaml | ||
postmark.yaml | ||
sendgrid.yaml | ||
slack.yaml | ||
sonarcloud.yaml | ||
spotify.yaml | ||
square.yaml | ||
stripe.yaml | ||
tinypng.yaml | ||
travisci.yaml | ||
twitter.yaml | ||
visualstudio.yaml | ||
wakatime.yaml | ||
weglot.yaml | ||
youtube.yaml |
README.md
About
This directory holds templates that have static API URL endpoints. Use these to test an API token against many API service endpoints. By providing token input using flag, Nuclei will test the token against all known API endpoints within the API templates, and return any successful results. By incorporating API checks as Nuclei Templates, users can test API keys that have no context (i.e., API keys that do not indicate for which API endpoint they are meant).
Usage
You do not need to specify an input URL to test a token against these API endpoints, as the API endpoints have static URLs. However, Nuclei requires an input (specified via -u
for individual URLs or -l
for a file containing URLs). Because of this requirement, we simply pass in -u "null"
. Each template in the apis
directory assumes the input API token will be provided using CLI var
flag.
# Run Nuclei specifying all the api templates:
nuclei -u null -t apis/ -var token=thisIsMySecretTokenThatIWantToTest
Credits
These API testing templates were inspired by the streaak/keyhacks repository. The Bishop Fox Continuous Attack Surface Testing (CAST) team created additional API templates for testing API keys uncovered during investigations.