Skip to content
DoS Write-up Beginner

How I was able to remotely crash any android user’s instagram app and was paid a mere 500$ for it.

A message consisting of 40 emojis separated by spaces caused the Instagram Android app to crash instantly when received, without the victim opening it. The attacker could also make previous messages, the message requests folder, or the entire DM folder inaccessible to the victim.

Waleed Ahmed Follow

Published on medium.com

Bounty$500 View original

{{media:0}}

Waleed Ahmed, on medium.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.

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. 4 min read.

Context

Instagram's Android app has a direct message (DM) feature. Messages between two users who follow each other appear in the normal DM folder, while messages from someone the recipient does not follow land in a separate message requests folder. The app renders these conversations as the user scrolls through them.

The report describes a denial of service in that rendering path: a single crafted message, sent to a target, crashed the Instagram Android app on the recipient's device. The victim did not need to open the message. The researcher is Waleed Ahmed, who describes himself as a 16 year old from Pakistan, and the report was published on 15 February 2018.

Setup

The testing was done with Instagram accounts controlled by the researcher and with the Instagram Android app. Two app versions mattered:

  • The current Android Instagram version, on which the crafted conversation crashed the app.
  • An older version of the Android Instagram app, downloaded specifically so the researcher could scroll the conversation normally and read the offending message.

The researcher also tested on multiple Android phones. Facebook staff created an Instagram account for him on 1 December so he could demonstrate the bug.

Finding it

While scrolling through old chats in his DM folder, the researcher noticed that one particular conversation crashed the app as soon as he tried to scroll up in it. He suspected that a specific message in that chat was responsible on the newer app version.

To see the message, he installed an older version of the Android Instagram app. On that version scrolling worked normally, and he could read the message that was crashing the newer build. The message was 40 emojis with a space between any two emojis.

He then sent that same message from his old Instagram app to other accounts he controlled. In every case the app crashed instantly. The same happened on multiple Android phones.

Exploitation

Step 1: identify the crashing message

Scroll up in the affected conversation on the current app version and observe the crash, then open the same conversation on an older app version to read the message. The message content is 40 emojis, each separated from the next by a space.

Step 2: send the message to a target

Send that message from the attacker's account to the victim's account. The victim does not have to open the message; the app crashes without the message being opened.

Step 3: observe the secondary effects

The researcher reports three further effects, all of which he says he tested personally and included in his Facebook bug report:

  1. Previous messages become inaccessible. After the attacker sends the attack message, all earlier messages between attacker and victim become inaccessible to the victim, who cannot see them.
  2. The message requests folder becomes inaccessible. If the attacker sends the message to a user who does not follow him, it lands in that user's message requests folder. When the victim opens the message requests folder, it gets stuck on the loading icon.
  3. The entire DM folder becomes inaccessible. This happens when the user logs in after the attacker has sent the message: the Instagram DM folder never loads and stays on the loading icon.

Timeline

The report gives the following dates:

Date Event
28 November Initial report
1 December Facebook staff creates an Instagram account for the researcher to demonstrate the bug
6 December Acknowledgement of the bug
14 December Bug fixed
20 December Bug bounty of 500 USD issued
20 December Researcher writes a follow up asking whether the bounty correctly reflects the impact
22 December Facebook replies that it has determined this is the appropriate bounty for this bug
Image for post
Image for post From the original on medium.com
Image for post
Image for post

The report also includes the researcher's conversation with the Facebook staff member who created the demonstration account.

Image for post
Image for post From the original on medium.com

Root cause

The report does not describe the underlying code or the exact rendering failure. What it establishes is that a message consisting of 40 emojis separated by spaces reliably crashes the Android client. and that the crash also blocks access to the surrounding conversation and, in some cases, the whole DM folder. The precise defect in the message rendering path is not stated.

Impact

An attacker who can send a direct message to a victim can crash that victim's Instagram Android app without the victim opening the message. The same message can make the earlier conversation history inaccessible, make the message requests folder hang on its loading icon, and, when the victim logs in after the message was sent, prevent the DM folder from loading at all.

The researcher notes the scale this could reach: bots sending millions of such messages to millions of Instagram users would disrupt the app for those users. Facebook fixed the bug on 14 December and awarded 500 USD. The researcher argued the bounty did not reflect the impact; Facebook replied on 22 December that it had determined this was the appropriate bounty.

Fix

The report states that the bug was fixed on 14 December but does not describe the change that was made.

Variants to test

  • Other emoji sequences. Try different emoji counts, different emoji, and different separator characters in a DM to an account you control.
  • Other message types.
  • Message requests path.
  • Login state.
  • Other clients.

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. 8 min read.

What happened, in plain words

A 16 year old researcher from Pakistan, Waleed Ahmed, found that a single direct message could crash the Instagram app on any Android phone. The message was made of emojis. The person receiving it did not have to tap it or open it: the app crashed just because the message existed in the conversation.

The same message could also make older chats disappear from view, make the message requests folder hang forever on its loading spinner, and, if the victim logged in after the message had arrived, stop the whole direct message folder from loading.

He reported it to Facebook, which owns Instagram. Facebook fixed the bug and paid him 500 US dollars. He thought that was too little for the impact, asked for a review, and Facebook replied that 500 dollars was the appropriate amount.

This article walks through how he found it, what he tested, and what happened afterwards, explaining each idea from scratch along the way.

The pieces you need to know

Before the story makes sense, here are a few everyday ideas.

  • An app is a program you install on a phone. Instagram's Android app is the version of Instagram that runs on Android phones, as opposed to the iPhone version or the website you open in a browser.
  • A direct message (DM) is a private message sent from one Instagram account to another, like a text message inside the app. Instagram keeps these in a DM folder, which is a list of conversations you can scroll through.
  • A message request is what happens when someone you do not follow sends you a DM. Instead of landing in your normal DM folder, it goes into a separate message requests folder, so strangers cannot fill your inbox. You can choose to accept it or not.
  • Rendering is the work the app does to draw something on the screen. When you scroll a conversation, the app takes the stored messages and turns them into text bubbles, pictures and emojis you can see. If the app is given something it cannot draw properly, that drawing step can fail, and a failure that the app cannot recover from is a crash: the app closes or freezes.
  • A denial of service (DoS) is an attack that does not steal anything but stops something from working. Think of blocking a shop doorway so customers cannot get in: nothing is taken, but the shop cannot be used. Here the "shop" is the app and the "doorway" is the message rendering.
  • A bug bounty is a programme where a company pays people who report security problems in its products, instead of punishing them. The amount paid is the bounty.
  • A vulnerability is a weakness in software that lets someone make it behave in a way its makers did not intend.
Waleed Ahmed
Waleed Ahmed From the original on medium.com

Setting up the test

The researcher tested using Instagram accounts he controlled himself, and the Instagram Android app. Two versions of the app mattered:

  1. The current Android Instagram version, the normal one everyone had installed. On this version, the crafted conversation crashed the app.
  2. An older version of the Android Instagram app, which he downloaded on purpose. On this version, scrolling worked normally, so he could read the message that was breaking the newer app.

Having an old copy of an app is a common trick: when something breaks in the new version, the old version often still works, so you can look at the same data without the app falling over. It is a bit like keeping last year's map when the new edition has a printing error.

He also tried the same thing on several different Android phones, to check the crash was not specific to one device. Facebook staff created an Instagram account for him on 1 December so he could demonstrate the bug to them.

How he found it

One day he was scrolling through old chats in his DM folder. In one particular conversation, as soon as he tried to scroll up, the app crashed. He guessed that a specific message in that chat was the cause, and that it only broke the newer app version.

To actually see the message, he installed the older version of the Android Instagram app. There, scrolling worked normally, and he could read the message that was crashing the newer build. The message was 40 emojis with a space between any two emojis.

He then sent that same message from his old Instagram app to other accounts he controlled. Every time, the app crashed instantly. The same happened on multiple Android phones.

Exploitation, step by step

Step 1: identify the crashing message

The first job is to find out which message is the problem. You scroll up in the affected conversation on the current app version and watch the crash happen. Then you open the same conversation on an older app version, where scrolling works, and read the message. The content is 40 emojis, each separated from the next by a space.

Why do it this way? The new app crashes before it can show you the message, so it hides the evidence. The old app does not crash, so it shows you the evidence. Comparing the two tells you exactly what the trigger is.

Step 2: send the message to a target

Next, send that message from the attacker's account to the victim's account. The victim does not have to open the message. The victim does not have to open the message for the app to crash.

Why does this matter? Most people assume they are safe as long as they do not tap a suspicious link. Here, doing nothing at all is enough. The message only has to exist in the conversation for the app to fall over while drawing it.

Step 3: observe the secondary effects

The researcher reports three further effects. He says he tested all of them personally and included them in his Facebook bug report.

  1. Previous messages become inaccessible. After the attacker sends the attack message, all earlier messages between attacker and victim become inaccessible to the victim, who cannot see them.
  2. The message requests folder becomes inaccessible. If the attacker sends the message to a user who does not follow him, it lands in that user's message requests folder. When the victim opens that folder, it gets stuck on the loading icon.
  3. The entire DM folder becomes inaccessible. This happens when the user logs in after the attacker has sent the message: the Instagram DM folder never loads and stays on the loading icon.

Timeline

The report gives these dates:

Date Event
28 November Initial report
1 December Facebook staff creates an Instagram account for the researcher to demonstrate the bug
6 December Acknowledgement of the bug
14 December Bug fixed
20 December Bug bounty of 500 USD issued
20 December Researcher writes a follow up asking whether the bounty correctly reflects the impact
22 December Facebook replies that it has determined this is the appropriate bounty for this bug
Image for post
Image for post From the original on medium.com
Image for post
Image for post

The report also includes the researcher's conversation with the Facebook staff member who created the demonstration account.

Image for post
Image for post From the original on medium.com

Why it happened

The report does not describe the underlying code or the exact rendering failure. What it establishes is that a message made of 40 emojis separated by spaces reliably crashes the Android client, and that the crash also blocks access to the surrounding conversation and, in some cases, the whole DM folder. The precise defect in the message rendering path is not stated.

In general terms, apps that draw text have to handle every possible character, including emojis, which are more complicated than plain letters because many of them are built from several pieces joined together. When a drawing routine meets a combination it was not written to expect, it can fail. The report does not say which combination failed or why.

Impact

An attacker who can send a direct message to a victim can crash that victim's Instagram Android app without the victim opening the message. The same message can make the earlier conversation history inaccessible, make the message requests folder hang on its loading icon, and, when the victim logs in after the message was sent, prevent the DM folder from loading at all.

The researcher notes the scale this could reach: bots sending millions of such messages to millions of Instagram users would disrupt the app for those users. A bot here simply means an automated account that sends messages without a human typing them.

Facebook fixed the bug on 14 December and awarded 500 USD. The researcher argued the bounty did not reflect the impact. Facebook replied on 22 December that it had determined this was the appropriate bounty.

The fix

The report states that the bug was fixed on 14 December but does not describe the change that was made.

Variants to test

Only ever test against accounts you own or have permission to test.

  • Other emoji sequences.
  • Other message types. Unicode is the standard that gives every character in every writing system a number, and combining characters and zero width joiners are invisible pieces used to build complex characters such as many emojis.
  • Message requests path.
  • Login state.
  • Other clients. iOS is Apple's phone operating system, and the web client is Instagram opened in a browser.

Glossary

  • Android: Google's operating system for phones; the Instagram Android app is the version built for it.
  • App: a program installed on a phone or computer.
  • Bot: an automated account that performs actions, such as sending messages, without a human doing each one.
  • Bug: a mistake in software that makes it behave in an unintended way.
  • Bug bounty: a programme that pays people for reporting security problems to a company.
  • Bounty: the amount of money paid for a reported bug.
  • Combining characters: invisible characters that attach to another character to build a new one, used in many scripts and emojis.
  • Crash: when a program stops working or closes because it hit something it could not handle.
  • Denial of service (DoS): an attack that stops a service or app from working, without stealing anything.
  • Direct message (DM): a private message between two accounts inside an app.
  • DM folder: the list of your private conversations in the app.
  • Emoji: a picture-like character, such as a smiley face, stored as text.
  • iOS: Apple's operating system for iPhone.
  • Message request: a DM from someone you do not follow, held in a separate folder until you accept it.
  • Message requests folder: the folder that holds message requests.
  • Payload: the content you send in an attack, here the crafted message.
  • Rendering: the work an app does to draw stored data on the screen.
  • Unicode: the standard that assigns a number to every character in every writing system.
  • Vulnerability: a weakness in software that lets someone make it behave in an unintended way.
  • Web client: a service used through a browser instead of an installed app.
  • Zero width joiner: an invisible character used to join other characters into one, common in emojis.

More from Meta

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.