Skip to content
Business logic Disclosed report Intermediate

[Bypass fixed #664038 and #519059] Application settings change settings that have been set by the user

Changing a hashtag setting in the Twitter mobile app unintentionally alters the 'protected tweets' setting that was previously configured via the web or Lite interface. This could cause a user's protected tweets to become public without their knowledge.

jaka-tingkir Follow with abqari25

Originally disclosed on HackerOne

  • Triaged in 4 days
  • Fixed in 40 days
  • Paid in 20 days
  • Disclosed after 21 months

I have reported this bug in report #681361 so that you make a FULL fix, but you refused (considered duplicate) and I have to wait for report #664038 to be resolved, now I come again to report the bug.

The settings for "protected tweets" that have been set from another application accidentally change after the user changes the settings on the twitter application.

Step To Reproduction

  1. Set "protected tweets" from the Twitter Web or Twitter Lite application
  2. Confirm and make sure that "tweet is protected" from the web or lite
  3. then open the twitter application and change the hashtag (#) setting from OFF to ON

This method will trigger problems in the settings between the web and Twitter applications so that what has been set from outside the Twitter application can change.

##the bug in this report has the same impact as report #664038 and #519059 but this bugs can still be triggered even though one of these bugs in reports has been fixed.

I say that because the bug in report #664038 and #519059 has been fixed and I can trigger the bug again in new versi app twitter 8.16.0 release 00

my conclusion this bug is ==Bypassing significant controls== because after this bug is fixed it can be triggered again

Impact

accidentally the "protected tweet" setting OFF and user tweets seen publicly

The original report as published on HackerOne, by jaka-tingkir. 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

The target is Twitter, and the feature under discussion is the account setting that controls whether a user's tweets are protected. When protected tweets are enabled, the user's tweets are not shown publicly. The setting can be changed from several surfaces: the Twitter Web application, Twitter Lite, and the Twitter mobile application. The report is about those surfaces disagreeing with each other.

The researcher frames the issue as a bug that can still be triggered after earlier fixes. Two earlier reports, #664038 and #519059, covered the same class of problem, and the researcher says both had been fixed. The claim here is that the underlying behaviour could still be triggered on a newer client build, so the fix was incomplete rather than absent.

Setup

The report gives very little setup detail. The only version information it states is the client build on which the bug could be triggered again: Twitter app 8.16.0 release 00. No accounts, roles, tooling or interception setup are described. The precondition that matters is simply that the user has more than one Twitter surface available, in this case the web or Lite interface plus the mobile application, and that the protected tweets setting has been enabled from one of them.

Finding it

The researcher had already reported the same behaviour in report #681361, asking for a full fix. That report was refused as a duplicate, and the researcher was told to wait for #664038 to be resolved. After #664038 and #519059 were fixed, the researcher tested again and found the behaviour still reproducible on app version 8.16.0 release 00.

The observation is that a setting configured from one application is changed by an unrelated action in another application. Specifically, the protected tweets setting that was set from another application changes accidentally after the user changes settings in the Twitter application. That cross-surface inconsistency is what looked wrong: a privacy setting should not be silently altered by toggling a different option elsewhere.

Exploitation

Step 1: enable protected tweets from Web or Lite

Set the protected tweets option from the Twitter Web application or from Twitter Lite.

Step 2: confirm the setting took effect

Confirm and make sure that the tweet is protected from the web or Lite interface. This establishes the baseline state that the later steps are expected to preserve.

Step 3: toggle an unrelated setting in the mobile app

Open the Twitter application and change the hashtag (#) setting from OFF to ON.

According to the report, this triggers a problem in the settings shared between the web and the Twitter application, so that what has been set from outside the Twitter application can change. In other words, flipping the hashtag option in the app is enough to disturb the protected tweets value that was configured on the web or Lite side.

The report contains no HTTP requests, responses, parameters or headers, so there is nothing further to reproduce at the protocol level from the text alone.

Root cause

The report does not describe the implementation, so the cause can only be inferred. The behaviour is consistent with the two clients writing settings through a shared settings object or endpoint where one client sends a full settings payload built from its own local state. If the mobile app's local copy of the protected tweets value is stale, or if it does not model that field at all, saving the hashtag change can overwrite the value that was set elsewhere. The behaviour fits a state synchronisation problem rather than a memory-safety or injection flaw.

Why the earlier fixes did not stop it: the researcher's position is that the fixes for #664038 and #519059 addressed the specific paths that were reported, not the underlying cross-client settings behaviour. Because the same outcome could be produced through a different setting change in a newer client build, the control was bypassed. The report states this as the researcher's conclusion rather than as a verified code-level analysis.

Impact

The stated impact is that the protected tweets setting can end up OFF accidentally, and the user's tweets are then seen publicly. The exposure is to the account owner: a user who believes their tweets are protected may have that protection silently removed by an ordinary settings change in the mobile app. The report does not describe any attacker-controlled path, so this reads as a privacy failure caused by client behaviour rather than something an external party can trigger directly.

Fix

What it argues for is a full fix rather than a patch for the individual reproduction steps: the settings synchronisation between the web, Lite and mobile clients should preserve values set on other surfaces when an unrelated setting is saved. Whether that was implemented is not stated in the report.

Variants to test

  1. Toggle other unrelated settings in the mobile app after enabling protected tweets on the web, and check whether the protected state survives. A positive result is the protected flag flipping without the user touching it.
  2. Reverse the direction: set protected tweets in the mobile app, then change a setting on web or Lite, and re-check the value on both surfaces. A positive result is the same silent overwrite in the opposite direction.
  3. Repeat on a fresh client build after any fix, since the point of this report is that a fix for one path did not cover the others. A positive result is the behaviour returning on a version released after the fix.
  4. Test other privacy-relevant settings that exist on multiple surfaces, such as discoverability or photo tagging, for the same cross-client overwrite pattern.

Hunting notes

This kind of bug hides in features that are exposed on several clients at once: web, Lite, iOS, Android and any legacy endpoints still in use. The signal during recon is a settings screen whose values are written through a shared save call, especially where clients are released on different schedules and may hold stale local state. The researcher showed impact by tying the behaviour to a concrete privacy outcome, tweets becoming public, and by demonstrating that it survived the fixes for the two earlier reports, which is the basis on which the researcher argues it is a separate issue.

The reproduction needs only two clients and a settings toggle, with no tooling or protocol work described.

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

What happened, in plain words

Twitter lets each account decide whether its tweets are protected. When protection is on, the account's tweets are not shown publicly. That switch can be flipped from several places: the normal website, the lightweight version of the site called Twitter Lite, and the mobile app.

The problem in this report is that those places do not agree with each other. You turn protection on in one place, then change a completely unrelated option in another place, and the protection quietly turns itself off. The user never asked for that, and may never notice, so tweets they believe are private can end up visible to everyone.

The researcher had already reported this behaviour once before, in report #681361, and asked for a complete fix. That report was refused as a duplicate, and the researcher was told to wait for report #664038 to be resolved. Two earlier reports, #664038 and #519059, described the same kind of problem, and the researcher says both were fixed. The claim in this report is that the behaviour could still be triggered on a newer build of the mobile app, version 8.16.0 release 00. In other words, the fix covered the exact steps that had been reported before, but not the underlying behaviour, so the protection could still be lost through a slightly different route.

A useful comparison: imagine a shared shopping list on a fridge. Two people each keep their own paper copy. One person crosses milk off their copy and copies the whole list back onto the fridge, including the old, uncrossed milk line from their paper. The other person's change is gone, even though nobody meant to undo it. Here the two "paper copies" are the web or Lite interface and the mobile app, and the "list" is the account's settings.

The product and the feature

Twitter is a social network where people post short messages called tweets. Every account has a setting that controls whether those tweets are protected. With protection on, the tweets are not shown publicly. This is a privacy control, and privacy controls are expected to stay exactly as the user left them.

The same account can be used from more than one client. A client is simply a program that talks to the service: the website in your browser, the Lite website, or the phone app. Each client has its own settings screen, and all of them are supposed to change the same account settings on the server.

The setup

The report gives very little setup detail. The only version information it states is the client build on which the bug could be triggered again: Twitter app 8.16.0 release 00. No accounts, roles, tools or traffic interception are described.

The only precondition that matters is that the user has more than one Twitter surface available, in this case the web or Lite interface plus the mobile application, and that the protected tweets setting has been enabled from one of them. You do not need any special software to try this: a browser and a phone with the app are enough.

Finding it

The researcher had already reported the same behaviour in report #681361, asking for a full fix. That report was refused as a duplicate, and the researcher was told to wait for #664038 to be resolved. After #664038 and #519059 were fixed, the researcher tested again and found the behaviour still reproducible on app version 8.16.0 release 00.

The observation is that a setting configured from one application is changed by an unrelated action in another application. Specifically, the protected tweets setting that was set from another application changes accidentally after the user changes settings in the Twitter application. That cross-surface inconsistency is what looked wrong: a privacy setting should not be silently altered by toggling a different option elsewhere.

Reproducing it

Step 1: enable protected tweets from Web or Lite

Set the protected tweets option from the Twitter Web application or from Twitter Lite. This is the starting point: you are deliberately turning the privacy control on, in one client, so that you have a known state to watch.

Step 2: confirm the setting took effect

Confirm and make sure that the tweet is protected from the web or Lite interface. This establishes the baseline state that the later steps are expected to preserve. If you skip this check, you cannot tell whether the later change was caused by the app or by the setting never having been saved in the first place.

Step 3: toggle an unrelated setting in the mobile app

Open the Twitter application and change the hashtag (#) setting from OFF to ON. The hashtag setting has nothing to do with protected tweets, which is exactly the point: an unrelated action should not touch a privacy control.

According to the report, this triggers a problem in the settings shared between the web and the Twitter application, so that what has been set from outside the Twitter application can change. In other words, flipping the hashtag option in the app is enough to disturb the protected tweets value that was configured on the web or Lite side.

The report contains no HTTP requests, responses, parameters or headers, so there is nothing further to reproduce at the protocol level from the text alone.

Why it probably happens

The report does not describe the implementation, so the cause can only be inferred. The behaviour is consistent with the two clients writing settings through a shared settings object or endpoint where one client sends a full settings payload built from its own local state. If the mobile app's local copy of the protected tweets value is stale, or if it does not model that field at all, saving the hashtag change can overwrite the value that was set elsewhere. This is the fridge-list situation again: the app saves everything it knows, including an old value for a field it was not asked to change.

The weakness is a business logic error. That term means the flaw is not in the code crashing or in an injection trick, but in the rules the application follows: the sequence of allowed actions produces a result the designers did not intend. A state synchronisation problem, where two clients keep their own copies of the same settings, is a classic example.

Why the earlier fixes did not stop it: the researcher's position is that the fixes for #664038 and #519059 addressed the specific paths that were reported, not the underlying cross-client settings behaviour. Because the same outcome could be produced through a different setting change in a newer client build, the control was bypassed. The report states this as the researcher's conclusion rather than as a verified code-level analysis.

Impact

The stated impact is that the protected tweets setting can end up OFF accidentally, and the user's tweets are then seen publicly. The exposure is to the account owner: a user who believes their tweets are protected may have that protection silently removed by an ordinary settings change in the mobile app. The report does not describe any attacker-controlled path, so this reads as a privacy failure caused by client behaviour rather than something an external party can trigger directly.

Fix

What it argues for is a full fix rather than a patch for the individual reproduction steps: the settings synchronisation between the web, Lite and mobile clients should preserve values set on other surfaces when an unrelated setting is saved. Whether that was implemented is not stated in the report.

Variants to test

  1. Toggle other unrelated settings in the mobile app after enabling protected tweets on the web, and check whether the protected state survives. A positive result is the protected flag flipping without the user touching it.
  2. Reverse the direction: set protected tweets in the mobile app, then change a setting on web or Lite, and re-check the value on both surfaces. A positive result is the same silent overwrite in the opposite direction.
  3. Repeat on a fresh client build after any fix, since the point of this report is that a fix for one path did not cover the others. A positive result is the behaviour returning on a version released after the fix.
  4. Test other privacy-relevant settings that exist on multiple surfaces, such as discoverability or photo tagging, for the same cross-client overwrite pattern.

Hunting notes

This kind of bug hides in features that are exposed on several clients at once: web, Lite, iOS, Android and any legacy endpoints still in use. The signal during recon is a settings screen whose values are written through a shared save call, especially where clients are released on different schedules and may hold stale local state. The researcher showed impact by tying the behaviour to a concrete privacy outcome, tweets becoming public, and by demonstrating that it survived the fixes for the two earlier reports, which is the basis on which the researcher argues it is a separate issue.

The reproduction needs only two clients and a settings toggle, with no tooling or protocol work described.

Glossary

  • API: the set of addresses and rules a program uses to talk to a service, like a waiter taking orders between you and the kitchen.
  • Bypass: getting past a protection or a fix, so the problem still happens even though someone tried to stop it.
  • Business logic error: a flaw in the rules the application follows, where allowed actions combine into an unintended result, rather than a crash or an injection trick.
  • Client: the program you use to reach a service, such as a website in a browser or a phone app.
  • Cross-client: involving more than one client, for example the website and the mobile app.
  • Duplicate: a report describing a problem that has already been reported, which platforms often close without a separate reward.
  • Endpoint: a specific address on a server that a client sends a request to.
  • Header: extra information sent alongside a web request or response, such as what kind of content is expected.
  • HTTP request: the message a browser or app sends to a server to ask for something or to submit data.
  • HTTP response: the message the server sends back.
  • Parameter: a named value sent with a request, for example a setting name and its new value.
  • Payload: the body of data sent in a request, as opposed to the address and headers.
  • Privacy setting: an option that controls who can see something about you or your content.
  • Protected tweets: the X setting that, when on, keeps an account's tweets from being shown publicly.
  • Recon: the early stage of testing where you look around a product to understand its features and spot weak points.
  • Reproduction steps: the exact sequence of actions that makes a bug happen, so someone else can confirm it.
  • Root cause: the underlying reason a bug happens, as opposed to the visible symptom.
  • Severity: a rating of how serious a bug is, here medium.
  • Stale state: an old copy of information that no longer matches what is actually stored on the server.
  • State synchronisation: keeping several copies of the same information in agreement with each other.
  • Surface: one of the ways a user reaches the same service, such as the website, Lite or the mobile app.
  • Twitter Lite: the lightweight version of the Twitter website, designed to load with less data.
  • Vulnerability class: the category a bug belongs to, such as business logic error or injection.

More by jaka-tingkir

View all

7 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.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.