René Helmke 7791f18b51 bootstrap
2023-05-16 16:09:41 +02:00

142 lines
5.8 KiB
JSON

{
"id": "CVE-2021-21405",
"sourceIdentifier": "security-advisories@github.com",
"published": "2021-04-15T22:15:11.967",
"lastModified": "2021-04-23T14:40:27.797",
"vulnStatus": "Analyzed",
"descriptions": [
{
"lang": "en",
"value": "Lotus is an Implementation of the Filecoin protocol written in Go. BLS signature validation in lotus uses blst library method VerifyCompressed. This method accepts signatures in 2 forms: \"serialized\", and \"compressed\", meaning that BLS signatures can be provided as either of 2 unique byte arrays. Lotus block validation functions perform a uniqueness check on provided blocks. Two blocks are considered distinct if the CIDs of their blockheader do not match. The CID method for blockheader includes the BlockSig of the block. The result of these issues is that it would be possible to punish miners for valid blocks, as there are two different valid block CIDs available for each block, even though this must be unique. By switching from the go based `blst` bindings over to the bindings in `filecoin-ffi`, the code paths now ensure that all signatures are compressed by size and the way they are deserialized. This happened in https://github.com/filecoin-project/lotus/pull/5393."
},
{
"lang": "es",
"value": "Lotus es una implementaci\u00f3n del protocolo Filecoin escrito en Go. La validaci\u00f3n de la firma BLS en lotus utiliza el m\u00e9todo de biblioteca blst VerifyCompressed. Este m\u00e9todo acepta firmas en 2 formas: \"serialized\" y \"compressed\", lo que significa que las firmas BLS se pueden proporcionar como cualquiera de las 2 matrices de bytes \u00fanicas. Las funciones de validaci\u00f3n de bloques de Lotus realizan una verificaci\u00f3n de unicidad en los bloques proporcionados. Dos bloques se consideran distintos si los CID de su encabezado de bloque no coinciden. El m\u00e9todo CID para blockheader incluye el BlockSig del bloque. El resultado de estos problemas es que ser\u00eda posible castigar a los mineros por bloques v\u00e1lidos, ya que hay dos CID de bloque v\u00e1lidos diferentes disponibles para cada bloque, aunque este debe ser \u00fanico. Al cambiar de los enlaces `blst` basados ??en go a los enlaces en `filecoin-ffi`, las rutas de c\u00f3digo ahora garantizan que todas las firmas est\u00e9n comprimidas por tama\u00f1o y la forma en que se deserializan. Esto ocurri\u00f3 en https://github.com/filecoin-project/lotus/pull/5393"
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "nvd@nist.gov",
"type": "Primary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "NONE",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "NONE",
"integrityImpact": "HIGH",
"availabilityImpact": "NONE",
"baseScore": 7.5,
"baseSeverity": "HIGH"
},
"exploitabilityScore": 3.9,
"impactScore": 3.6
},
{
"source": "security-advisories@github.com",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N",
"attackVector": "NETWORK",
"attackComplexity": "HIGH",
"privilegesRequired": "NONE",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "NONE",
"integrityImpact": "HIGH",
"availabilityImpact": "NONE",
"baseScore": 5.9,
"baseSeverity": "MEDIUM"
},
"exploitabilityScore": 2.2,
"impactScore": 3.6
}
],
"cvssMetricV2": [
{
"source": "nvd@nist.gov",
"type": "Primary",
"cvssData": {
"version": "2.0",
"vectorString": "AV:N/AC:L/Au:N/C:N/I:P/A:N",
"accessVector": "NETWORK",
"accessComplexity": "LOW",
"authentication": "NONE",
"confidentialityImpact": "NONE",
"integrityImpact": "PARTIAL",
"availabilityImpact": "NONE",
"baseScore": 5.0
},
"baseSeverity": "MEDIUM",
"exploitabilityScore": 10.0,
"impactScore": 2.9,
"acInsufInfo": false,
"obtainAllPrivilege": false,
"obtainUserPrivilege": false,
"obtainOtherPrivilege": false,
"userInteractionRequired": false
}
]
},
"weaknesses": [
{
"source": "security-advisories@github.com",
"type": "Primary",
"description": [
{
"lang": "en",
"value": "CWE-347"
}
]
}
],
"configurations": [
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:a:filecoin:lotus:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.5.0",
"matchCriteriaId": "2E70B8AC-AD64-4FD9-9EDE-EB9C83587B69"
}
]
}
]
}
],
"references": [
{
"url": "https://gist.github.com/wadeAlexC/2490d522e81a796af9efcad1686e6754",
"source": "security-advisories@github.com",
"tags": [
"Exploit",
"Third Party Advisory"
]
},
{
"url": "https://github.com/filecoin-project/lotus/pull/5393",
"source": "security-advisories@github.com",
"tags": [
"Patch",
"Third Party Advisory"
]
},
{
"url": "https://github.com/filecoin-project/lotus/security/advisories/GHSA-4g52-pqcj-phvh",
"source": "security-advisories@github.com",
"tags": [
"Patch",
"Third Party Advisory"
]
}
]
}