profile photo update bypass
Vimeo blocked profile photo uploads until an account's email address was verified, but the upload flow could be driven directly through its API calls. An attacker with an unverified account could obtain an upload URL and push an image to it, bypassing the verification gate.
- Fixed in 25 hours
- Disclosed after 34 days
hello sir
this is N B Sri Harsha again
as per vimeo rules , we are not allow to upload photo until we verify our email id
i have bypassed it !
steps to reproduce
you need to make three requests
POST /upload/_get_image_url HTTP/1.1 Host: vimeo.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0 Accept: application/json Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate X-Requested-With: XMLHttpRequest X-Request: JSON Content-Type: application/x-www-form-urlencoded; charset=utf-8 Referer: https://vimeo.com/settings/profile Content-Length: 25 Cookie: vuid=696284419.1803352017; __utma=18302654.25426463.1421254575.1421254575.1421254575.1; __utmb=18302654.5.9.1421254612869; __utmc=18302654; __utmz=18302654.1421254575.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmv=18302654.|2=user_type=pro=1^3=ms=0=1^7=video_count=0=1; vimeo=epk9k9dxcd70pcdxcxtdtr27jpcdxcxtd9c97%2Cp5dt00csudt0du92ctvvw9dxtt22ddwcwdvm2svsr; site_settings=%7B%22sticky_page%22%3Anull%7D; has_logged_in=1; stats_start_date=2015%2F01%2F10; stats_end_date=2015%2F01%2F14; __utmli=upload; xsrft=4213429db9ce9b8555b31f03e70518f2.acd22c2a2bdf0aed2889ddb61d9e34d7 Connection: keep-alive Pragma: no-cache Cache-Control: no-cache
type=portrait&id=36364214
change the id to our id !
after running this u will get an response as
HTTP/1.1 200 OK Date: Wed, 14 Jan 2015 16:57:52 GMT Server: Apache Expires: Wed, 14 Jan 2015 04:57:52 GMT Cache-Control: no-store, no-cache, must-revalidate Cache-Control: post-check=0, pre-check=0 Set-Cookie: vimeo=epk9k9dxcd70pcdxcxtdtr27jpcdxcxtd9rx7%2Cpccvvxwwmstmdwkctvss9tfrwxm5usd2tkuccsdkk; expires=Fri, 13-Feb-2015 16:57:52 GMT; path=/; domain=.vimeo.com; httponly Vary: User-Agent,Accept-Encoding X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff X-UA-Compatible: IE=edge X-Frame-Options: sameorigin Content-Security-Policy-Report-Only: default-src https: data: 'unsafe-inline' 'unsafe-eval'; report-uri /_csp Content-Length: 112 Connection: close Content-Type: application/json; charset=UTF-8
"https://i.cloud.vimeo.com/portrait/9001351?expires=1421254732&sig=a9ff5f12100239d40f9872d7f36f17216e659754"
next make a request using by before response
OPTIONS /portrait/9001351?expires=1421254732&sig=a9ff5f12100239d40f9872d7f36f17216e659754 HTTP/1.1 Host: i.cloud.vimeo.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Origin: https://vimeo.com Access-Control-Request-Method: PUT Access-Control-Request-Headers: content-type Connection: keep-alive
next make an request like this
PUT /portrait/9001351?expires=1421254732&sig=a9ff5f12100239d40f9872d7f36f17216e659754 HTTP/1.1 Host: i.cloud.vimeo.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Content-Type: application/offset+octet-stream Referer: https://vimeo.com/settings/profile Content-Length: 561276 Origin: https://vimeo.com Connection: keep-alive
{{image code here , u can get the code by editing image in notepad }}
by this i could bypass the restriction and i could upload photo without verifying email id
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 email-verification check was enforced only in the user interface, while the underlying upload API endpoints did not verify that the account's email was confirmed.
Impact
An unverified account could set a profile photo despite the site's stated restriction, weakening the email-verification requirement.
What the attacker needed
An account with unverified email; ability to send crafted HTTP requests
How it was found
- Send a request to the image URL endpoint with your own account id to obtain a signed upload URL.
- Send a preflight OPTIONS request to the returned upload URL to confirm the PUT method is allowed.
- Send a PUT request to that URL with the image data to store the photo.
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.
Some websites make you confirm your email address before you can change your profile picture. This report shows that the website only checked that rule on the normal settings page, not on the hidden requests the page makes behind the scenes. By sending those requests by hand, the researcher could still upload a picture without confirming the email.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.