mirror of
https://github.com/fkie-cad/nvd-json-data-feeds.git
synced 2025-05-28 09:11:28 +00:00
71 lines
4.6 KiB
JSON
71 lines
4.6 KiB
JSON
{
|
|
"id": "CVE-2024-1631",
|
|
"sourceIdentifier": "6b35d637-e00f-4228-858c-b20ad6e1d07b",
|
|
"published": "2024-02-21T03:15:08.747",
|
|
"lastModified": "2024-02-21T03:15:08.747",
|
|
"vulnStatus": "Received",
|
|
"descriptions": [
|
|
{
|
|
"lang": "en",
|
|
"value": "Impact\nThe library offers a function to generate an ed25519 key pair via Ed25519KeyIdentity.generate with an optional param to provide a 32 byte seed value, which will then be used as the secret key. When no seed value is provided, it is expected that the library generates the secret key using secure randomness. However, a recent change broke this guarantee and uses an insecure seed for key pair generation.\n\n\nSince the private key of this identity (535yc-uxytb-gfk7h-tny7p-vjkoe-i4krp-3qmcl-uqfgr-cpgej-yqtjq-rqe)\n is compromised, one could lose funds associated with the principal on \nledgers or lose access to a canister where this principal is the \ncontroller. Users are asked to take proactive measures mentioned below \nin Workarounds:Users to protect their assets.\n\n\nPatches\nPatch for the vulnerability is available in v1.0.1 for all the packages listed in the advisory. Please upgrade and deploy your canisters immediately.\n\n\nWorkarounds\nDevelopers\nThe recommended fix is to upgrade the package to the \npatched version. If that is not possible, there are couple of \nworkarounds to handle the insecure key generation.\n\n\n\n * Invoking the function as Ed25519KeyIdentity.generate(null)\n would fix the broken conditional evaluation and force the function to \ngenerate a securely random seed. However, this is not guaranteed to work\n for future upgrades.\n\n * Passing a securely generated randomness as a seed to Ed25519KeyIdentity.generate would force the library to use it as the seed to generate the key pair.\n\n\nUsers\nRemoving a controller of a canister if it's the affected principal\nFor all canisters you control, fetch the controllers of the canisters using\n\n\ndfx canister info --ic <CANISTER>\n\n\n \n\n\n\nIf you see the principal 535yc-uxytb-gfk7h-tny7p-vjkoe-i4krp-3qmcl-uqfgr-cpgej-yqtjq-rqe as one of the controllers, follow the steps below\n\n\ndfx identity whoami # record CURRENT_IDENTITY\n\ndfx identity new <NEW_IDENTITY_NAME> \ndfx identity use <NEW_IDENTITY_NAME> \ndfx identity get-principal <NEW_IDENTITY_NAME> # record NEW_IDENTITY_PRINCIPAL\n\ndfx identity use <CURRENT_IDENTITY>\ndfx canister update-settings --ic <CANISTER> --add-controller <NEW_IDENTITY_PRINCIPAL>\ndfx canister update-settings --ic <CANISTER> --remove-controller `535yc-uxytb-gfk7h-tny7p-vjkoe-i4krp-3qmcl-uqfgr-cpgej-yqtjq-rqe`\n\n\n \n\n\n\nFor more details on canister management, please visit here https://internetcomputer.org/docs/current/tutorials/developer-journey/level-1/1.6-managing-canisters \n\n\nChecking funds on wallets / ledgers\nIf you have funds on ledgers using a browser wallet, please check if the account principal matches 535yc-uxytb-gfk7h-tny7p-vjkoe-i4krp-3qmcl-uqfgr-cpgej-yqtjq-rqe. If it does, please create a new account and transfer the funds to the new account immediately.\n\n\n"
|
|
}
|
|
],
|
|
"metrics": {
|
|
"cvssMetricV31": [
|
|
{
|
|
"source": "6b35d637-e00f-4228-858c-b20ad6e1d07b",
|
|
"type": "Secondary",
|
|
"cvssData": {
|
|
"version": "3.1",
|
|
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N",
|
|
"attackVector": "NETWORK",
|
|
"attackComplexity": "LOW",
|
|
"privilegesRequired": "NONE",
|
|
"userInteraction": "NONE",
|
|
"scope": "UNCHANGED",
|
|
"confidentialityImpact": "HIGH",
|
|
"integrityImpact": "HIGH",
|
|
"availabilityImpact": "NONE",
|
|
"baseScore": 9.1,
|
|
"baseSeverity": "CRITICAL"
|
|
},
|
|
"exploitabilityScore": 3.9,
|
|
"impactScore": 5.2
|
|
}
|
|
]
|
|
},
|
|
"weaknesses": [
|
|
{
|
|
"source": "6b35d637-e00f-4228-858c-b20ad6e1d07b",
|
|
"type": "Secondary",
|
|
"description": [
|
|
{
|
|
"lang": "en",
|
|
"value": "CWE-321"
|
|
},
|
|
{
|
|
"lang": "en",
|
|
"value": "CWE-330"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"references": [
|
|
{
|
|
"url": "https://agent-js.icp.xyz/identity/index.html",
|
|
"source": "6b35d637-e00f-4228-858c-b20ad6e1d07b"
|
|
},
|
|
{
|
|
"url": "https://github.com/dfinity/agent-js",
|
|
"source": "6b35d637-e00f-4228-858c-b20ad6e1d07b"
|
|
},
|
|
{
|
|
"url": "https://github.com/dfinity/agent-js/pull/851",
|
|
"source": "6b35d637-e00f-4228-858c-b20ad6e1d07b"
|
|
},
|
|
{
|
|
"url": "https://www.npmjs.com/package/@dfinity/identity/v/1.0.1",
|
|
"source": "6b35d637-e00f-4228-858c-b20ad6e1d07b"
|
|
}
|
|
]
|
|
} |