Skip to content

VolatileClass ignores the CLP #3915

@pungme

Description

@pungme

Issue Description

I'm not sure this is by design or not but we face some issues with the spammer with this exploit.

When we set the CLP for the volatileClasses (_JobStatus, _PushStatus, etc .. ), it ignores and use the default one.

Steps to reproduce

  1. Set CLP for volatileClasses, in our case, we set CLP for _PushStatus to readonly and no write except masterKey.
  2. try to create _PushStatus object without masterKey

Expected Results

The server should reject the request because of CLP

Actual Outcome

The server ignores the CLP and create the _PushStatus object

Environment Setup

  • Server

    • parse-server version (Be specific! Don't say 'latest'.) : 2.4.1
    • Operating System: centos
    • Hardware: [FILL THIS OUT]
    • Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): elastic beanstalk
  • Database

    • MongoDB version: 3.2.11
    • Storage engine: WiredTiger
    • Hardware: [FILL THIS OUT]
    • Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): mLab

Remarks

  • We've patched this issue on our side and will create the PR for that. Right now the other way would be checking in the beforeSave and beforeFind if you have this problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions