-
-
Notifications
You must be signed in to change notification settings - Fork 260
Closed
Labels
Description
[x] The FAQ doesn't contain a resolution to my issue
Versions
- minecraft-protocol: 1.47.0
- server: vanilla 1.12.2
- node: 21.7.1
Detailed description of a problem
when trying to connect, on login.js line 120 the padding "crypto.constants.RSA_PKCS1_PADDING" throws an error, due to CVE-2023-46809
TypeError: RSA_PKCS1_PADDING is no longer supported for private decryption, this can be reverted with --security-revert=CVE-2023-46809
at Client.onEncryptionKeyResponse ([...]\minecraft-protocol\src\server\login.js:120:39)
...
Current code
createServer({
version: '1.12.2',
port: 25565,
beforePing: (response) => {
if (properties.enableStatus === false) return;
response.favicon = favicon;
},
})Expected behavior
wasnt sure if there was a way to fix this, or if its just a part of the encryption method
edit: the error is silent, and the server just responds "Disconnected"
and i should clarify, im not sure if its possible to use another encryption method or not
Additional context
originally was using node v20.11.1, but updated at some point to see if it would help
passing "--security-revert=CVE-2023-46809" gives another error
was an issue caused by doing
npm audit --force