parse-server
Affected
- introduced
0, fixed4.4.0(semver)
Fixed versions
4.4.0
Fix
- Fixed version
4.4.0npm install [email protected]
Advisory
Also known as: BIT-parse-2020-15270, CVE-2020-15270
receiving subscription objects with deleted session
Original Message:
Hi,
I create objects with one client with an ACL of all users with a specific column value. Thats working so far.
Then I deleted the session object from one user to look if he can receive subscription objects and he can receive them.
The client with the deleted session cant create new objects, which Parse restricts right.
The LiveQueryServer doesnt detect deleted sessions after the websocket connection was established.
There should be a mechanism that checks in an specific interval if the session exists.
I dont know if its true with expired sessions.
Any solutions?
Parse version: 4.3.0
Parse js SDK version: 2.17
Solution:
Hi guys.
I've found and fixed the problem. It happens because there are two caches in place for the session token:
But there are three problems:
So, currently, if you wait 1 hour after the session token was invalidated, the clients using the old session token are not able to receive the events.
What I did:
Medium Basis: The source's own band: MODERATE
0, fixed 4.4.0 (semver)4.4.0
4.4.0npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0