Whose app are you downloading? Link hijacking Binance’s shortlinks through AppsFlyer
A path traversal flaw in AppsFlyer's OneLink shortlink management allowed an attacker to overwrite any customer's shortlink, including Binance's, by manipulating the URL parameter. An attacker could redirect users to a malicious app download via the official Binance notifications.
Written By Sam Curry
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
An attacker could overwrite any AppsFlyer customer's shortlink, including Binance's, to redirect users to malicious app downloads via official notifications.
What the attacker needed
AppsFlyer OneLink account; knowledge of target shortlink ID
How it was found
- Register for an AppsFlyer OneLink account and create a fake app to obtain a onelink.me subdomain.
- Identify the target shortlink's ID (eT20) from a Binance shortlink.
- Send a POST request to /link-management/api/saveLink with a longUrl containing path traversal (../) to the target ID.
- Observe that the server returns a success response and the shortlink is overwritten.
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.
AppsFlyer is a service that creates short links for apps. The bug let someone change the destination of any short link, even ones belonging to other companies, by using a trick called path traversal. This meant a fake app download could be shown to users through a trusted link.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.