r/javascript • u/AhhMiPichula • Sep 24 '19
Exploiting Tinder to get paid features for free
https://softwareontheroad.com/reversing-tinder-api-with-nodejs/?utm_source=reddit-webdev&utm_medium=group_post52
u/NovelLurker0_0 Sep 24 '19 edited Sep 24 '19
LOL you'd think that coming from something as big as Tinder, security oopsie's like this are impossible.
51
u/fraggleberg Sep 24 '19
It used to be worse. I think they originally even sent the other users' locations and calculated the distance locally IIRC.
11
20
5
u/FriesWithThat Sep 25 '19
This is how they let their users know that there were attractive singles near them that wanted to hook up.
2
8
u/ScrewAttackThis Sep 25 '19
They used to display people's Instagram handles on profiles if they linked them to tinder. So it was trivially easy to send people messages on their social media even if you had blocked them in Tinder. So not really a surprise seeing their security being lax as well.
55
Sep 24 '19
It’s articles like these that remind me I could never make a popular app/website because I know fuck all about security
63
u/Aardshark Sep 24 '19
I would think that this article would convince you of the opposite - that security is mostly an unimportant factor in how big your site grows. Looks like you're all set to build the next unicorn!
0
Sep 24 '19
[deleted]
14
u/AhhMiPichula Sep 25 '19
It's called dying in beauty, it happens specially if you are someone how likes to read about pattens and architecture and all of that. Comming from 2 startups I can tell you that we rush things, but is not the developer's fault when your priorities change all the time when you need to finish X feature in order to sing Y deal to get some extra runaway time, things like this happen. Now, in Tinder's case is far less justifiable
5
8
3
185
u/TechLaden Sep 24 '19
TL;DR: too much on client side
50
u/NovelLurker0_0 Sep 24 '19
This is why I value my few years of game development experience. it taught me to naturally be suspicious of handling anything on the client-side.
56
u/relativityboy Sep 24 '19
This is why I value my enterprise development experience. it taught me to not trust anything other than designated sources of truth.
9
u/asdf7890 Sep 25 '19
This is why I value my enterprise development experience and general level of healthy paranoia: it taught me that there is often no truly safe source of truth. Anything from the client that wasn't sent by the server and protected by a decent request forgery method should be validated to death (even if that means a potentially expensive database hit) before being acted upon, returned to the client, or stored in the database. Similar for 3rd party data. Even anything read from your own database should be validated to death before being sent out for display/other or otherwise acted upon, because a bug or just plain bad code could have allowed iffy data through previously.
1
u/GolemancerVekk Sep 30 '19
This is why I value my experience in security. Realistically speaking, eventually you're going to have to trust someone.
4
Sep 25 '19
No idea what the fuck that means someone help
11
u/sivadneb Sep 25 '19
When you're designing client-server systems, you often have "state" being transferred between a client and a server, or between multiple hosts. You generally want to designate one "source of truth" such that when state is transferred it can't be manipulated for nefarious reasons.
1
Sep 25 '19
Oh right I did learn about this from one of my more senior engineers. Thanks for the answer
6
u/MasterOfArmsIsGood Sep 25 '19
CoD does kill confirmation on client and so you end up with exploits like kill all players
0
Sep 24 '19
[deleted]
51
u/Jaivez Sep 25 '19
Think of how much server time he saved by outsourcing all that work to the client during that 2-3 months though.
19
u/poditoo Sep 25 '19
I had the same fight with the head of architecture of a fortune 500.
The guy was adamant that data validation was the sole responsibility of the front end and that was during a major crisis because their backend started to fail after they added a layer of web services that were basically just pushing data over to the DB without any validation and created a bunch of front-end and exposed those services to 3rd parties which all ended up with different validation rules.
29
7
u/dxlachx Sep 25 '19
I mean I’m a junior dev but shouldn’t there be validations on the front end, with similar validations in the backend, and proper constraints/data type matching on the data in the relevant DB tables?
14
u/hackers_d0zen Sep 25 '19
Front-end validations are for the user, to make sure that what is sent is what the user wants to be sent.
Back-end validations are for the app owner, to make sure that what is received is what they want to be received.
You can spend several lifetimes trying to create idempotent, isomorphic web services with matching validation, that take every use case into account, and make sense to the user as well as the database designer. I have found that following the above approach tends to be quicker and more secure.
7
u/poditoo Sep 25 '19
"Validation" in the front-end should only be there to guide the user. It's not validating the data but helping the user inputs and formatting to minimize rejections by the actual validation.
There should be a single source of truth for the data validation (in the backend) and all the data should flow through it. Whether it's the DB itself or a layer in front is a design decision that can be argued.
Anyway, a backend should NEVER trust the data it receives from its front-ends. They can easily be hacked, modified, faked, broken. Or just not in sync if there are many of them.
5
u/didSomebodySayAbba Sep 25 '19
Hi what do you mean by DB dealing with plane flights?As in the company had to do with selling flights?
0
2
u/reddismycolor Sep 25 '19
how do you like/swipe right on one of the people that liked you once you unblur their picture... ? asking for a friend...
1
u/AhhMiPichula Sep 25 '19
Sadly you can't because you get their ID in the request that have the pictures but, if they liked you recently for sure they will appear on your swipping list.
2
u/shogun333 Sep 25 '19
You have a really nice blog/website.
It seems like you put a lot of work into creating content. Do you get any leads from just the blog alone?
1
u/AhhMiPichula Sep 25 '19
Thanks! Yes indeed people contact us because of the blog, it's also a really good thing for your portfolio.
2
u/hohosheba123 Sep 25 '19
Has anyone figured out how to pass the "get tinder gold" modal that pops up when scrolling down to view more of your "likes", no more profiles load instead modal pops up stopping you?
1
6
u/chalupa-batman-7 Sep 25 '19
Looks like you can see readreceipt on messages you sent to your matches if you open the message while monitoring the network calls.. Now you can see who has ghosted you.
25
u/BuildItMakeIt Sep 24 '19
Awesome. Just got to see all the people in my Matches list without paying. As suspected, all ugly and not worth paying.
1
0
Sep 24 '19
[deleted]
7
u/ScrewAttackThis Sep 25 '19
I've always had the idea to create an AI that attempts to only match people that wouldn't be a good long-term match in order to keep people on dating sites for longer.
So basically the opposite of that Hang the DJ episode of Black Mirror.
3
u/lowIQanon Sep 25 '19
I think if you have paid for Tinder Plus on the native app you won't see your "see who likes you" on the web app. Because that's what I did and I'll be damned if I can see that button/section. And yes I have likes.
3
u/panzerdp Sep 25 '19 edited Sep 25 '19
Might be the right time to delete my Tinder account. Hopefully my conversations don't get exposed!
3
u/CragmontTaglio Sep 25 '19
And people say the programming subreddits are full of sophomoric script kiddies. Pfft.
3
1
u/TheSuicideHeart Sep 25 '19
I'd try this if I wasnt banned.
1
u/AhhMiPichula Sep 25 '19
lol may I ask what did you do to get banned?
2
u/TheSuicideHeart Sep 25 '19
No idea at all. Installed tinder, used it for 2 days. Logged in on the 3rd day to a "this account has been banned". Was gonna mail support but I have completly forgotten about it
2
0
u/happy_funtime_lurker Sep 25 '19
Great investigation and it always cracks me up to see this kind of client-side abuse. Never, ever trust the client, whether it be read or write operations. (You can also have endless fun hitting REST APIs directly because those are often not secured in apps.)
But at the risk of sounding like an old curmudgeon--15 years experience going from junior dev to business owner (software consultancy)--I don't understand articles that use a lot of emojis, character art, or excessive caps/bold/italics to convey important information or technical details. It looks unprofessional and as someone that hires other devs and cuts paychecks, I'd be hesitant to onboard or promote someone who writes like that. What if they type like that in emails to clients or litter a sales presentation with cutesy smiley faces or internet memes? That can lose sales which can lose jobs.
I'm sorry if I come off as a jerk, hence the throwaway, but this is something I've noticed a lot of lately.
4
u/AhhMiPichula Sep 25 '19
Hello! Thanks for the comment I really appreciate, I'm the writer of the post. I definitely get your point, I'm just experimenting to see what works and what not (It's my first post). Out of all the 70+ comments, you are the only one that mentioned this, maybe an outlier or maybe it bothered everyone but you are the one that mentioned, will have to see when I get a bigger sample size.
Because I'm young (21) I like to joke a lot, use emojis, xd's and memes but I can certainly understand situations, this post was not a fully technical one (Was about my experience) and it was about Tinder (An app that you use for fun and not for serious stuff like, lets say, Gmail). Because of that, I think that the more informal tone it's justified. I'll never use emojis when talking to the client 😂👌💯🔥(just kidding haha)6
u/sudosussudio Sep 25 '19
The reason you see it a lot lately is some companies want it because they believe it’s a good content marketing strategy. It certainly can reach audiences that more traditional content marketing might not
4
Sep 25 '19
Times change.
Go to Twitter and see how the most popular devs out there use a lot of emojis.
This is the same as when old business people don’t like modern designs and prefer table based sites.
2
2
2
Sep 25 '19 edited Nov 12 '19
This is the kind of thing I'm so paronoid of about when I build Servers, there's always going to be that one developer that ruins the fun (for example blurring a pic and storing it server-side in such scale could represent a really important amount of processing power and storage), but once a single actor automates the exploit you're in for a lot of trouble. This kind of small mind games are what I love the most about my job.
2
-9
u/ExistentialistMonkey Sep 24 '19
So the only thing here is that you can unblur the images of people who liked you? What else is new?
6
u/AhhMiPichula Sep 24 '19
TD:DR:
- You can not only unblur the portrait picture but all of them (Paid feature)
- You can redo a like (Paid feature)
- You can create your own cities
- They send a lot of unnecessary data (Allow the first item to happen)14
0
0
0
0
92
u/harelu Sep 24 '19
Wait what the fuck. How wasnt this exposed before, considering how popular tinder is? I mean its not exactly some massive breach but still, theres quite a bit of private data and unprotected endpoints with no validation in their api.
I mean you can send simple GET requests from your console and explore a lot of paywalled functionality and even update your profile with random data lol