Skip to content
CSRF Disclosed report Beginner

Add tweet to collection CSRF

The collection content endpoint accepted cross-site POST requests without a CSRF token, so a malicious page could make a logged-in user add tweets to their own collection. An attacker could force a victim to add arbitrary tweets to a collection they own.

Vijay Kumar Follow

Originally disclosed on HackerOne

  • Triaged in 10 days
  • Fixed in 9 months
  • Paid in 13 days
  • Disclosed after 9 months

Hi Team,

I have found a CSRF vulnerability which force victim to add tweets in his collection.

HTML POC :

<html> <body> <form action="https://curator.twitter.com/api/collections/STREAM/content" method="POST"> <input type="hidden" name="tweet_ids[]" value="667977435124658176"> <input type="hidden" name="collections[]" value="667916850294951936"> <input type="hidden" name="model[id]" value="STREAM"> <input type=submit> </body> </html>

Before using this POC change the Collection ID to your collection ID and you will see that tweet will be added into your collection.You can Also add so many tweets in one request by adding "tweet_ids" parameter multiple times.

Let me know if you need any other help from my side.

Best Regards ! Vijay Kumar

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

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the endpoint did not require a CSRF token or otherwise verify that the POST request originated from the site itself.

What the attacker needed

Victim is logged in; victim visits attacker's page; attacker knows a collection ID

How it was found

  1. Create a collection and note its collection ID.
  2. Build an HTML page with a form that POSTs to the collection content endpoint, using the collection ID and a tweet ID.
  3. Change the collection ID in the page to your own collection ID.
  4. Open the page while logged in and observe that the tweet is added to the collection.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A CSRF (cross-site request forgery) bug lets a malicious website make a logged-in user's browser send a request to another site without the user meaning to. Here the site did not check that the request really came from its own pages, so a hidden form on an attacker's page could add tweets to the victim's collection.

What is CSRF?

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

More by Vijay Kumar

View all

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