News for hackers. Stuff that matters.
Re:Reverse-engineering the Starbucks ordering API by zitterbewegung on Wednesday July 12, 2017 @08:55PM (#14758004)
If an open API existed yes there would be more integrations. Of course you would have to hire engineers to perform upkeep. Eventually if the ordering API isn't profitable you get a bunch of sunk costs and have to reassign people. Its not just "make this open" and POOF. Also your access could be revoked by unofficially using the API and or they could just change it at any time.
Re:Reverse-engineering the Starbucks ordering API by shortstuffsushi on Wednesday July 12, 2017 @11:38PM (#14758531)
Why would their API need to be anything more than what they offer to their app? Why not something like "hey, you can use our stuff, but you've only got access to the same set of APIs we use in our app, and we may change it as we please.

Oh btw, here are the auto-gen'd docs, hope those are enough"

That seems like it'd be both developer friendly and no more maintenance than they're already putting into it. The alternative is basically things like this, where someone figures it out anyway, and we have to wait and see if they play it cool, or take it badly and make the author take it down.

Re:Reverse-engineering the Starbucks ordering API by BHSPitMonkey on Thursday July 13, 2017 @12:14AM (#14758640)
You can't make breaking changes to a public API, for starters. Needing to maintain/version APIs you want to deprecate has a nonzero cost.
Re:Reverse-engineering the Starbucks ordering API by TeMPOraL on Thursday July 13, 2017 @04:13AM (#14759587)
Of course you can.

All you have to do is to say: "this is our internal API, we're releasing endpoint documentation for curious developers, but be warned, that the API may, and will, change without any notice".

I.e. when you're releasing something in the open, you don't have to take social responsibilities if you don't want to. It's not a binary choice between "release a fully supported product" and "don't release at all".

Re:Reverse-engineering the Starbucks ordering API by noway421 on Thursday July 13, 2017 @07:26AM (#14760390)
That makes me wonder, are the any commercial/consumer products that use that model?
Re:Reverse-engineering the Starbucks ordering API by Spivak on Thursday July 13, 2017 @12:44AM (#14758781)
Why not? The real cost would be documenting it, but a lot of devs would be willing to accept essentially being on a mailing list for breaking changes a few weeks in advance. It's not like Starbucks can roll out breaking changes to their own API instantly.

It would only really be used by enthusiasts and techies who are used to this sort of thing.

Re:Reverse-engineering the Starbucks ordering API by ballenf on Thursday July 13, 2017 @08:35AM (#14760724)
You can't data mine users as much. You can't easily advertise specials or high margin items. Not that i think those are legitimate, but if a 3rd party app became popular and easily accessible, the company would lose the control over their perception.
Re:Reverse-engineering the Starbucks ordering API by shortstuffsushi on Thursday July 13, 2017 @01:22PM (#14763173)
You're not wrong, this does give up that sort of control. That's a different issue, but certainly a reason why they might not want to do it.
Re:Reverse-engineering the Starbucks ordering API by StavrosK on Wednesday July 12, 2017 @08:59PM (#14758020)
It seems to me that you can make an API that is trivially reverse-engineerable and both have your pie and eat it.
Re:Reverse-engineering the Starbucks ordering API by tuna-piano on Wednesday July 12, 2017 @09:39PM (#14758171)
But then your users start using the Starbucks ordering Slack channel, cool! But their credit card is hacked. Or the slack channel breaks. Or a stalking ex-boyfriend intercepts the order and delivers the latte himself. Starbucks would likely be blamed for these problems.

Remember the Snapchat leak from a few years ago?[1] I'd bet almost everyone who heard about the leak thought that Snapchat got hacked, and many then thought that their personal photos are not safe on Snapchat. But the reality is different. Users logged into a site called "Snapsave", many probably thinking it was part of Snapchat. It was Snapsave that used the private Snapchat API and got hacked... not Snapchat.

[1] http://www.huffingtonpost.com/2014/10/10/snapchat-leak_n_596...

Re:Reverse-engineering the Starbucks ordering API by dave5104 on Wednesday July 12, 2017 @09:08PM (#14758058)
In this case, don't you mean have your frappuccino and drink it?
Re:Reverse-engineering the Starbucks ordering API by karljtaylor on Wednesday July 12, 2017 @09:44PM (#14758186)
thanks a latte.
Re:Reverse-engineering the Starbucks ordering API by 1690v on Wednesday July 12, 2017 @11:08PM (#14758445)
It also expands the total attack surface of a system, which can lead to security problems. If you read some of the public disclosures from various bug bounty programs, neglected APIs have led to some serious vulnerabilities.

"Underprotected APIs" is actually number 10 on the OWASP Top 10 for 2017.

Re:Reverse-engineering the Starbucks ordering API by userbinator on Wednesday July 12, 2017 @11:43PM (#14758547)
The attack surface is the same whether the API is officially open/documented or not --- if you think that data received through a web API is somehow more trustworthy/less demanding of validation just because you haven't documented it and only release an app which uses it, you are doing it wrong.

Conceptually, it's just a listening server on the public Internet, and will be subject to arbitrary data anyone willing to connect to it can send.

Re:Reverse-engineering the Starbucks ordering API by noway421 on Thursday July 13, 2017 @07:29AM (#14760406)
Published docs (auto generated or not) increase the risk of discovery. Security through obscurity, yeah, but it reduces chances.