Coder Social home page Coder Social logo

oauth_fetcher's Introduction

OAuth-Fetcher

Burp extension that allows you to fetch/renew oauth creds & access tokens for your requests automagically!

Based on the old ext by @bb_hacks

https://github.com/t3hbb/OAuthRenew

This tool will allow you to generate a signed JWT using OAuth client ID and credentials.

It will get the client assertion and then request a Bearer token.

If it recognizes that your token has expired, it will get a new one and replace it for subsequent requests :)


Set up

Modify the extension as necessary:

Enter your client credentials & extra params
image

Make adjustments to the POST parameters if needed.
If you have any extra params, make sure you include them here. image

At the moment, the tool only works in Repeater. You can modify this here: image

The extension checks for your specified token expired/error text. image

Install the extension. Enjoy! image



Usage

Example in Repeater

It will detect that the token has expired or is invalidated. image

Simply check the output in the Extender tab.

NOTE: Sometimes you need to issue the request twice. image

Observe that your subsequent requests should be properly authenticated.
NOTE: The token in your request might still look like the old one. The extension is handling it with the new token. (Trying to figure this out :) ) image


Troubleshooting

If something doesn't work, check the output console in Extender tab. It will retry at least 3 times to refresh the token before giving up.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.