parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

A workaround for all current Parse security features (CLP/PLP/ACL)

Open DoneStuffGetting opened this issue 10 years ago • 22 comments

This post is about how secure the security features are in Parse Server/SDK. Awesome community. Love you guys!

I was hoping I could email someone about a security concern in using Parse Server and the SDK. Small gaps in security seems really scary now that I've gotten most of my service built. I'm not expecting Parse to be 100% secure, but just wanted to know if this was a real concern.

Thanks, J

Sucks github removed their private messaging!

DoneStuffGetting avatar Mar 13 '16 19:03 DoneStuffGetting

I believe if there is a security concern that could impact all users, this should be publicly discussed and solved no?

flovilmart avatar Mar 13 '16 20:03 flovilmart

Is it possible to impersonate another PFUser via reverse engineering, random string generation, and injection? Or does PFUser verification for CLP/PLP/ACLs go beyond objIds and takes into account PFSessions/InstallationIds?

DoneStuffGetting avatar Mar 13 '16 21:03 DoneStuffGetting

with every requests, the authentication is done by the session token. The session token is validated across the records in the database. If a token is found matching, we load the according user. otherwise, the request is marked as not authenticated.

See the logic here: https://github.com/ParsePlatform/parse-server/blob/master/src/Auth.js#L46

flovilmart avatar Mar 13 '16 21:03 flovilmart

Thanks for the response and link. I was just being paranoid :) I thought logically that it wouldn't be so easy and that my gut/uninformed feeling was just wrong.

DoneStuffGetting avatar Mar 13 '16 21:03 DoneStuffGetting

Hey guys I wrote an article on Parse Security - wanted to share it with everybody. Parse can be run securely.
https://www.back4app.com/docs/guest/parse-security

mpc20001 avatar Jul 27 '18 23:07 mpc20001

I’m not sure if you can, but if you want we can also publish on blog.parseplatform.org. It’s a PR away.

flovilmart avatar Jul 27 '18 23:07 flovilmart

That would be awesome!!!

mpc20001 avatar Jul 28 '18 00:07 mpc20001

The blog repo is open and you just need to open a PR with your article, markdown formatted. If you need any help, feel free to reach out. Obviously, there should be a mention on the first line that it was originally published on back4app’s blog :)

flovilmart avatar Jul 28 '18 00:07 flovilmart

@flovilmart do you have an email I can reach you at? wanted to discuss a few things with you.

mpc20001 avatar Jul 31 '18 21:07 mpc20001

Hit me up! Florent at flovilmart dot com

flovilmart avatar Jul 31 '18 21:07 flovilmart

I sent you an email.

mpc20001 avatar Jul 31 '18 22:07 mpc20001

@mpc20001 I haven't received anything

flovilmart avatar Jul 31 '18 22:07 flovilmart

@flovilmart i tried emaling you - try emailing me - viperxj7 at g mail dot com

mpc20001 avatar Jul 31 '18 22:07 mpc20001

@mpc20001 Under Step 2.1, you say to disable Update and Create, but you disable Update and Delete, which should be right.

JacobJT avatar Aug 01 '18 20:08 JacobJT

@JacobJT - Thanks, you are correct. I will fix it.

mpc20001 avatar Aug 01 '18 21:08 mpc20001

Mpc20001 your article is saying basically abandon the REST paradigm altogether for the interface to your parse application ... everything becomes POST requests invoking functions rather than intuitively matching verbs to resources.

chandandasgupta1975 avatar Feb 11 '19 23:02 chandandasgupta1975

You can use whatever verbs you want. But yes everything becomes a post request since that's how cloud calls work and is handled server side rather than relying on the client to provide you security. I'm saying writing your own api is a lot more secure than allowing free access to your database or relying on acls.

mpc20001 avatar Feb 12 '19 00:02 mpc20001

Which defeats the point of using ACL’s and CLP. Not sure this is quite the good advice.

Sent with GitHawk

flovilmart avatar Feb 12 '19 00:02 flovilmart

There's lots of situations where you will find ACL's don't work, or you paint yourself into a corner. I'm not saying you have to do it this way. I'm just saying it's worked for me and avoided any data breaches which is a common problem with systems built on parse.

mpc20001 avatar Feb 12 '19 00:02 mpc20001

IMHO, the tutorial is a quite bad example of using this project, as you can achieve the same without cloud functions. But who am I to judge?

Sent with GitHawk

flovilmart avatar Feb 12 '19 01:02 flovilmart