Business ID leak via Creative Hub redirect
The Creative Hub account selection page did not validate the redirect URL, so an attacker could craft a link that sends the user's business ID or personal ad account ID to a third-party site. This could cause UI confusion and leak those identifiers.
Published on philippeharewood.com
https://business.facebook.com/ads/creativehub/select/?redirecturi=http%3A%2F%2Fgoogle.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.
What the report shows
The target is Meta's Creative Hub, reached through the business-facing host business.facebook.com. The feature in question is the account selection screen at the path /ads/creativehub/select/, which accepts a redirect_uri parameter. The researcher found that this screen does not validate the redirect URL supplied in that parameter.
The proof of concept is a single URL, reproduced here exactly as it appears in the report:
https://business.facebook.com/ads/creativehub/select/?redirect_uri=http%3A%2F%2Fgoogle.com
The redirect_uri value is the URL-encoded form of http://google.com, so the selection screen is asked to send the user to an arbitrary external site after the account selection step. The researcher's stated consequence is that the user's business ID or personal ad account ID can be leaked to a third-party website, framed as potential UI confusion.
The timeline in the report is short and complete:
| Date | Event |
|---|---|
| Sep 20, 2019 | Report sent |
| Sep 20, 2019 | Confirmation of submission by Facebook |
| Sep 21, 2019 | Bounty awarded by Facebook |
| Sep 26, 2019 | Confirmation of patch by Facebook |
The report does not give a bounty amount, a severity rating, a CVSS score or a weakness classification. It records that a bounty was awarded and that Facebook confirmed a patch six days after submission.
Root cause
The report points to a missing validation of the redirect_uri parameter on the Creative Hub account selection screen. The report states only that the account selection screen does not validate the redirect URL. The parameter is attacker-controlled, and the report shows an external URL being accepted.
The report does not describe the server-side code, the exact point at which the redirect happens, or whether the value is used in a client-side navigation or a server response. It only states that validation is absent.
Impact
The impact described is information disclosure: the business ID or personal ad account ID of the user is leaked to a third-party website. The researcher frames this as potential UI confusion, meaning the user is led through a legitimate-looking Meta screen and then forwarded somewhere else.
The report uses hedged language ("potential UI confusion", "will leak"), and it does not demonstrate the leak itself beyond the redirect URL. It does not claim account takeover, does not claim access to ad spend or campaign data, and does not describe what the third-party site would do with the identifier. Treat the impact as stated: disclosure of an identifier, not control of the account.
How this kind of bug works
Open redirects arise when an application accepts a destination from the request and uses it for navigation without constraining it. The classic pattern is a login, logout or account-switching flow that needs to return the user somewhere afterwards; developers add a redirect_uri, next, return, continue or url parameter, and the simplest implementation is to use the value as given.
The danger is not only that the user lands on an attacker's page. The redirect often carries context: query strings appended by the application, referrer headers, or identifiers the application adds to the outbound request. When the destination is external, that context goes to the attacker. In flows that involve account or business selection, the selected entity's identifier is exactly the kind of value that gets attached.
Defences are straightforward in principle. The destination should be validated against an allowlist of trusted origins, ideally by exact match rather than prefix or substring matching. Where the application only needs to return the user within itself, relative paths should be used and absolute URLs rejected. If external destinations are a genuine requirement, they should be registered in advance and matched exactly, and the redirect should not carry sensitive identifiers in the query string.
How to test for it
- Map the flows that end in a navigation: login, logout, account or business switching, onboarding wizards, OAuth consent, and any "continue" or "return" step. Look for parameters whose names suggest a destination.
- Send a request where the destination parameter points to a host you control. Start with an absolute URL on a different domain, then try variations: scheme-relative (
//), encoded forms, mixed case, trailing dots, userinfo tricks, and paths that begin with the trusted host as a prefix. - Observe where the response sends the browser. A positive result is a redirect or client-side navigation to your host, or a page that loads your host in a frame or popup after the flow completes.
- Check what travels with the redirect. If identifiers, tokens or other context appear in the request to your host, the finding is stronger than a bare open redirect.
- Confirm the behaviour is server-driven or reliably client-driven, not a one-off artefact of your browser state.
Common false positives: the application may show an interstitial warning page before redirecting, which some programs treat as a mitigation; the redirect may only work for authenticated users in a specific state; the parameter may be validated on one path but not another; and a redirect to a page that merely reflects your URL in a link is not the same as a navigation. Test with a clean session and record the exact request and response.
How it is fixed
Validate the destination against an allowlist of trusted origins using exact matching, and reject anything else, falling back to a safe default. Prefer relative paths for internal returns. Do not append sensitive identifiers to outbound redirects. Where external destinations are needed, require pre-registration and compare the full origin, not a substring. Add tests that cover encoded, scheme-relative and prefix-matching bypasses.
Hunting notes
This class hides in flows that were built for convenience: account pickers, workspace switchers, marketing and business dashboards, and anything with a "return to where you were" step. Recon signals include parameters named redirect_uri, next, return, continue, url, dest and callback, especially on hosts that serve multiple products under one domain. Business and ads surfaces are worth attention because they carry identifiers that make a redirect more than cosmetic.
If the only effect is a redirect with no data attached, say so plainly and let the program judge severity. Where identifiers do travel, capture them in your own controlled endpoint and redact them in the write-up.
What happened, in plain words
Meta runs a product called Creative Hub on business.facebook.com, the part of Facebook aimed at businesses. It lives on business.facebook.com, the part of Facebook aimed at businesses rather than ordinary users. One screen inside it, at the path /ads/creativehub/select/, asks you to pick which business or ad account you want to work with before you continue.
That screen accepts a parameter called redirect_uri. A parameter is a small piece of information added to the end of a web address, after a question mark, that tells the page how to behave. The name redirect_uri means "the address to send the user to afterwards". A redirect is simply the server or page telling your browser "don't stay here, go to this other address instead", the way a receptionist points you down a corridor.
The researcher, Philippe Harewood, found that this screen does not check the address it is given. The report shows that an external address placed in redirect_uri is accepted. The proof of concept is one URL, reproduced exactly as it appears in the report:
https://business.facebook.com/ads/creativehub/select/?redirect_uri=http%3A%2F%2Fgoogle.com
Reading it piece by piece:
https://business.facebook.comis the real Meta business site. The link starts on a genuine, trusted domain, which is what makes it convincing./ads/creativehub/select/is the account selection screen.?marks the start of the parameters.redirect_uri=is the name of the parameter the screen reads.http%3A%2F%2Fgoogle.comis the destination. The%3Aand%2Fsequences are URL encoding: a way of writing characters that would otherwise confuse the address parser.%3Ais a colon and%2Fis a slash, so the value decodes tohttp://google.com.
In other words, the link asks a real Meta page to forward the visitor to Google. Google is harmless, but the report's point is that the destination is not validated.
Why it matters
The report's stated impact is that the user's business ID or personal ad account ID can leak to a third-party website. An ID here is an identifier: a number or string that names your specific business or ad account. It is not a password, but it is information about you that the external site should not receive.
The researcher describes this as potential UI confusion. UI means user interface, the part of a product you see and click. The idea is that the user starts on a legitimate Meta screen, picks an account as usual, and is then sent somewhere else. Because the first half of the journey looks completely normal, the user has no reason to be suspicious.
The report does not show the leak itself beyond the redirect URL. It does not claim that anyone could take over an account, spend money or read campaign data, and it does not say what a third-party site would do with the identifier. The impact as stated is disclosure of an identifier, not control of anything.
The timeline is short:
| Date | Event |
|---|---|
| Sep 20, 2019 | Report sent |
| Sep 20, 2019 | Confirmation of submission by Facebook |
| Sep 21, 2019 | Bounty awarded by Facebook |
| Sep 26, 2019 | Confirmation of patch by Facebook |
A bounty is a payment a company makes to someone who reports a security problem responsibly. It records that a bounty was awarded and that Facebook confirmed a patch six days after submission.
In general, open redirects
The pattern here is called an open redirect: a page that takes a destination from the address bar and sends the user there without checking it. It is like a hotel concierge who will walk you to any room number a stranger writes on a note, without checking whether that person is a guest.
These bugs appear wherever a product needs to send you back somewhere after a step: logging in, logging out, switching accounts, finishing a setup wizard, or approving an app. Developers add a parameter for the destination, and the simplest implementation is to trust whatever value arrives. Common names are redirect_uri, next, return, continue, url, dest and callback.
The redirect itself is only half the problem. The other half is what travels with it. The application may attach query strings, referrer information or identifiers to the outbound request. When the destination is an outside site, all of that goes to whoever runs it. In a flow where you pick a business or ad account, the identifier of what you picked is exactly the kind of value that gets attached.
In general, how to test for it
- List the flows that end by sending you somewhere: login, logout, account or business switching, onboarding, app consent, and any "continue" or "return" step. Look for parameters whose names suggest a destination.
- Change the destination to a site you control. Begin with a plain address on another domain, then try variations: addresses starting with
//, encoded forms, different capitalisation, trailing dots, and values that merely begin with the trusted domain's name. - Watch where the browser actually goes. A real finding is a redirect or a page that navigates to your site, or loads it in a frame or popup, after the flow finishes.
- Check what arrives with the redirect. If identifiers or other context show up in the request to your site, the finding is stronger than a bare redirect.
- Make sure the behaviour is consistent and not a quirk of your own browser state. Test in a clean session and keep the exact request and response.
Some results look like findings but are not. The site may show a warning page before redirecting, which some programmes accept as a fix. The redirect may only work for logged-in users in a particular state. One path may check the value while another does not. And a page that merely prints your URL back as a clickable link is not the same as sending the browser there.
In general, how it is fixed
The destination should be checked against a list of trusted sites, matched exactly rather than by prefix or by looking for a substring. Where the product only needs to return you within itself, it should use relative paths and refuse full addresses to other domains. Sensitive identifiers should not be appended to redirects that leave the site. Where outside destinations are genuinely needed, they should be registered in advance and compared in full. Tests should cover encoded, // and prefix-matching attempts.
Glossary
- Parameter: a named value added to a web address after a question mark, used to pass information to the page.
- Redirect: an instruction to the browser to leave the current address and load another one.
redirect_uri: the parameter name in this report that holds the address to send the user to after the flow.- URL encoding: writing characters as
%codes so they can travel safely inside an address, for example%3Afor a colon. - Open redirect: a redirect whose destination is taken from user input without validation.
- Business ID / ad account ID: an identifier naming a specific business or advertising account.
- Information disclosure: a bug where data that should stay private reaches someone who should not have it.
- UI (user interface): the visible, clickable part of a product.
- UI confusion: a situation where a legitimate-looking screen leads the user somewhere unexpected.
- Bounty: a payment made by a company for a responsibly reported security problem.
- Severity / CVSS: a rating of how serious a vulnerability is; CVSS is a standard scoring scale.
- Allowlist: a list of values that are explicitly permitted, with everything else rejected.
- Relative path: an address within the same site, without a domain name, such as
/home. - Scheme-relative URL: an address beginning with
//, which borrows the current page's protocol and points at another host. - Referrer header: information a browser sends about the page you came from.
- Session: the period during which a site remembers who you are, usually via a cookie.
- False positive: a result that looks like a vulnerability but is not one.