Unsafe deserialization leads to token leakage in PayPal & PayPal for Business [Android]
The PayPal Android app used a JSON wrapper that could instantiate arbitrary Java objects, allowing a malicious app on the same device to read session data and API tokens. PayPal found no evidence of abuse and fixed the issue.
- Triaged in 26 days
- Fixed in 11 months
- Paid in 6 months
- Disclosed after 2.4 years
Summary by the program
A Bug Bounty researcher identified an issue where a JSON wrapper could be used to instantiate arbitrary Java objects. This could lead to circumstances where a class called in the PayPal Android app could be read by a malicious app on the same mobile device. A specific user’s session data could potentially be disclosed, including API tokens. PayPal’s investigation found no evidence of abuse due to this bug, and the issue was resolved on November 15, 2019.
Summary by the researcher
https://blog.oversecured.com/Exploiting-memory-corruption-vulnerabilities-on-Android/
This vulnerability was reported as a result of joint research with khilly. We found that insecure deserialization allowed certain Java classes in the PayPal Android app to be accessed by a malicious app on the same device. This could have exposed API tokens and session information. Khilly contributed directly to the technical analysis and reproduction of the issue. We disclosed it through HackerOne, and PayPal confirmed and fixed the vulnerability.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the app used a JSON deserialization library that allowed instantiation of arbitrary Java classes without a safe allowlist.
Impact
A malicious app on the same device could potentially read a user's session data and API tokens, though PayPal found no evidence of abuse.
What the attacker needed
Malicious app on same device
The fix
The issue was resolved on November 15, 2019.
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 report has not been written yet. The Original tab links to the source.
The app turned JSON into Java objects, and a malicious app on the same phone could cause certain classes to be read, potentially exposing session data and API tokens. This is unsafe deserialization.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.