Meshcentral: after upgrade to 0.6.39 -> mc crash with critical error -> cannot read proberty...

Created on 17 Sep 2020  路  7Comments  路  Source: Ylianst/MeshCentral

image

any idea what we make wrong?

thanks for help

Fixed - Confirm & Close bug

Most helpful comment

Seems to be working now on .40! thanks guys

All 7 comments

node update to 12.18.4 we have make... same problem...

-------- 9/17/2020, 10:31:51 AM ---- 0.6.39 --------

c:\meshcentral\node_modules\meshcentral\webserver.js:727
if (token.startsWith('cookie=')) {
^

TypeError: Cannot read property 'startsWith' of undefined
at checkUserOneTimePassword (c:\meshcentral\node_modules\meshcentral\webserver.js:727:19)
at c:\meshcentral\node_modules\meshcentral\webserver.js:937:21
at c:\meshcentral\node_modules\meshcentral\webserver.js:599:36
at AsyncWrap. (c:\meshcentral\node_modules\meshcentral\pass.js:31:88)
at AsyncWrap.wrap.ondone (internal/crypto/pbkdf2.js:36:48)

===========================================

Note Same problem on node 14.11.0
NOTE: Upon Pressing Login, Crash and above error is generated in:
-Chrome
-Edge
-Firefox
-IE
DOES NOT OCCUR:
-Opera

It looks like a bug. It should be:

if (token!=null && token.startsWith('cookie=')) {

it seems we need to work better on sanitizing the code from null or undefined variables more.

Exactly. Just rolled back to v0.6.38 until I can fix this.

Published MeshCentral v0.6.40 with a fix for this.

Seems to be working now on .40! thanks guys

works - thanks a lot! great work!

Was this page helpful?
0 / 5 - 0 ratings