Skip to content
Crypto Write-up Intermediate

Oracle MAF store bypass, a how-to

The Oracle Fusion Mobile Expenses Android app stored its custom TLS KeyStore with a well-known default password, and the app trusted only that KeyStore for certificate validation. An attacker with access to the device could add their own certificate authority to the KeyStore and intercept the app's HTTPS traffic.

pentestpartners.com

Published on pentestpartners.com

On a recent assignment I was asked to look at the security of a cloud-based solution for expenses, the Oracle® ExpensesCloud with Fusion applications. It was being used for employees to create/save/edit/submit claims to the employer.

PTP Admin, on pentestpartners.com

The full write-up lives on its author's site

It belongs to its author, 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 app shipped a KeyStore protected by the default Java password and relied solely on that KeyStore for trust, so anyone who knew the password could add a rogue CA.

Impact

An attacker with device access could man-in-the-middle the app's HTTPS traffic and inspect it, though this requires the ability to modify files on the phone.

What the attacker needed

Access to the Android device or ADB; ability to modify app data files; a proxy CA certificate

How it was found

  1. Install the Oracle Fusion Mobile Expenses app on a test Android device.
  2. Locate the mafcerts.jks KeyStore file in the app's data folder.
  3. Decompile the app and find the hardcoded KeyStore password in the source.
  4. Download the KeyStore and import a proxy CA certificate into it using keytool with that password.
  5. Push the modified KeyStore back to the app directory via ADB and restart the app.
  6. Configure the device proxy and intercept the app's HTTPS traffic.

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.

Apps often check that a server's certificate is genuine so nobody can eavesdrop. This app kept its list of trusted certificates in a file protected by a password that is publicly known, so anyone who could reach the file could add their own fake certificate and read the traffic. The attacker needs physical or ADB access to the phone to swap the file.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.