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.
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
- Install the Oracle Fusion Mobile Expenses app on a test Android device.
- Locate the mafcerts.jks KeyStore file in the app's data folder.
- Decompile the app and find the hardcoded KeyStore password in the source.
- Download the KeyStore and import a proxy CA certificate into it using keytool with that password.
- Push the modified KeyStore back to the app directory via ADB and restart the app.
- 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.