Skip to content
CSRF Disclosed report Beginner

Periscope android app deeplink leads to CSRF in follow action

The Periscope Android app accepts a custom deep link that directly follows a user without any confirmation, unlike the web version which asks for confirmation. An attacker could trick a victim into clicking a link that makes them follow an arbitrary account.

kunal94 Follow

Originally disclosed on HackerOne

Bounty$1,540 Low View original
  • Triaged in 3 days
  • Fixed in 16 days
  • Paid in 24 days
  • Disclosed after 9 months

Hello Twitter Team

#Summary This issue is mainly in the Periscope Android app against CSRF follow action using deeplink.

#Description In normal Periscope Website, when we share a follow link like www.pscp.tv/<user-id>/follow, we get a response whether to follow a person or not, giving us an option, means CSRF protection is there in Periscope web application. However, in the Periscope Android App, there are some internal deep links by which we can perform Direct CSRF in terms of the following user using internal deeplinks.

#POC

In Android Manifest XML file, internal deeplinks are described as

HTML
<data android:host="user" android:pathPrefix="/" android:scheme="pscp"/>
<data android:host="user" android:pathPrefix="/" android:scheme="pscpd"/>
<data android:host="broadcast" android:pathPrefix="/" android:scheme="pscp"/>
<data android:host="broadcast" android:pathPrefix="/" android:scheme="pscpd"/>
<data android:host="channel" android:pathPrefix="/" android:scheme="pscp"/>
<data android:host="channel" android:pathPrefix="/" android:scheme="pscpd"/>
<data android:host="discover" android:pathPrefix="/" android:scheme="pscp"/>
<data android:host="discover" android:pathPrefix="/" android:scheme="pscpd"/>
  • It means we can use pscp://user/<user-id> or pscpd://user/<user-id>

  • Now,normally if we share follow link from website, it'll be like this, www.pscp.tv/<user-id>/follow, further give us option to follow them or not.

  • In deeplink, we can use the same follow-link in this way - pscp://user/user-id/follow, Once you visit this link from the browser, you'll directly follow any person in periscope android app.

  • Here is the Final POC

HTML
<!DOCTYPE html>
<html>
<a href="pscp://user/<any user-id>/follow">CSRF DEMO</a>
</html>
  • Visit the above POC html page from android chrome browser, click on link and you'll follow anyone directly inside Periscope android app.

#Attachment (Video)

pocdeeplink.mp4 From the original on HackerOne
  • App Info - Periscope V 1.25.5.93

Thanks Kunal

Impact

  • Using Periscope deeplink like pscp://user/user-id/follow, it's possible to perform Direct CSRF Follow against any user in periscope android app.

The original report as published on HackerOne, by kunal94. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 5 min read.

Context

Periscope is a live video product whose web presence lives on www.pscp.tv, and it also ships an Android app. One of the ordinary features of the product is following another user. On the website, a follow link has the shape www.pscp.tv/<user-id>/follow, and when a visitor opens it the site asks whether they want to follow that person or not. That confirmation step is the CSRF protection for the follow action on the web side: the action is not carried out just because a URL was opened.

The Android app exposes its own internal deep links, declared in its manifest, and those links are the subject of this report. The researcher found that one of them performs the follow action directly, without any confirmation, which turns a link into a state-changing request against the logged-in user's account.

Setup

The report names the Periscope Android app version 1.25.5.93 and Android Chrome as the browser used to open the link. The researcher's proof of concept is a local HTML page containing a single link, opened in that browser. No special tooling, proxy interception or account setup beyond a normal logged-in app session is described.

The attack requires the victim to open the proof of concept page in Android Chrome and click the link.

Finding it

The starting point was the contrast between the two surfaces. On the web, sharing a follow link such as www.pscp.tv/<user-id>/follow produces a page that gives the visitor the option to follow or not, so the web application does have CSRF protection on this action. The researcher then looked at the Android app's manifest, where the internal deep links are declared, and noticed that the app accepts pscp and pscpd schemes for several hosts, including user. Because the app handles those links itself, a link that reaches the app can drive app navigation and actions directly, bypassing the web confirmation flow entirely.

Exploitation

Step 1: Read the deep link declarations from the manifest

The Android Manifest XML file describes the internal deep links as follows:

HTML
<data android:host="user" android:pathPrefix="/" android:scheme="pscp"/>
<data android:host="user" android:pathPrefix="/" android:scheme="pscpd"/>
<data android:host="broadcast" android:pathPrefix="/" android:scheme="pscp"/>
<data android:host="broadcast" android:pathPrefix="/" android:scheme="pscpd"/>
<data android:host="channel" android:pathPrefix="/" android:scheme="pscp"/>
<data android:host="channel" android:pathPrefix="/" android:scheme="pscpd"/>
<data android:host="discover" android:pathPrefix="/" android:scheme="pscp"/>
<data android:host="discover" android:pathPrefix="/" android:scheme="pscpd"/>

These entries mean the app can be addressed with pscp://user/<user-id> or pscpd://user/<user-id>, and the same pattern applies to the broadcast, channel and discover hosts. The manifest declares pathPrefix="/" for each of these hosts.

Step 2: Compare with the web follow link

Normally, if a follow link is shared from the website, it looks like this: www.pscp.tv/<user-id>/follow. Opening it gives the visitor the option to follow the person or not, so the action is gated by a user decision.

Step 3: Reuse the same path inside the deep link

The researcher took the same follow path and expressed it as a deep link: pscp://user/user-id/follow. When this link is visited from the browser, the app is launched and the follow is performed directly, with no confirmation step. The web-side protection does not apply because the action is not being carried out by the web application at all; it is being carried out by the app in response to the deep link.

Step 4: Deliver the link from a web page

The final proof of concept is a minimal HTML page:

HTML
<!DOCTYPE html>
<html>
<a href="pscp://user/<any user-id>/follow">CSRF DEMO</a>
</html>

Visiting this page from Android Chrome and clicking the link causes the victim to follow the chosen user directly inside the Periscope Android app. The attacker only needs to substitute any target user ID in the href.

pocdeeplink.mp4 From the original on HackerOne

The report attaches a video named pocdeeplink.mp4.

Root cause

The app accepts pscp://user/<user-id>/follow, and opening it performs the follow without a confirmation step. The web application's protection, which asks the visitor whether to follow, exists only on the web surface; the deep link path is a second entry point to the same state-changing action and does not carry that protection. Because the deep link can be placed on a web page, a victim who clicks it follows the chosen user. The report does not describe any token, origin check or confirmation prompt on the app side that would have stopped it.

Impact

The result is a direct CSRF follow against any user in the Periscope Android app: an attacker who can get a logged-in victim to open a page and tap a link can make that victim follow an account of the attacker's choosing. The report does not describe any further consequence beyond the follow action itself. The attack requires the victim to click the link; it is not described as working without that interaction.

Fix

The design lesson it points to is that the app-side deep link handler for the follow action should not perform the action on the strength of the link alone: it should require an explicit confirmation inside the app, in the same way the web flow does, so that a link opened from a browser cannot silently change the victim's follow state.

Variants to test

The manifest in this report lists more hosts than the one that was exploited, and each is worth checking on a similar target:

  1. pscp://broadcast/<id>/... and pscpd://broadcast/<id>/...: try appending action-like path segments and see whether the app performs a state change (follow, subscribe, like) without a prompt.
  2. pscp://channel/<id>/... and pscpd://channel/<id>/...: same approach; a positive result is the app carrying out the action immediately on link open.
  3. pscp://discover/<id>/... and pscpd://discover/<id>/...: check whether any path under this host reaches an action rather than a view.
  4. The pscpd scheme alongside pscp: test both, since the manifest declares both for every host and they may be handled by different code paths.
  5. Other path segments under the user host beyond follow: the pathPrefix="/" accepts any path, so look for other verbs that map to state changes.

A positive result in each case is the same shape as this report: a link that, when opened from a browser on a device with the app installed and the user logged in, changes account state with no confirmation.

Hunting notes

This kind of bug hides at the boundary between a web product and its mobile app. The signal during recon is a manifest that declares custom schemes and broad pathPrefix values, especially when the same product has a web flow that asks for confirmation before an action. Comparing the two surfaces, the web link that prompts and the app link that does not, is what exposes the gap. The researcher demonstrated impact with a minimal HTML page and attached a video.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 10 min read.

What happened, in plain words

Periscope is a live video service. It has a website at www.pscp.tv and an Android app. One of its everyday features is following another user, so that you see their broadcasts.

On the website, following someone is protected. If you open a follow link, the site asks you whether you really want to follow that person. Nothing happens until you choose. That question is the site's defence against a trick called CSRF, which stands for Cross-Site Request Forgery. In plain terms, CSRF is when a page you visit makes your browser or your app do something to your account that you never intended, using the fact that you are already logged in.

The Android app, however, can be opened by special links called deep links. A deep link is a link that starts with a custom scheme instead of http or https, and it tells the phone to open a particular app rather than a web page. The researcher found that one of the app's deep links performs the follow action straight away, with no question at all. So a web page can contain a link that, when tapped, makes the logged-in victim follow an account chosen by the attacker.

Background you need first

A few ideas come up again and again below, so here they are from zero.

  • A URL and its parts. A URL like www.pscp.tv/alice/follow has a host (www.pscp.tv) and a path (/alice/follow). The path is the part that usually says what you want to do or see.
  • A scheme. The bit before :// is the scheme. https means a web page. A custom scheme such as pscp means "hand this to an app that has registered that name". The phone's operating system looks up which app claims the scheme and passes the link to it.
  • A deep link. A link using a custom scheme that opens a specific screen or action inside an app. Tapping it in a browser can launch the app.
  • The Android manifest. Every Android app contains a file, the manifest, that declares what the app can do. Among other things it lists which schemes and hosts the app is willing to receive links for. If a scheme and host are listed there, the app can be launched by links of that shape.
  • A user ID. A short identifier for an account, used in URLs in place of the person's name.
  • CSRF. As above: a page you visit causes an action on your account without your intent. The classic web defence is a confirmation step, or a secret value that the attacker's page cannot know.
  • State-changing action. Anything that alters your account rather than just showing you something: following, liking, posting. These are the actions CSRF cares about, because reading a page harms nobody.

The setup

The report names the Periscope Android app version 1.25.5.93 and Android Chrome as the browser used to open the link. The proof of concept is a small HTML page saved locally and opened in that browser. Nothing more elaborate is described: no proxy, no interception tools, no special account setup beyond being logged in to the app normally.

For the attack to work, the victim must open the proof of concept page in Android Chrome and tap the link. The report does not describe the attack working without that tap.

Finding it

The researcher started by comparing the two surfaces of the same product: the website and the app.

On the web, sharing a follow link such as www.pscp.tv/<user-id>/follow produces a page that offers the visitor the choice to follow or not. So the web application does have CSRF protection on this action.

Then the researcher looked at the app's manifest, where the app declares which deep links it accepts. The app accepts the schemes pscp and pscpd for several hosts, including user. Because the app handles those links itself, a link that reaches the app can drive the app's navigation and actions directly, skipping the web confirmation entirely. The web page asks; the app just does.

Exploitation

Step 1: Read the deep link declarations from the manifest

The manifest describes the app's internal deep links like this:

HTML
<data android:host="user" android:pathPrefix="/" android:scheme="pscp"/>
<data android:host="user" android:pathPrefix="/" android:scheme="pscpd"/>
<data android:host="broadcast" android:pathPrefix="/" android:scheme="pscp"/>
<data android:host="broadcast" android:pathPrefix="/" android:scheme="pscpd"/>
<data android:host="channel" android:pathPrefix="/" android:scheme="pscp"/>
<data android:host="channel" android:pathPrefix="/" android:scheme="pscpd"/>
<data android:host="discover" android:pathPrefix="/" android:scheme="pscp"/>
<data android:host="discover" android:pathPrefix="/" android:scheme="pscpd"/>

Line by line, in plain words:

  • Each line is one rule telling Android that the app wants links of a certain shape.
  • android:scheme="pscp" or "pscpd" is the custom scheme, the part before ://. Two schemes are declared, so the app answers to both.
  • android:host="user" (or broadcast, channel, discover) is the host part, the bit right after the scheme. It names a kind of thing inside the app: a user, a broadcast, a channel, a discovery page.
  • android:pathPrefix="/" says any path beginning with a slash is accepted. In practice that means any path at all under that host, which is what allows a word such as follow to be appended.

Put together, these entries mean the app can be addressed with pscp://user/<user-id> or pscpd://user/<user-id>, and the same pattern applies to the other three hosts. The researcher read this list to learn which links the app would accept, before trying any of them.

Step 2: Compare with the web follow link

Normally, if a follow link is shared from the website, it looks like this: www.pscp.tv/<user-id>/follow. Opening it gives the visitor the option to follow the person or not. The action waits for a human decision, which is the protection.

This step matters because it establishes what "safe" looks like for the same action. If the app behaves differently for the same intent, that difference is the bug.

Step 3: Reuse the same path inside the deep link

The researcher took the same follow path and expressed it as a deep link: pscp://user/user-id/follow. When this link is opened from the browser, the app launches and the follow is performed directly, with no confirmation step.

The web-side protection does not apply here, because the action is not being carried out by the web application at all. It is being carried out by the app in response to the deep link. The app never asks the question the website asks.

Step 4: Deliver the link from a web page

The final proof of concept is a minimal HTML page:

HTML
<!DOCTYPE html>
<html>
<a href="pscp://user/<any user-id>/follow">CSRF DEMO</a>
</html>

Line by line:

  • <!DOCTYPE html> tells the browser this is an HTML page.
  • <html> opens the page.
  • <a href="pscp://user/<any user-id>/follow">CSRF DEMO</a> is a single link. The href is the deep link from step 3, with the target user's ID in place of <any user-id>. The text CSRF DEMO is what the victim sees and taps.
  • </html> closes the page.

Visiting this page from Android Chrome and tapping the link causes the victim to follow the chosen user directly inside the Periscope Android app. The attacker only needs to substitute any target user ID in the href. That is the whole attack: a page with one link, and a tap.

pocdeeplink.mp4 From the original on HackerOne

The report attaches a video named pocdeeplink.mp4.

Root cause

The app accepts pscp://user/<user-id>/follow, and opening it performs the follow without a confirmation step. The web application's protection, which asks the visitor whether to follow, exists only on the web surface. The deep link is a second entry point to the same state-changing action, and it does not carry that protection. Because the deep link can be placed on a web page, a victim who clicks it follows the chosen user. The report does not describe any token, origin check or confirmation prompt on the app side that would have stopped it.

Impact

The result is a direct CSRF follow against any user in the Periscope Android app. An attacker who can get a logged-in victim to open a page and tap a link can make that victim follow an account of the attacker's choosing. The attack requires the victim to tap the link; it is not described as working without that interaction.

Fix

The design lesson it points to is that the app-side deep link handler for the follow action should not perform the action on the strength of the link alone. It should require an explicit confirmation inside the app, in the same way the web flow does, so that a link opened from a browser cannot silently change the victim's follow state.

Variants to test

The manifest in this report lists more hosts than the one that was exploited, and each is worth checking on a similar target:

  1. pscp://broadcast/<id>/... and pscpd://broadcast/<id>/...: try appending action-like path segments and see whether the app performs a state change (follow, subscribe, like) without a prompt.
  2. pscp://channel/<id>/... and pscpd://channel/<id>/...: same approach; a positive result is the app carrying out the action immediately on link open.
  3. pscp://discover/<id>/... and pscpd://discover/<id>/...: check whether any path under this host reaches an action rather than a view.
  4. The pscpd scheme alongside pscp: test both, since the manifest declares both for every host and they may be handled by different code paths.
  5. Other path segments under the user host beyond follow: the pathPrefix="/" accepts any path, so look for other verbs that map to state changes.

A positive result in each case is the same shape as this report: a link that, when opened from a browser on a device with the app installed and the user logged in, changes account state with no confirmation.

Hunting notes

This kind of bug hides at the boundary between a web product and its mobile app. The signal during recon is a manifest that declares custom schemes and broad pathPrefix values, especially when the same product has a web flow that asks for confirmation before an action. Comparing the two surfaces, the web link that prompts and the app link that does not, is what exposes the gap. The researcher demonstrated impact with a minimal HTML page and attached a video.

Glossary

  • Android manifest: the file inside an Android app that declares what the app can do, including which link schemes and hosts it accepts.
  • Bounty: a payment made by a company to a researcher who reports a valid security bug.
  • Browser: the program you use to view web pages, here Android Chrome.
  • Confirmation step: a question shown to the user before an action is carried out, so the action only happens if the user agrees.
  • CSRF (Cross-Site Request Forgery): a trick where a page you visit causes an action on your account that you did not intend, exploiting the fact that you are already logged in.
  • Custom scheme: the part of a link before :// that names an app rather than a web protocol, such as pscp.
  • Deep link: a link using a custom scheme that opens a specific screen or action inside an app.
  • Host: the part of a link right after the scheme, naming the site or, in a deep link, the kind of thing inside the app, such as user.
  • HTML: the language web pages are written in.
  • Logged in: signed in to an account, so the app or site knows who you are.
  • Path: the part of a link after the host, such as /follow.
  • pathPrefix: a manifest setting saying which paths the app accepts; / means any path.
  • Proof of concept (POC): a small demonstration that shows a bug is real.
  • Scheme: the part of a link before ://, such as https or pscp.
  • Severity: a rating of how serious a bug is, here low.
  • State-changing action: anything that alters your account rather than just displaying something, such as following, liking or posting.
  • User ID: a short identifier for an account, used in links in place of a name.
  • Victim: the person whose account is affected by the attack.

More by kunal94

View all

10 more disclosed reports, best first.

More from X / xAI

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.