Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential High Importance - Cerebrate crash, locked out on the error code, possibly affecting other users #152

Open
skiddie0057 opened this issue May 9, 2023 · 1 comment

Comments

@skiddie0057
Copy link

skiddie0057 commented May 9, 2023

Dear Cerebrate team

As I was testing cerebrate I noticed that the application drops a 500 (internal server error) status code when editing bookmark info so I went poking around.

All I had to do is set my ui.bookmarks value to [][] and it crashed the whole service and I cannot log back in. I assume this isnt the case for other users? In case it is, this is important to fix as soon as possible.

Here is the description of the bug:
When editing my bookmark value trough burpsuite (modifying the request) – putting the value from [] (which seems to be default) to [][] causes an error that cannot be bypassed by logging back in.

------WebKitFormBoundary95s3y2rpKQ9XevLE
Content-Disposition: form-data; name="user_id"

87 -> my user ID, there is an issue here too, by default the user id is 0 or 1 meaning the wrong user id, i changed this to myself manually and it fixed the problems with modification issues (anothing thing you should fix, it should be an easy fix). Howerver then this issue happened ,below
------WebKitFormBoundary95s3y2rpKQ9XevLE
Content-Disposition: form-data; name="name"

ui.bookmarks
------WebKitFormBoundary95s3y2rpKQ9XevLE
Content-Disposition: form-data; name="value"

[][] -> causes the crash “““array_map(): Argument #2 ($array) must be of type array, null given“““
Fix? Easy. Just change it back to [] or whatever default value is, it should be []


Please set the value of my bookmark to a default one to fix the issue. If the issue affected other users too - this should be an urgent fix.

Kindest regards,

F.O.

@skiddie0057 skiddie0057 changed the title IMPORTANT - Causing a crash and unable to do anything Potential High Importance - Cerebrate crash, locked out on the error code, possibly affecting other users May 9, 2023
@iglocska
Copy link
Member

Yeah, that definitely sounds like a bug, on multiple fronts:

  • the user ID passed should not be 0/1 obviously
  • we should gracefully handle invalid data in the bookmarks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants