464 points · by captn3m0 · 2y ago · 317 comments
There are pretty common ethical standards about disclosing vulnerabilities privately before disclosing them publicly. I don't see how the obviousness of the vulnerability changes the situation. By warning the company, you give them the opportunity to remedy the problem before announcing to the world that anyone with a laptop can exploit it. Probably they were just hoping that nobody would notice, which is stupid of course, but now they don't have the chance to build up a better wall before the flood of fake orders that could cause real harm to the small businesses whose financial information you disclosed online.
Perhaps I'm being too optimistic about how the company would respond, but I still think it's hard to justify not doing a private disclosure.
Pissing off the company, whose systems you accessed without authorization, is one way of getting to experience the full force of the justice system.
How is this, specifically, fraud?
Whether or not that seems reasonable to us is a different matter, but basically it boils down to the fact that "they left the door unlocked" doesn't make it legal to walk in.
If any person without permission of the owner or any other person who is incharge of a computer, computer system or computer network
- (a) accesses or secures access to such computer, computer system or computer network or computer resource;
- (b) downloads, copies or extracts any data, computer data base or information from such computer, computer system or computer network including information or data held or stored in any removable storage medium;
[...]
- (e) disrupts or causes disruption of any computer, computer system or computer network;
[...]
- (g) provides any assistance to any person to facilitate access to a computer, computer system or computer network in contravention of the provisions of this Act, rules or regulations made thereunder;
If any person, dishonestly or fraudulently, does any act referred, he shall be punishable with imprisonment for a term which may extend to three years or with fine which may extend to five lakh rupees or with both.
====
Though, I prefer a lot the poster of the blog post than the company...
By the definition that killed Aaron Swartz, it probably is.
Types of computer fraud include: * [...] * Accessing unauthorized computers * [...]
He accessed their computers to access purchase information of other people (e.g. his friend) and business data. I guess making it public, thereby damaging the companies reputation and potentially getting sued by their lawyers is one way to find out, whether he was "unauthorized" to do so.
At that scale, it would take years to get fixed without forcing it like this.
It's too small for them to care about the liability of security and too large to move quickly
But it also might not take years. The point of responsible disclosure is to give them the opportunity. If they don't take it, fine - that's now on them.
Instead this guy is committing fraud with actual financial damages (wasted food) and then sharing how others can commit the same fraud on a massive scale, potentially causing more damage. This is now on him and Dotpe, not Dotpe alone.
Is that legally true? The legal risk of having published this without responsible disclosure vanishes if the conventional period of opportunity is ignored? That smells fishy.
But in responsible disclosure you usually give a 90 day notice period before publicly disclosing and "forcing" them.
I mean, come on! To treat this as a proper security vulnerability just gives too much leeway for these fast-and-loose businesses/systems. It will just encourage more such crap to proliferate.
I am with the author on this one, I am fairly certain the issue of this was raised internally already, probably multiple times. Fortunately for the business, their management did the right decision - focus on quick and easy features, security is a non-issue, we will just blame the hackers and have legal channels deal with them. I mean, you even have people here berating someone uncovering gross negligence for Google-backed company. Why would businesses bother with basic security when they can play the victim so damn easy?
Truth is even in the west this kind of irresponsible disclosure could land you in jail, much more so in a developing country where these laws are all relatively new.
The API being unauthd is clearly a core design choice, and finding out any customer or service data is openly accessible with consecutive numbers through that API is not a zero day or something.
There is no "responsible disclosure" to be made here, going to the company and explaining what's the issue with all of this amounts to "handing out free consulting" if anything
We shouldn't limit ourselves to only be responsible and disclose properly when the vulnerability suits us.
That is both unfair and irrational.
Call me old-fashioned, but to me the peak experience is a paper menu to choose from, and a waiter that patiently takes the order. Far prefer that to everyone at the table fiddling on their phones in some weird-ass website or even god forbid custom app.
Then you find out all the items you looked at aren't available when the waiter stares blankly at you about your order.
Turns out the dinner menu requires horizontal scrolling on the page to find.
If a restaurant has a QR-code menu, I ask for a physical one.
If they don't have a physical one, I walk out.
I've done that many, many, many times.
The invention of color photography, and large and small format color printing, make it unnecessary for the whole thing to be online. You can have pictures without all the issues of online - like small, low-resolution screens (relative to paper all screens are low-res screens), and being coerced to give away personal data.
Good menu layout and design costs money, laying out 30 or so pages with full pictures of every dish, and then printing a bunch of those up, is not reasonable.
Meanwhile online menus can be searched and filtered through.
That said I think that online menus are generally sub-par compared to paper, mostly because paper is better than a screen for most things, for people who don't know a given cuisine, pictures are essential.
I'd expect my waiter to look rather puzzled if I asked for a picture of my food, and also perhaps be politely remined that I am not in a fast food outlet.
I have a soft spot for cafeteria-style "point to order" systems myself, especially when there's a language barrier. But that does impose a certain industrial feel on an establishment.
This inefficiency is simply accepted and not even really thought about, it’s just the way things are. But one thing I can say for this tech is it fixed it and the difference is noticeable.
As for the arguments that QR codes are somehow a time-saver, they can be a real time waster. Find phone (not glued to my eyeballs), scan QR, swerve option to install app, wait for enormously bloated website to render badly, get frustrated trying to find what I want, get up to find a staff member to order something but with X instead of Y please if that's possible, can I pay with cash, etc etc etc.
Clearly, everyone's needs and experiences are different. If you like QR codes in cafes, fine, but we should recognise that they represent something other than supposed 'convenience'. They are there to gather data, and to allow cafes to hire fewer staff. They represent the creeping invasion of privacy in every possible aspect of life. The fact that cafes may want to hire fewer staff masks the issue that an increasing number need to in order to survive. Small business margins are squeezed by unreasonable costs and shrinking profit margins, and these pressures are instinctively passed down to the customer -- you and me. Rather than mindlessly capitulate to this and encourage the one-way downward spiral, I really would hope for communities such as HN to see opportunities to 'disrupt upwards'. How can businesses resist exorbitant rents? Why are our lives so hectic that talking to a waiter is seen as too slow? Why do we give away data without being an eyelid?
Also we should recognize that the waiter is often looked down at, it is not a very nice job, and as a human being, having a poor experience with some customers will probably pass on to other customers, etc...
I'd go as far as having a job with "wait" in the name, and having to wait, calmy and happily or else you don't get your tip, is not so far from slavery.
The experience is as, if not more, important than the result for most things. Leave that for assembly lines (and even that is debatable)
If you want peak efficiency order caffeine powder from Amazon and snort it, it's going to be much cheaper and much more efficient than going to a coffee shop
- you are ordering food and drinks, speed is not essentials, if you're in a hurry you don't sit down in a diner/restaurant
- you assume that everything on the menu is perfectly clear, but what exactly is that thing with the mysterious name? (for example peri peri fries means nothing to me) you can ask to a person, not to a PDF
- you really want X but you have food allergies or some other dietary restriction, again you can ask that to staff, not to a web site
- most importantly, you're assuming that waiting is generally considered an inefficiency, that should be addressed or fixed and that should be the goal of every place serving food and beverages, while it usually is the moment were people sit and relax and have a little chat, it is called lunch break for a reason, isn't it? It's the generalization of XKCD #303.
p.s. in my experience in places that use QR code menus orders are not served faster, actually the opposite is often true.
Honestly if I received poor/slow service and management came back with this I'd be pretty upset. Especially given a large number of places have an explicit service charge or there is a cultural expectation that this should be paid extra for.
You're either trying to solve the problem of service or you're not, it's binary.
Namely, restaurants who move to slabnus simply get rid of the waiters who would have taken the order. You're left with even fewer waiters serving food and drinks, let alone taking orders.
The coup de grace is I don't even get a discount for the degraded service.
Note: Slabnu because I'm pecking at a slab of silicon instead of a proper menu.
It's like self-service checkouts: the store gets to save on stuff and get their customers do the store's work instead, and we don't even get a discount for that free labor and more time spent in checkout and degraded experience.
At least once you start decoding the drink section (much more consistent) then you can go back and try to interpret the rest.
- staff can keep the menu up to date, basically realtime (they have to do it tho)
- orders can directly land in the kitchen instead of through the waiting staff, which may or may not be coming
- payment can also be done thst way
Of course there are more advantages for the restaurants that may or may not go counter to the interests (or rights!) of their customers. E.g. the ability to easily build profiles and sell that data to the highest bidder.
There are downsides too:
- digital menus can fail more easily than paper menus
- congrats you are a waiter, and now IT-support as well
- customers without phones, no/sucky internet or devices that fail to display the menu are out of luck, so you have to provide offline alternatives/own devices that need their own maintenance
- options that are not in the menu and fields that are not offered cannot be filled, e.g. can be a problem if you are allergic rtc.
- unpersonal. Most people prefer not having to jump through hoops.
Using a tablet that is provided by the restaurant can aleviate many (but not all) of these issues.
Of course, all the downsides are the very reason restaurants are switching to digital menus in the first place, which is something people need to be reminded of. In cases of "I can't believe they replaced a perfectly good X with inferior but 'modern tech' Y", the surprise is usually the person not realizing the vendor is adversarial, and Y is giving some extra benefit to them at the expense of the customer.
Even worse are the restaurants who require one table to be all ordered on one phone ... so one lemon ends up effectively being the waiter for the table and doing the ordering for everyone. Ask me how I know.
That is always the worst experience. The most painful apps always require you to spend another 7 minutes after installation; typing in and verifying your credit card information... That has to be the most convoluted paying experience.
I was almost shocked when I rented a Hertz car (via IKEA), that everything was done through a website. The website asked for permission to use the phone camera to take pictures of the car etc. and off we went. Such a good experience compared to fiddling with a new app..
Without the app I would've had to keep an eye for a roaming waiter, call them out and then place an order. This takes away from the dining experience. I also don't like to wait for the server to clear plates, take the card, swipe it and get it back. The old fashioned ways will disappear for good.
I would say that from the restuarant's point of view, having the order-from-app experience works out since the freelancers can order via their laptops whenever they want, without having to flag down a waiter. And during rush hours, tables could order what they want without having to spot and call a waiter among a very drunk dancing crowd.
Unfortunately "server" is not considered a respectable career but something you put up with before your film career takes off, or how you pay your college tuition for that juicy psychiatric nurse degree.
So nobody can be paid enough, or retained long enough, to care about customers or the food. So 25 years from now, the best server will be a Roomba with a prominent QR on its back.
In the USA maybe.
I can assure you, being a waiter is taken quite seriously by much of the civilised world. A good waiter is an important part of the dining experience.
Yet in the US, due to tipping, it can be (and generally is in most more affluent areas) considerably better paid and lucrative than pretty much anywhere else.
Also I'm not sure what are you saying is generally true at all in most places (unless we're talking about a specific subset of restaurants).
When I want to leave I just get up and go without the stupid ask to know how much I need to pay then ask again to actually pay with expectation that I pay more than what was asked like it's my choice to pay but really it isn't.
A real waiter also allows for a human connection to be created. Experienced waiters (rather than part timers) can really help you make an order, give you recommendations etc. which makes the experience of dining out much nicer.
I found the experience better than ordering from a waiter and better than using your own phone.
I've told that chains in China have now replaced this last bit "a waiter brings it" by a little robot.
"There's something special about having a wire attached to your phone."
"There's something special about greeting a lift operator."
"There's something special about hand-washing clothes."
Most of these ordering systems (at least the ones that have survived COVID) are pretty good websites now. I don't remember ever having to use a custom app. It's a far superior experience.
(Oh yeah and I guess you may be American and have a very different eating experience to the rest of the world where waiters don't live off the arbitrary generosity of customers.)
Ah yes... superiority complex?
On a more positive note, I've used a QR menu recently and it really is a game changer. Scanned a code, pressed a few buttons, and my food was there in minutes! Looking forward to seeing it more often, especially in places where you're not looking for stellar service.
Not sure if you're serious after reading the paragraph where he ordered food for another table ;-)
This is the front door. It's not even open, it's taken off the hinges.
Scratch that, there never was a door in the first place, just a gaping hole right to the street.
In this specific case, they have a general email address at the bottom of their privacy policy, so that's what I'd use.
I'd send them an email along the lines of "I found a security issue with your website; how would you like me to report it to you?". Then they'll hopefully put me in touch with the right person.
In terms of what I'd expect… If they operate a bug bounty (which they don't in this case) then I'd expect what's on offer. If not, it would depend. I often don't expect anything. There have been businesses I've disclosed security vulnerabilities to that are shady enough that I've refused the reward they offered. Sometimes I don't want anything to do with them.
I loathe them perhaps even more than I loathe the order-kiosks that McDonald's has rolled out. My phone is smaller than the folded napkin, I would rather not have to scroll to examine a menu.
Regardless, a restaurant should think twice about outsourcing this kind of thing to a 3rd party that now has all of your (and your competitors) financials. Even if the API is better vetted, why would you trust this faceless, profit-motivated site with your data?
"Convenience" seems to be the way they market "getting rid of employees" these days — from self-service gas, self-checkout lanes, etc.
Leaving PDPA aside, as a Software professional I find this act kiddy and unethical. 10 years back I found a major vulnerability bug in an major multinational bank where I was able to see monthly statements of any person. I reported this to the bank and they took approx 1 year to fix that. I did not even mention about this bug to my friends or my CV till it was fixed.
In India, personal data is not yet taken seriously with both educated and un-educated people. It would take some time but I believe this realisation will come over time in people.
I'll admit it is a bit funny and the damage caused is tiny(just the price of the food). However, things like this do harm the reputation of bug-bounty hunters.
I've worked in lambda web editor (not in Git) and my lead considered replacing sql injection with parameterised queries was a distraction/insubordination. Cant wait till audits, data breach insurance and imprisonment becomes the reality.
Lazy API that did not vet a simple backdoor?
Good coders but accidentally pushed the debug version of the API?
I am going to have to say the second option feels less likely (yes, I have been called cynical).
Everyone who designed engineering requirements, technical requirements, test plan, everyone who wrote technical specifications, everyone who performed traceability. It was all approved by security engineers and management.
> The company was founded during the pandemic when contactless dining became popular.
There were tons of people intimately aware of the issue, yet for four years nobody cared.
Private disclosure is for when you believe the company cares about security but made a genuine mistake. For the company in the OP it would be more like free education in fundamental privacy and ethics. They're not entitled to that. Name and shame.
There's little public benefit in responsible disclosure here; all it would lead to is the whole thing being swept under the rug with some trivial "fix". There's lots of public benefit in immediate, wide disclosure - the scramble to fix this under pressure from vendors before potential abuse, and any real or imagined attempt at abuse, and subsequent lawsuits, would go far towards educating people and the industry about privacy, security, and bad business practice. It's a nice low real damage, high publicity case.
It's not like this stuff is new. But without serious pressure, the businesses will never learn and never stop making or enrolling into such systems.
Anyway, if it happened over here in the EU, I'd do the responsible disclosure thing and give a full, detailed advance expose to the local Data Protection Authority.
(And if I sound adversarial, then consider that neither the vendor developing such systems, nor the venues using them, are doing it in the interest of the customers.)
Of course in other places, there aren't really any good options. So I guess the most "moral" approach would be to what you think would cause most financial damage to the business and discourage people from going there.
No, this is not some obscure security hole they forgot about. This is plain incompetence and/or deliberate design decisions.
I agree that full public disclosure like this is irresponsible, but exposing issues like this to the public is the only way for such companies to make a change or, preferably, lose business and shutdown.
It feels like the usual case of vendors buying service to better exploit the users, and themselves getting burned and/or exploited by that service too.
It would be different if for example the application was showing data for other customers through normal use of it, but even if there is no other barrier to access than changing an id that is considered bypassing access control and can result in jail time in most places. Now I'm not an expert in India's computer misuse laws but I am willing to wager they are not the most progressive when it comes to this kind of thing.
Most likely the company will blame them for trying to help. Also, if the company is so incompetent that they allow this why bother. He's not getting paid to be their test engineer.
You can get their gender, age, name, mobile number.
I simply reported it to their website's support email and state cyber cell.
This was 7 years ago, that vulnerability still exists.
The other day I was at burger king. They allow you to refill your drink as many times as you like within 60 minutes of purchasing it, and the way this restriction is implemented is by having you scan a QR code they print on your receipt at the drink machine. I scanned the QR code with Binary Eye (android app that reads all sorts of barcodes, highly recommended). It contained some numbers I couldn't immediately recognize as interesting, a timestamp in a format similar to 202409231049, and a UUID.
Now, the UUID is probably the ID of the order in their internal system, so the question is: does the drink machine only read the timestamp or does it also use the UUID to query the internal system to re-validate it? Can you craft a QR code with the same data but change the timestamp to achieve for infinite refills?
Well, can you? :). It's the obvious next thing to try, given that Binary Eye is conveniently also a barcode generator, not just a scanner.
I'm hoping nobody is this naive to let your client have mission critical info to implement something as crucial as giving a discount or refills in your case. It would be just be an extra column in your db table, the only identifier available to the user should be just the UUID, along with some identifier.
You accidentally stumbling on something unprotected generally clears you from any liability as long as you stop as soon as you notice it.
Code of conduct for white hat hackers is to explore but not abuse, and report as soon as they have enough clarity on the issue. But there is no legal basis for this avoiding any liability except if a company runs an official bounty program.
In that sense, the OP author could face hacking charges if India has similar laws to the rest of the developed world, and the author doesn't even have the "well intentioned" for their defence since they never reached out: the only defence they have is they did not attempt to profit off it.
IANAL, though :)
the old "HELO" hack
With a couple of clicks on the web app, you'd encounter a bug... and then you can see every single person's orders, email, and personal addresses. And it was my partner who discovered it (she was struggling to order service through the website bc it kept failing).
Oh and they also never charged us for service despite multiple emails asking them how we should pay (somehow we were able to order service through the site but never paid?)
Clearly they're not a serious company...
source: https://x.com/prstb/status/1838179660959465596
Original blog post, archived copy: https://web.archive.org/web/20240923091701/https://peabee.su...
I am sure some companies using that service will ask for more closed doors before everyone can lookup their revenues. That's one big example of a non technical vulnerability based on a 101 technical principle.
On the other hand, I agree with other comments that posting the whole financials of a company does not seem like a good idea
PS: I really like your writing style. Subscribed your newsletter
Probably. But IMHO it's the right/moral thing to do, posting/showing how to access their client data is of course hardly justifiable.
Yikes.
As one commenter on X(itter) said that the only way this company will think about fixing this is when another competitor who will gather all their customer's details and send emails to them to migrate to their service if they don't want their precious data to leak.
From the comments it seems likely the author realized they may have accidentally committed a crime or at least done something that could cause real legal consequences for them and quickly destroyed the evidence. That's probably better than leaving it up but I'd wager it wouldn't protect them from any legal consequences publishing the article already made possible.
There's a problematic but not critical personal information leak, a mild business intelligence leak and that's about it.
> They could keep this script running for months, even years, creating awkward scenes and uncomfortable conversations at every restaurant across the country.
If that's about the worst thing you can actively do, then it's only about the data leak.
"By following the pattern of when you were there and what you ordered, I found the other person's details too"
Isn’t this just sample size one? In other systems this information can be passed securely and not leaked later.
Having a complete lack of any authentication and sequential IDs does seem like a design decision.
Anyone have a cached copy?
You can spend countless hours trying to break your application, finding holes but who cares.
Police cares about financial fraud. Did someone clickbait you into swindling money from you? well they will pounce on it because they will extract their cut from all involved and it gives them nice PR on the daily newspaper.
PII fraud or vulnerability, eh well. whose gonna notice? we have enough on our plates.
second thing. whatever government is doing, they protect themselves at all costs. they WILL throw you under the bus if it protects their interests.
why? because of the massive population, jobs are scarce, people get college degrees and stuff to pad up their resumes because employers, govt or private REQUIRE documentary evidence you did something. doesn't matter your skills,y ou have the papers or not.
this dotpe company, whatever its doing is indicative of the systemic problems in india. You have lots of people, lots of smart people, lots of dumb people and in the long run, bigger, cheaper, faster. that's all that matters
I think it would be great if you could go to a restaurant and they had this data available. Sure, some menus say "best seller!" but I don't believe them all the time. And tastes change, chefs, etc.
They realize that the whole API does not use authentication or authorization and start reverse engineering it/trying out various endpoints. They can then do things like ordering stuff for other tables, calculate earnings of restaurants, etc.
They probably took it down because they disclosed it publicly directly instead of contacting that QR code based ordering service provider (which I won't mention the name of).
Given that this is a substack which has a newsletter, this article has probably reached many people before being taken offline.
Please no one write that random script… f*king up high cash flow but ultimately usually pretty low margin businesses like these, while also pushing the poor staff around in a way that costs them time and very likely wages is really, really, really bad karma.
Seriously, its a PII leak and it should be reported. And since you said Google is an investor someone (theoretically) should care.
If it wasn't so sad, it would be almost funny that their Terms & Conditions page errors out (for me). The whole page looks pretty broken and like the landingpage is an afterthought...
Anyways, the closest to a contact us is this what I found (after looking for 15 seconds and randomly clicking links) https://dotpe.in/contact-us.html maybe that helps to get in touch at least...
Good thing the APIs can be used to easily identify that company. /s
Makes this blog post sound like an advert for whatever this product is.
Maybe the next big app for AI is to analyze web pages and scrub this crap out of otherwise decent articles.