Skip to content
Leaked secrets Write-up Beginner

Write Up – Finapi (Open Banking API) Oauth Credentials Exposed In Plain Text In Android App

The Android app contained hardcoded finAPI OAuth client credentials in plain text, which could be extracted by decompiling the APK. An attacker could use these credentials to obtain an access token and perform actions on the finAPI account, such as reading bank information.

Omar Espino Follow

Published on omespino.com

The original lives on omespino.com

We do not hold its text, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the OAuth client credentials were hardcoded in the Android app's resources instead of being kept server-side.

Impact

Anyone could create, get, update, delete, import users, banks, and communications in finAPI on the company's account.

What the attacker needed

Access to the Android app; ability to decompile APK

How it was found

  1. Download the Android app and pull the APK using adb.
  2. Decompile the APK with apktool.
  3. Search the decompiled files for 'client_secret' to find the OAuth URL with credentials.
  4. Use the credentials to request an access token from finAPI.
  5. Use the token to call finAPI endpoints and retrieve bank information.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

The app stored a secret password (client secret) directly in its code, so anyone who downloaded the app could find it by unpacking the app file. With that secret, a person could pretend to be the company and use a financial service to access bank data.

What is Leaked secrets?

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.

More by Omar Espino

View all

15 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Leaked secrets and credentials

The lesson behind this report.

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.