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

Still seeing this in the latest plugin update v3.1.2 Node v20.12.2: #562

Open
lenoxys opened this issue May 3, 2024 · 19 comments
Open

Still seeing this in the latest plugin update v3.1.2 Node v20.12.2: #562

lenoxys opened this issue May 3, 2024 · 19 comments

Comments

@lenoxys
Copy link
Contributor

lenoxys commented May 3, 2024

          Still seeing this in the latest plugin update v3.1.2 Node v20.12.2:

[05/03/2024, 11:30:44] [EufySecurity] ERROR
***************************
****** ERROR MESSAGE ******
***************************
Error: Your current Node.js version (v20.12.2) is incompatible with the RSA_PKCS1_PADDING used by the plugin.
If you run the plugin with an incompatible version of Node.js, livestream functionality will be disrupted.

  You can override this warning by configuring a special parameter in the global configuration.
  To resolve this issue, please consider downgrading to a compatible version using a command similar to: sudo hb-service update-node 20.11.0.

  Versions known to cause compatibility issues with this plugin include those within the following ranges:
  - Node.js 18.x.x (starting from 18.19.1 up to the next major release)
  - Node.js 20.x.x (starting from 20.11.1 up to the next major release)
  - Node.js 21.x.x (starting from 21.6.2 up to the next major release)

  For instructions on how to upgrade or downgrade Node.js, please refer to: https://github.com/homebridge/homebridge/wiki/How-To-Update-Node.js
  For more information on the security vulnerability affecting Node.js, visit: 
  https://nodejs.org/en/blog/vulnerability/february-2024-security-releases#nodejs-is-vulnerable-to-the-marvin-attack-timing-variant-of-the-bleichenbacher-attack-against-pkcs1-v15-padding-cve-2023-46809---medium
  ***************************

Originally posted by @Stromos in #549 (comment)

@lenoxys
Copy link
Contributor Author

lenoxys commented May 3, 2024

@Stromos, please use PR only to asses code.
The message is pretty self explanatory, no ?

@Stromos
Copy link

Stromos commented May 3, 2024

I apologize, I wasn't sure if the fix was supposed to get around it. I don't necessarily want to downgrade Node because a lot of plugins always want the latest version. Is this considered a Node issue that will be fixed in a node update or something deprecated that needs to be replaced?

@lenoxys
Copy link
Contributor Author

lenoxys commented May 3, 2024

I'm completely dépend of eufy rely on this cypher which has been deprecated by NodeJS. So until NodeJS provide me a way to bypass this security measure (this is currently in discussion) I don't have choice

@Martynet
Copy link

Hi, I'm new to eufy cams. Just purchase two S220s SoloCams. I'm running Homebridge in Docker on Synology. But I know only how to downgrade or upgrade Homebridge, but I'm not sure how to downgrade Node.js. Can you help please? Thank you
Screenshot 2024-05-25 at 02 15 32

@ccanalia82
Copy link

ccanalia82 commented May 25, 2024 via email

@Martynet
Copy link

hb -service update-node 20.11.03

Thank you. I just tried that but the command isn't working... See attached screenshot
Screenshot 2024-05-25 at 20 43 27

@ccanalia82
Copy link

ccanalia82 commented May 25, 2024 via email

@Martynet
Copy link

No space between hb-  and service. hb-serviceSent from my iPhoneOn May 25, 2024, at 13:45, Martynet @.> wrote: hb -service update-node 20.11.03 Thank you. I just tried that but the command isn't working... See attached screenshot Screenshot.2024-05-25.at.20.43.27.png (view on web) —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.>

I see, my bad... Tried new command and now this :)

Screenshot 2024-05-25 at 20 49 30

@ccanalia82
Copy link

ccanalia82 commented May 25, 2024 via email

@Martynet
Copy link

You need 20.11.0. Directly from the log you posted:You can override this warning by configuring a special parameter in the global configuration. To resolve this issue, please consider downgrading to a compatible version using a command similar to: sudo hb-service update-node 20.11.0.Sent from my iPhoneOn May 25, 2024, at 13:50, Martynet @.> wrote: No space between hb-  and service. hb-serviceSent from my iPhoneOn May 25, 2024, at 13:45, Martynet @.> wrote: hb -service update-node 20.11.03 Thank you. I just tried that but the command isn't working... See attached screenshot Screenshot.2024-05-25.at.20.43.27.png (view on web) —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.> I see, my bad... Tried new command and now this :) Screenshot.2024-05-25.at.20.49.30.png (view on web) —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.>

I'm out of luck today :)
root@HUGO:/var/lib/homebridge $ sudo hb-service update-node 20.11.0
ERROR: sudo / root access is not allowed by the homebridge service account. You can use "su " to swap to your local user account.

@ccanalia82
Copy link

ccanalia82 commented May 26, 2024 via email

@ccanalia82
Copy link

ccanalia82 commented May 26, 2024 via email

@Martynet
Copy link

Screen shot example for what I commented. On May 26, 2024, at 06:57, Chris Canalia @.> wrote:Don’t use sudo in this case. It’ll work without it. That’s why my examples showed without. =)Sent from my iPhoneOn May 25, 2024, at 14:12, Martynet @.> wrote: You need 20.11.0. Directly from the log you posted:You can override this warning by configuring a special parameter in the global configuration. To resolve this issue, please consider downgrading to a compatible version using a command similar to: sudo hb-service update-node 20.11.0.Sent from my iPhoneOn May 25, 2024, at 13:50, Martynet @.> wrote: No space between hb-  and service. hb-serviceSent from my iPhoneOn May 25, 2024, at 13:45, Martynet @.> wrote: hb -service update-node 20.11.03 Thank you. I just tried that but the command isn't working... See attached screenshot Screenshot.2024-05-25.at.20.43.27.png (view on web) —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.> I see, my bad... Tried new command and now this :) Screenshot.2024-05-25.at.20.49.30.png (view on web) —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.> I'm out of luck today :) @.:/var/lib/homebridge $ sudo hb-service update-node 20.11.0 ERROR: sudo / root access is not allowed by the homebridge service account. You can use "su " to swap to your local user account. —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.>

It’s working now!! Thank you!

@mynameisbrendan
Copy link

I have been meaning to address this error for a while now. This issue was the first result when I googled the log text, and the command above has quickly downgraded my node.js and I have my cameras back. Thanks!

@mpjalexander
Copy link

The log entry says, “ You can override this warning by configuring a special parameter in the global configuration.” I don’t use the plugin for live streaming, so what’s the special parameter I need to add to ignore this issue?

@RudiRom
Copy link

RudiRom commented Sep 25, 2024

The log entry says, “ You can override this warning by configuring a special parameter in the global configuration.” I don’t use the plugin for live streaming, so what’s the special parameter I need to add to ignore this issue?

I also don't use live streaming. So how to override the parameter?

@jadonbaker
Copy link

Could we please have some details on how to override this parameter? I also don't require live streaming and cannot use this plugin currently.

@dfberger
Copy link

dfberger commented Nov 9, 2024

I just looked at the code (

if (!this.checkNodeJSVersionCompatibility()) {
), and it looks like (1) you can't actually suppress the error message and (2) the error message doesn't stop the plugin from initializing.

The compatibility check also doesn't check to see if the CVE revert has been applied (which is only possible in node 19, 20, and 21), so it will show up in the log even if the --security-revert argument has been passed to node at startup.

@dfberger
Copy link

#624 (comment)

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

No branches or pull requests

9 participants