36 points · by guessmyname · 7y ago · 5 comments
$ strings "/Applications/Dropshare 5.app/Contents/PlugIns/Share.appex/Contents/MacOS/Share" | grep 34344
http://localhost:34344/status
http://localhost:34344/connections
http://localhost:34344/upload
$ curl -i -XPOST "http://localhost:34344/upload"
> HTTP/1.1 200 OK
> Cache-Control: no-cache
> Content-Length: 17
> Content-Type: application/json
> Connection: Close
> Server: Dropshare4-Interface
> Date: Wed, 10 Jul 2019 06:15:57 GMT
>
> {"success":false}
$ curl -i -X GET "http://localhost:34344/connections"
> HTTP/1.1 200 OK
> Cache-Control: no-cache
> Content-Length: 17
> Content-Type: application/json
> Connection: Close
> Server: Dropshare4-Interface
> Date: Wed, 10 Jul 2019 06:16:14 GMT
>
> {"success":false}
$ curl -i -X GET "http://localhost:34344/status"
> HTTP/1.1 200 OK
> Cache-Control: no-cache
> Content-Length: 38
> Content-Type: application/json
> Connection: Close
> Server: Dropshare4-Interface
> Date: Wed, 10 Jul 2019 06:16:22 GMT
>
> {"version":"5.1.8 (5094)","ask":false}
[1] https://dropshare.app/[2] https://news.ycombinator.com/item?id=20387298
Dropshare developer here.
I’d like to quickly clarify that the initial statements are untrue. The Webserver is used as communication bridge between the Share Extension and the app. It only accepts requests with a signature. It cannot delete, share or else manage any uploaded files, and has no code that could potentially cause any harm on your server (e.g. by executing things). It only accepts file urls from your local machine to be uploaded and again, only with a properly signed request.
It is unfair to compare this to the Zoom case since there is no potential vulnerability and other than you explain, there is no danger involved with someone making damage to files on your server or whatsoever.
Best, Timo
P.S.: Of course in case you think you did find indeed a vulnerability I am not aware of, please get in touch via support@getdropsha.re according to responsible disclosure.
So, I don't think it's strictly necessary that when you find something like this it indicates some sort of vulnerability, although you are trusting the skill of third-party developers.
That said, if this is a vulnerability I'd first try getting in touch with their security team. If you have discovered a vulnerability you should give them a fair chance to patch it first before reporting it further, as you might be giving bad guys ideas.
lsof -i
Works on GNU/Linux and should also work on macOS.