Skip to content

PoC demonstrating how to perform OAuth Mobile App Impersonation through custom scheme hijacking.

Notifications You must be signed in to change notification settings

rmRizki/oauth_poc

Repository files navigation

OAuth Mobile App Impersonation PoC

This is a PoC demonstrating how to perform OAuth Mobile App Impersonation through custom scheme hijacking as described in Ostorlab Blog. This can be used to demonstrate the vulnerability by creating a malicious app that impersonates a legitimate app by registering a custom scheme that is similar to the legitimate app's scheme. The registered custom scheme can then be used to listen for OAuth codes that are sent via redirect_uri.

Requirements

  • Flutter installed on your machine

Usage

  1. Clone the repository
  2. Install the dependencies by running flutter pub get
  3. Search for "schemeName" in the project and replace it with the custom scheme of the target app (ex: com.example.app)
  4. Fill the oauthurl variable in main.dart with the OAuth URL of the target app
  5. Run the app using flutter run

About

PoC demonstrating how to perform OAuth Mobile App Impersonation through custom scheme hijacking.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published