Skip to content
Info disclosure Disclosed report Beginner

The Deleted Polls is Still Accessable after 30 Days

A deleted Twitter poll remained accessible through a direct request even though it was no longer shown in the user interface, and this persisted beyond the period stated in Twitter's policy. An attacker who knew or guessed the poll's address could therefore still read content that the author had deleted, compromising the author's privacy.

eissen5c Follow

Originally disclosed on HackerOne

Bounty$560 High View original
  • Triaged in 8 days
  • Fixed in 2.1 years
  • Paid in 27 days
  • Disclosed after 2.3 years

Summary by the program

The researcher demonstrated a vulnerability that makes it possible for Twitter users to access a Poll after it has been deleted by user that originally posted the Poll. Though it was not visible or accessible via the user interface, it could still be accessed for an extended period of time beyond what the Twitter policy states. This behavior made it possible to compromise the privacy of the user's account that originally posted the Poll if the content was not deleted within a specified amount of time.

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

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 5 min read.

What the report shows

The target is the Twitter polls feature, on the *.twitter.com asset of the X / xAI program on HackerOne. The researcher, eissen5c, found that a poll stays reachable after the user who created it has deleted it. The poll disappears from the user interface, so nothing in the normal product flow suggests it still exists, but the underlying resource can still be retrieved for a period that goes beyond what the Twitter policy allows.

The available text is a summary written by the program. What it establishes is the sequence of states: a user posts a poll, the user deletes it, the poll is no longer visible or accessible through the interface, and yet it remains accessible for an extended period. The report does not include the request that retrieves the deleted poll, the endpoint, any parameter names, headers, versions or response bodies, so there is no payload to reproduce here.

The outcome recorded for the report is a high severity rating, a weakness classified as Privacy Violation, and a bounty of 560.00 USD. The report was disclosed on 2023-02-13. The text does not describe a specific fix or the length of the retention window beyond saying it exceeded the policy.

Root cause

The report does not describe the cause. The interface stops rendering the poll, and the read paths that back the interface stop returning it, . In other words, the delete operation and the read authorisation check are not kept in step: the object is hidden from one surface while remaining served by another.

This is a common shape for privacy bugs. The product team treats deletion as a presentation concern, the storage layer keeps the row, and any endpoint that fetches by ID without re-checking the deleted state will happily return it. The report does not describe the mechanism at all.

Impact

Within the report's own framing, the impact is a privacy violation against the account that posted the poll. A poll its author deleted could still be accessed for longer than the policy allows. The program notes this could compromise the privacy of the user's account if the content was not deleted within the specified amount of time.

The report does not claim that deleted polls were exposed to the public at large, that they were indexed, or that any particular user was affected. It describes an access path that exists beyond the interface, not a mass disclosure.

How this kind of bug works

Deletion in most web applications is soft: a flag, a timestamp or a status column is set, and reads are expected to filter on it. The bug class appears when at least one read path forgets that filter. Typical offenders are endpoints that fetch a single object by ID, internal or mobile APIs that were written before the deletion semantics were defined, cached copies, search or feed indexes that are updated asynchronously, and secondary representations such as embeds, previews or activity streams.

The reason it persists is architectural: the same object is served by several code paths, and the rule "do not return deleted objects" lives in each of them separately instead of in one place. A central authorisation or visibility check, applied at the data access layer, is what prevents the drift. Where that is not possible, the delete operation should also invalidate caches and remove the object from any index that can serve it, and reads should treat a deleted object the same way they treat one that never existed.

How to test for it

A general method for this class:

  1. Create an object you control, such as a post, comment, poll or upload, and record its identifier and any URL that renders it.
  2. Capture the requests used to view it while it is live, including any API calls the interface makes in the background.
  3. Delete the object through the normal interface and confirm it is gone from the UI.
  4. Replay the captured read requests, and also try direct lookups by identifier against the API, with the same session and then with a different account that should not see it.
  5. Repeat after a delay, since some systems purge asynchronously, and check secondary surfaces: embeds, previews, feeds, search, notifications and exports.

A positive result is a response that still contains the object's content, or metadata that reveals it, after deletion. A response that returns a tombstone, an empty body, a 404 or a permission error is the expected behaviour and not a finding. Common false positives are cached responses from your own browser, stale client-side state, and objects that were never actually deleted because the delete request failed silently. Confirm with a fresh session and a second account before reporting, and note the exact time between deletion and the successful retrieval, because the retention window is usually the core of the impact.

How it is fixed

Standard fixes are to enforce the deleted state in the data access layer so every read path inherits it, to make delete operations invalidate caches and remove the object from indexes and feeds, and to return the same not-found response for deleted objects as for objects that never existed, so the response does not confirm the object once existed. Where a retention period is promised by policy, the purge job should be verified against that promise, and the policy should match what the system actually does.

Hunting notes

This bug class tends to hide in features with their own storage and their own read endpoints: polls, stories, drafts, attachments, direct messages, saved items and anything with a shareable identifier. Recon signals worth watching are identifiers that appear in URLs and API paths, mobile or legacy API hosts that mirror the web product, and features where the UI hides content without an obvious server-side delete. Showing impact means demonstrating retrieval after deletion with a clean session, stating the elapsed time, and tying it to the program's stated retention policy so the reviewer can see the gap rather than a single odd response.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 6 min read.

What happened, in plain words

Twitter (the asset is listed as *.twitter.com in the X / xAI program on HackerOne) has a feature called Polls. A poll is a question with a few answer options that other users can vote on. The person who creates a poll can later delete it, and once deleted it should be gone.

The researcher, eissen5c, found that a deleted poll was not really gone. It disappeared from the normal interface, so nothing on screen suggested it still existed, but the poll could still be retrieved for a period longer than Twitter's own policy allows. The program's summary describes this as a privacy problem: if the content is not actually removed within the time the policy promises, the privacy of the account that posted the poll can be compromised.

The available text is a summary written by the program. It does not include the request used to fetch the deleted poll, the address (endpoint) it was sent to, any parameter names, headers, software versions or response contents. So there is no payload to copy here and no reproduction recipe. What the report does establish is the sequence of states:

  1. A user posts a poll.
  2. The user deletes it.
  3. The poll is no longer visible or accessible through the interface.
  4. The poll is nevertheless still accessible for an extended period.

To understand why that matters, it helps to know what a request is. When you click something in a browser, the browser sends a request to a server: a message asking for a page or for data. The server answers with a response. The interface you see is just one way of making those requests. If the interface stops offering a way to ask for the poll, the poll can still exist on the server.

The outcome recorded for the report is a high severity rating, a weakness classified as Privacy Violation, and a bounty of 560.00 USD. It was disclosed on 2023-02-13. The report does not describe a specific fix, and it does not give the length of the retention window beyond saying it exceeded the policy.

In general, how this kind of bug works

In general, when a website lets you delete something, the deletion is often "soft". Instead of wiping the data from storage, the application sets a marker on the record, such as a flag or a timestamp, meaning "this is deleted". Every part of the code that reads data is then expected to check that marker and skip deleted items. Think of a library that keeps a withdrawn book on the shelf but writes "withdrawn" in the catalogue: it works only as long as every librarian checks the catalogue before handing the book out.

The bug appears when at least one read path forgets the check. Typical places this happens:

  • endpoints that fetch a single item by its identifier;
  • older or mobile APIs written before the deletion rules were settled;
  • cached copies of pages or data;
  • search indexes and feeds that are updated later, not instantly;
  • secondary views such as embeds, previews or activity streams.

The underlying reason is architectural. The same object is served by several code paths, and the rule "do not return deleted objects" is written into each of them separately instead of in one central place. A single visibility or permission check applied where data is read is what keeps them consistent. Where that is not possible, deleting should also clear caches and remove the item from any index that can serve it, and a read of a deleted item should behave exactly like a read of an item that never existed.

How to test for it

A general method for this class of bug:

  1. Create an object you control, such as a post, comment, poll or upload, and note its identifier and the URL that displays it.
  2. Capture the requests used to view it while it is live, including any background API calls the interface makes.
  3. Delete the object through the normal interface and confirm it is gone from the screen.
  4. Replay the captured read requests, and also try looking the object up directly by its identifier, first with the same session and then with a different account that should not see it.
  5. Repeat after a delay, because some systems purge asynchronously, and check secondary surfaces: embeds, previews, feeds, search, notifications and exports.

A positive result is a response that still contains the object's content, or metadata that reveals it, after deletion. A response that returns a "gone" marker, an empty body, a 404 (not found) or a permission error is the expected behaviour, not a finding. Common false positives are cached responses from your own browser, stale state in the page, and objects that were never actually deleted because the delete request failed silently. Confirm with a fresh session and a second account before reporting, and record the exact time between deletion and the successful retrieval, because the retention window is usually the heart of the impact.

How it is fixed

Standard fixes are to enforce the deleted state in the data access layer so every read path inherits it, to make deletion clear caches and remove the object from indexes and feeds, and to return the same not-found response for deleted objects as for objects that never existed, so the response does not confirm that the object once existed. Where a policy promises a retention period, the purge job should be checked against that promise, and the policy should match what the system actually does.

Where to look

This bug class tends to hide in features with their own storage and their own read endpoints: polls, stories, drafts, attachments, direct messages, saved items, and anything with a shareable identifier. Useful signals are identifiers that appear in URLs and API paths, mobile or legacy API hosts that mirror the web product, and features where the interface hides content without an obvious server-side delete. To show impact, demonstrate retrieval after deletion with a clean session, state the elapsed time, and tie it to the program's stated retention policy so the reviewer can see the gap rather than a single odd response.

Glossary

  • Poll: a Twitter feature where a user posts a question with answer options that others can vote on.
  • Endpoint: the address on a server that a request is sent to, usually a URL path.
  • Request: a message a browser or app sends to a server asking for a page or data.
  • Response: the server's answer to a request, containing the page or data or an error.
  • Interface (UI): what you see and click on screen; one way of making requests, not the only one.
  • Identifier (ID): a unique value that names a single object, such as one poll, so it can be looked up directly.
  • Session: the state that ties your requests to your logged-in account, usually carried by a cookie.
  • Cookie: a small piece of data the browser stores and sends back with requests so the server recognises you.
  • Soft delete: marking a record as deleted instead of removing it from storage.
  • Read path: any piece of code that fetches data to show or return it.
  • Cache: a stored copy of data kept to answer faster, which can go stale after a change.
  • Index: a searchable or listable copy of content that is updated separately from the original.
  • API: a programmatic interface that apps and pages use to fetch or change data.
  • 404: the standard response meaning the requested thing was not found.
  • Tombstone: a placeholder response indicating an item existed but is gone.
  • False positive: a result that looks like a bug but is not, such as your own browser's cached copy.
  • Retention window: how long data is kept after deletion before it is actually removed.
  • Privacy Violation: a weakness class where data a user expected to be private or gone can still be accessed.
  • Severity: a rating of how serious a bug is; here, high.
  • Bounty: a payment made by a program to a researcher for a valid report; here, 560.00 USD.
  • Disclosure: the date a report is made public; here, 2023-02-13.

More by eissen5c

View all

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

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.