Bypassing the patch for my previous Instagram bug.
Instagram stories with message replies disabled still showed a reply box once the on-screen keyboard appeared, so a user could reply anyway. After a UI-only fix, the author bypassed it by opening an earlier story with replies enabled and keeping the keyboard up as the restricted story loaded.
Published on medium.com
{{media:0}}
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.
Context
Instagram Stories let an account owner control who can reply to a story. One of the available settings is Allow message replies to "off", which is meant to stop viewers from sending a reply to that story. The bug described here is a logic and authorisation flaw in that restriction: a viewer could still reply to a story whose owner had turned replies off.
The write-up covers two rounds. The first was the original bug, which was fixed with a change on the client side. The second was a bypass of that fix, which was then addressed on the server side. Both rounds were reported to Facebook and both were rewarded.
Setup
The researcher used two phones. One phone was used to view the story and to hold the keyboard open; the other was used to send a WhatsApp message to the researcher's own account so that the keyboard would pop up on the first phone. No other tooling, versions or account details are given in the report.
The precondition for both rounds is a story whose owner has set Allow message replies to "off", viewed from an account that is not the owner.
Finding it
The researcher was looking at stories with replies disabled and noticed that the reply box appeared in the story whenever the keyboard popped up. The reply control was therefore tied to the presence of the keyboard rather than to the reply setting of the story. That is what made the restriction bypassable: the setting was enforced in the interface, not where the reply was actually accepted.
Exploitation
Round one: the original bug
- Open the Instagram story whose replies were disabled.
- While staying in that story, send yourself a WhatsApp message from a different phone so that the keyboard pops up over the story. The report notes that this step could be done in various other ways too.
- As soon as the keyboard pops up during the story, a reply box is present in that story.
- With the reply box present, reply to the story.
The researcher could reply to the story even though the owner had set Allow message replies to "off".
Facebook's fix for this round was to stop the reply button from showing up when the keyboard popped up during a story with replies disabled. The researcher received a three-digit bounty for this report.
Round two: bypassing the fix
Because the fix was only in the interface, the researcher expected the underlying behaviour to still be reachable and set out to make the keyboard appear again in a story with replies disabled. Several approaches did not work. The one that did relies on the transition between two consecutive stories:
- Open the previous story, the one on which replies were enabled, so that the next story shown automatically is the one with replies disabled.
- Pop up the keyboard in that previous story and leave it up until the story passes and the next story, with replies disabled, is shown.
- Because the keyboard was already up when the story advanced to the one with replies disabled, the keyboard stays up and a reply button is present.
- With the reply option present, reply to the story again.
This time Facebook implemented a server-side fix: even if someone managed to reply to a story with replies disabled, the sender gets an error that the message was not sent. The researcher received a four-digit bounty for this round.
Root cause
The first fix was in the interface: the reply button was suppressed when the keyboard appeared in a story with replies disabled. The first fix continued in the same model: it suppressed the reply button when the keyboard appeared in a story with replies disabled, but it did not change what the server would accept. The bypass works by opening the keyboard on a story with replies enabled and letting the next story, with replies disabled, appear while the keyboard stays up. The second fix was server-side: a reply to a story with replies disabled returns an error that the message was not sent.
Impact
A viewer could reply to a story whose owner had explicitly disabled message replies, in both the original form and after the first fix. The report does not describe any further consequence of the reply beyond it being delivered, and does not state which accounts or how many stories were affected. After the second fix, a reply to a story with replies disabled returns an error that the message was not sent.
Fix
The first fix was client-side: the reply button no longer appeared when the keyboard popped up during a story with replies disabled. The second fix was server-side: a reply to a story with replies disabled is rejected and the sender is told the message was not sent.
Variants to test
- Repeat the story transition trick on other reply or reaction controls that are gated by interface state: open a permissive item, raise the keyboard, and let the client advance to a restricted one. A positive result is a reply control appearing on the restricted item.
- Look for other settings enforced only by hiding a control, such as who can message, comment or share. A positive result is the action succeeding when the control is made to appear through an unrelated interface event.
- After any client-side fix, replay the original request path directly rather than through the interface. A positive result is the server accepting the action that the interface now hides.
- Test whether the server validates the reply setting at submission time, not only when the story is loaded. A positive result is a reply accepted after the setting was changed to off while the story was open.
What happened, in plain words
Instagram Stories are short posts that disappear after a day. The person who posts a story can decide whether other people are allowed to reply to it. One of the settings is Allow message replies to "off", which is supposed to stop anyone from sending a reply to that story.
This is the story of a bug that let a viewer reply to a story even when the owner had turned replies off. It was reported to Facebook, fixed, and then the researcher found a way around the fix. The second report was also rewarded. The whole thing is a logic flaw: the rule existed, but it was enforced in the wrong place.

The setup
The researcher used two phones. One phone was used to view the story and to keep the keyboard open. The other phone was used to send a WhatsApp message to the researcher's own account, which made the keyboard pop up on the first phone. No other tools, versions or account details are given in the report.
For both rounds, the starting point is the same: a story whose owner has set Allow message replies to "off", viewed from an account that is not the owner.
Finding it
The researcher was looking at stories with replies disabled and noticed something odd: the reply box appeared in the story whenever the keyboard popped up. The reply control was therefore tied to the presence of the keyboard, not to the reply setting of the story. That is what made the restriction bypassable: the setting was enforced in the interface, not where the reply was actually accepted.
Exploitation
Round one: the original bug
- Open the Instagram story whose replies were disabled.
- While staying in that story, send yourself a WhatsApp message from a different phone so that the keyboard pops up over the story. The report notes that this step could be done in various other ways too.
- As soon as the keyboard pops up during the story, a reply box is present in that story.
- With the reply box present, reply to the story.
The researcher could reply to the story even though the owner had set Allow message replies to "off".
Facebook's fix for this round was to stop the reply button from showing up when the keyboard popped up during a story with replies disabled. The researcher received a three-digit bounty for this report.
Round two: bypassing the fix
Because the fix was only in the interface, the researcher expected the underlying behaviour to still be reachable and set out to make the keyboard appear again in a story with replies disabled. Several approaches did not work. The one that did relies on the transition between two consecutive stories:
- Open the previous story, the one on which replies were enabled, so that the next story shown automatically is the one with replies disabled.
- Pop up the keyboard in that previous story and leave it up until the story passes and the next story, with replies disabled, is shown.
- Because the keyboard was already up when the story advanced to the one with replies disabled, the keyboard stays up and a reply button is present.
- With the reply option present, reply to the story again.
This time Facebook implemented a server-side fix: even if someone managed to reply to a story with replies disabled, the sender gets an error that the message was not sent. The researcher received a four-digit bounty for this round.
Root cause
The first fix was in the interface: the reply button was suppressed when the keyboard appeared in a story with replies disabled. The first fix continued in the same model: it suppressed the reply button when the keyboard appeared in a story with replies disabled, but it did not change what the server would accept. The bypass works by opening the keyboard on a story with replies enabled and letting the next story, with replies disabled, appear while the keyboard stays up. The second fix was server-side: a reply to a story with replies disabled returns an error that the message was not sent.
Impact
A viewer could reply to a story whose owner had explicitly disabled message replies, in both the original form and after the first fix. The report does not describe any further consequence of the reply beyond it being delivered, and does not state which accounts or how many stories were affected. After the second fix, a reply to a story with replies disabled returns an error that the message was not sent.
Fix
The first fix was client-side: the reply button no longer appeared when the keyboard popped up during a story with replies disabled. The second fix was server-side: a reply to a story with replies disabled is rejected and the sender is told the message was not sent.
Variants to test
- Repeat the story transition trick on other reply or reaction controls that are gated by interface state: open a permissive item, raise the keyboard, and let the client advance to a restricted one. A positive result is a reply control appearing on the restricted item.
- Look for other settings enforced only by hiding a control, such as who can message, comment or share. A positive result is the action succeeding when the control is made to appear through an unrelated interface event.
- After any client-side fix, replay the original request path directly rather than through the interface. A positive result is the server accepting the action that the interface now hides.
- Test whether the server validates the reply setting at submission time, not only when the story is loaded. A positive result is a reply accepted after the setting was changed to off while the story was open.
Glossary
- API: A set of rules that lets one piece of software talk to another. Think of it as a waiter taking your order to the kitchen: you do not go into the kitchen yourself, you tell the waiter what you want and the waiter brings back the result.
- Bounty: A reward, usually money, paid by a company to someone who reports a security problem to them.
- Bug: A mistake in software that makes it behave in a way its creators did not intend.
- Bypass: A way of getting around a fix or a restriction, so that the original problem still happens even after someone tried to stop it.
- Client: The program on your device (a phone app or a browser) that you use to interact with a service. It talks to the server behind the scenes.
- Client-side: Something that happens or is enforced in the client, on the user's device. It can often be changed or avoided by the user.
- Cookie: A small piece of data a website stores in your browser so it can remember who you are between visits. It is like a wristband at an event that lets staff recognise you without asking for your ID every time.
- CVSS: A standard scoring system for how severe a security vulnerability is. The report does not give a score.
- Endpoint: A specific address (URL) that a client sends requests to when it wants the server to do something.
- Exploit: The act of using a bug to make a system do something it should not do.
- Fix: A change made to software to close a bug.
- Header: Extra information sent along with a web request or response, such as what type of data is being sent or who is asking.
- Interface (UI): The parts of an app you see and touch: buttons, boxes, menus. A UI-based fix changes what you see, not what the server will accept.
- Logic flaw: A bug where the software follows its rules but the rules themselves are wrong or incomplete, so it allows something it should not.
- Parameter: A named value sent with a request, such as an ID or a setting.
- Payload: The part of a request that carries the data you are sending, for example the text of a message.
- Request: A message a client sends to a server asking it to do something, such as fetch a page or send a reply.
- Response: The message a server sends back after a request.
- Server: The computer (or group of computers) that stores data and does the real work behind a service. It is the kitchen in the restaurant comparison.
- Server-side: Something that happens or is enforced on the server. It is much harder for a user to avoid than a client-side check.
- Session: A period during which a server remembers who you are, usually with the help of a cookie or token.
- Story: A post on Instagram that disappears after 24 hours.
- Token: A piece of data, often a long string, that proves who you are or grants access, similar to a ticket. It should be kept secret.
- UI: Short for user interface, the visible part of an app.
- Vulnerability: A weakness in software that can be used to cause harm or break a rule.
- WhatsApp: A messaging app used here only as a way to make the phone's keyboard appear.