parse-community / parse-server

Parse Server for Node.js / Express
https://parseplatform.org
Apache License 2.0
20.84k stars 4.77k forks source link

Calling Parse.User.currentAsync when user is not logged in crashes the server with process.exit(1) #9315

Open valerycolong opened 3 hours ago

valerycolong commented 3 hours ago

New Issue Checklist

Issue Description

Using Parse SDK on the web, after sign up but user not authenticated - as the service required email verification - I issued a request to update the user from async storage by calling Parse.User.currentAsync(). This call crashes my parse server backend with process.exit(0).

I find this strange and a pricey vulnerability since anyone can issue a similar request to the server crashing the server each time.

Steps to reproduce

Enable sign up with user verification on parse server backend. Sign up a user from the front end and immediate issue a Parse.User.currentAsync() call to update the user. The backend server crashes with exit code 1.

Actual Outcome

Parse server crashes with exit code 1.

Expected Outcome

I expected an invalid session error to be reported back to the caller without crashing the server.

Environment

Node LTS on Docker Debian Bookworm on Docker, Parse Server 7.2.0 Node JS module, Ubuntu 22.04 as host OS.

Server

Database

Client

parse-github-assistant[bot] commented 3 hours ago

Thanks for opening this issue!