Article

Another security issue emerges after ZCode was open-sourced: the default encryption key can be derived from the username and path

Beating AI News reports that after ZCode was open-sourced, developers discovered another security issue in the code. ZCode encrypts and stores users' login credentials locally, but by default, the decryption key can be directly derived from the operating system, username, and user directory.

This information is generally not difficult to obtain. Once an attacker obtains the file in which ZCode stores credentials, they can regenerate the key using the public source code, without needing to break the encryption algorithm.

ZCode's official documentation states that these login credentials are "encrypted per device and cannot be decrypted after changing devices." However, the default implementation in the public source code does not use a device ID or hardware information. The official statement does not match the open-source code.

However, this is not a vulnerability that allows credentials to be stolen remotely out of thin air. An attacker must still first obtain the local credential file; users who set ZCODE_CREDENTIAL_SECRET themselves will not use the default key described above.

If the file is leaked, the login sessions for ZCode, Z.ai, or BigModel may be restored, allowing accounts to be impersonated or Coding Plan quotas to be consumed, but it will not result in the computer being compromised.

Original link https://m.theblockbeats.info/flash/368194