Key points of this writeup
- Discovered a leaked OAuth token: StaySafe.ph’s Facebook login redirect exposed a long-lived (~59-day) access token directly in the URL. That token alone was enough to impersonate a user, no password required.
- Reverse-engineered the mobile app: Decompiled
ph.staysafe.mobileapp(v2.1) using Jadx and apktool to dig into how the app worked under the hood. - Accessed sensitive exposure data: With just the leaked token, pulled detailed contact-tracing logs showing exposure status (Probable, Suspect, Confirmed, Cleared, Initial), color-coded and dated, including full historical records, not just current data.
- Mapped 20+ exposed API endpoints: Extracted from the app’s JS bundle, covering critical functions like password reset, OTP verification, account activation/deactivation, and account deletion.
- Found an exposed, editable backend: The Laravel backend source and admin panel were publicly accessible, and editable, leaking massive amounts of PII for millions of users: names, emails, passwords, phone numbers, OTPs, vaccination status, locations, and more.
Technical Details
During the pandemic, I found vulnerabilities in the StaySafe Android application: a user location disclosure issue, a full account takeover via access token, and admin panel access exposing millions of users’ PII.
When a user goes to the StaySafe website to create an account or log in, I chose to log in with my Facebook account. After authenticating with Facebook, I noticed it redirected to StaySafe with an endpoint like this:
https://www.staysafe.ph/via-facebook?#access_token=[token]&data_access_expiration_time=1624186784&expires_in=5155980
I noticed this exposed my user access token directly in the URL, and that this token alone could be used to access a StaySafe user’s account. I tested it multiple times and was able to log in using only the access token no email or password required. The token remained valid for up to 59 days, 16 hours, 26 minutes, and 20 seconds before expiring. If this token leaked, anyone could access that user’s StaySafe account and data for nearly two months.
Next, after obtaining my own access token, I downloaded the StaySafe mobile application (package name: ph.staysafe.mobileapp, version name: 2.1) to dig deeper. I reverse-engineered the application using Jadx and apktool to look for additional information and entry points. At the time, StaySafe PH had over 5 million downloads on the Google Play Store; it has since been removed from the store.

While reviewing the decompiled code, I found a large amount of sensitive information, including this URL pattern with a token parameter:
https://www.staysafe.ph/wb/logbook?token=[]
I tested this endpoint by appending my own access token to the URL and opening it. What I found was essentially a Bluetooth contact-tracing log, it showed nearby users’ COVID-19 exposure status (Probable, Suspect, Confirmed, Cleared, Initial) with color coding, organized by date, including historical contacts. This meant the endpoint could expose other users’ locations and infection status without authorization.

I then reviewed the website’s source code for further leads and extracted all endpoints referenced in the main JavaScript file. This extraction revealed 20+ API endpoints, which could be used to reset a user’s password, verify OTPs, activate/deactivate accounts, delete accounts, and disclose user information, among other actions.
Finally, I located the web directory where the backend source code was exposed. I was able to access and edit portions of the source code, as well as the path to the Laravel admin panel, which disclosed both web and mobile user data including full names, email addresses, passwords, company names, full locations, phone numbers, OTPs, IP addresses, and more.

Conclusion
A single exposed access token in the Facebook login redirect was enough to unravel the entire platform. That token alone granted full account access for nearly two months, and once inside, it led to a chain of deeper issues: a logbook endpoint that handed over other users’ exposure status and contact history, 20+ API endpoints covering sensitive account actions, and finally an exposed, editable backend that disclosed PII for millions of users. None of this required advanced access, just a leaked token sitting in a URL and a willingness to keep digging.
Disclosure Timeline
- March 22, 2021 — Emailed StaySafe regarding these vulnerabilities; received a same-day response requesting further details.
- March 23, 2021 — Sent full documentation of the findings along with proof-of-concept details.
- March 25, 2021 — Emailed the MultiSys security team and CEO David Almirol; received a reply from StaySafe’s Derit Ginovin confirming they were collaborating on a fix.
- December 31, 2021 — Followed up with the help of Art Samaniego Jr. for a status update.
- September 2, 2022 — Followed up again with the help of John Patrick Lita.
- September 5, 2022 — Vulnerability fixed.
FAQ
What is this? Account Takeover and Mass PII Disclosure on the StaySafe PH Contact Tracing Platform.
How does it work? It’s all in the Technical Details section above, one findings top to bottom, read it.
Isn’t it useless? It’s a government-backed contact tracing app with 5 million downloads during a pandemic. Useless is the last word for it.
What’s so bad about it? You’re not just getting into one account, you’re getting a token that logs you in for almost two months, no password needed, plus other people’s exposure status, their contact history, and eventually a backend leaking names, passwords, phone numbers, OTPs, and vaccination status for millions of users. If you don’t see the problem here, I don’t know what to tell you.
Why? Because StaySafe dropped a long-lived access token straight into a redirect URL instead of handling it properly, and that one mistake snowballed into exposed endpoints and a fully accessible admin panel. Took from March 2021 to September 2022 to actually get fixed, despite multiple follow-ups.