Skip to content
CSRF Disclosed report Beginner

Possible CSRF during joining report as participant

The report describes a possible CSRF issue in the endpoint for accepting an invitation to join a report as a participant. The author found that the request contained two authenticity tokens and that removing the first one still allowed the action to succeed, suggesting the application does not validate the presence of the first token.

eh0x01 Follow

Originally disclosed on HackerOne

  • Triaged in 4 hours
  • Fixed in 11 days
  • Disclosed after 11 days

Hi,

I think i found a possible csrf issue with joining report as participant endpoint, Actually one of the bug got duplicated and the company added me into the original bug as a participant. then, I got invitation from hackerone to joing the report.

After opening the invitation link, there was two options and i click on accept and intercepted the request using Brup Suit.

Request:

POST /invitations/8384c8086579f27de853ac43f5a16508/accept HTTP/1.1
Host: hackerone.com
Connection: close
Content-Length: 246
Cache-Control: max-age=0
Origin: https://hackerone.com
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Referer: https://hackerone.com/invitations/8384c8086579f27de853ac43f5a16508
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.8,nl;q=0.6,pt;q=0.4,ru;q=0.2,ar;q=0.2
Cookie: __cfduid=d11785aca5486bba2f496b5a95dfcd7b91467310209; _gat=1; _ga=GA1.2.1403918044.1467310439; session=M3JIWXZtVVBURmtsUHlNWEJmUFNuREhCQ1FRMG43cUNiU2E4V3NOTFdzVUF4cW0xQlAxUlQrNDRRb0VUbjZuNnF2OHRWMFVWa0txVmwySGNMLzBralZPTzBRY3IxY0sybDArbXpDVXZOZEtCTWhvcWlyZjhJWU13K3VYSW5mbURGcXpFWXRrZHlJN0ZVbUMzMFM1QS9OYnh1VkFMZXg1WFdVWEhEWE1QclkxZG5acWRYMXp1SExVQ2pMTUpYdXgwejQvWitkOW9jMW9pelBxZ3plUEEwYmp5NGwwZ0RGUFlDZXo1ODZ5UU9OKzdIL0VVNVZZRE5kUHN4c1krYWM3K2VvZmNkRzAyNzdxa3ZkS05UZ0k2Mi8xZGp5THdHSkFPdWFKbTA0ZHdiME9LN1E5VUovK0lPYzBpVW5MS3FwRFpTZGQzeFZybEQrU2VIVUhmSEd6Uy9Db0xYSFY2YTh1ck1XWXovYXZKc3J2RS9Rc0RBLzRVdGJZUXN0MUUrSHR1aUJkUVJmSE44Tkl0RHdRbGZZRTlCTVlvZDhWMGhxS1NVbUVYS1FMZGdkd2Q4cTBNZlFjVHVSWjdOZW04c0Eyb2tzVGJsMGRhcm82NDVKVm9FZWF6UFFCS0lGNGxsTDNPL0tpbE4yL1pETTN4eVdqeHBac0dvem9STXF5TFhIcEIzcFB4cXZ1TGkzNkt5R3dWUjE0TFlyTHlDRkpjSG5HZGZKM3VCSmkxNjEzWkdWNCsyalJqWXBFUENjYjNLNm12LS1jeWJVOXBYRVgvRmNiWGNNNXI4Q25RPT0%3D--42d7ae5303507856efd269530433939e6b6e9422

authenticity_token=cBxHPkMuHJVVZPUuPuh%2FJW6kbIPlUaWgvc5VYtd5%2FsEqLxd0pQTZj52MtIbSHVlIMEVhfwkYC4FEoTBitGzUdQ%3D%3D&utf8=%E2%9C%93&authenticity_token=cBxHPkMuHJVVZPUuPuh%2FJW6kbIPlUaWgvc5VYtd5%2FsEqLxd0pQTZj52MtIbSHVlIMEVhfwkYC4FEoTBitGzUdQ%3D%3D```

See, There are two authenticity_token in the POST request. When i deleted the first Authenticity_token from the Request and forwarded it, then i was able to join the report without the first authenticity token.

I think application is not validating the presence of the first authenticity_token during adding users to the particular report.

According to me, There is no way to exploit it because there authenticity token is getting properly validated.

but..

I was thinking, you might want to hear about it. Please let me know what you think.

Thanks @gone

The original report as published on HackerOne, by eh0x01. 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 application does not validate the presence of the first authenticity_token in the request, though the remaining token is still validated.

Impact

The researcher states there is no way to exploit it because the authenticity token is still properly validated, so the impact is likely none.

How it was found

  1. Open the invitation link and click accept.
  2. Intercept the request using Burp Suite.
  3. Delete the first authenticity_token from the request.
  4. Forward the request and observe that joining the report still succeeds.

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.

This is about a security token called a CSRF token (authenticity_token) that websites use to ensure a request comes from their own pages, not from an attacker's site. The researcher noticed that the request had two such tokens and that removing one still let the action work, which might mean the site isn't checking that token properly. However, the researcher also says the token is still validated, so it's unclear if this is actually exploitable.

What is CSRF?

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

More by eh0x01

View all

5 more disclosed reports, best first.

More from HackerOne

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.