Download Facebook internal mobile builds
A misconfiguration in the mobile builds endpoint allowed an attacker to download internal development builds for Facebook, Instagram, Workplace, Portal and Oculus products by iterating build numbers. The builds contained authentication tokens for an internal Facebook endpoint.
Published on philippeharewood.com
Facebook serves mobile apps, modules, firmware and packages via a few utility endpoints. One of these is defined as m.facebook.com/mobilebuilds.
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
Impact
This could have let a malicious user access internal mobile builds, which included authentication tokens for an internal Facebook endpoint.
What the attacker needed
No authentication required; knowledge of build number range
The fix
The issue was fixed by Facebook, as confirmed in the timeline.
How it was found
- Send a request to the mobile_builds endpoint with a build number parameter and a cookie header.
- Iterate over a range of build numbers to download multiple builds.
- Change the range to access older builds or more recent ones.
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.
A web server had a page that was supposed to serve only certain mobile app builds, but due to a configuration mistake, anyone could request any build number and get internal, non-public versions of the apps. These internal builds sometimes contained secret tokens that could be used to access other internal Facebook systems.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.