llamaCVEVulnerability Intelligence
/
Advisory · GitHub · PyPI · vyper

GHSA-375M-5FVV-XQ23

VVE-2021-0002: Incorrect `returndatasize` when using simple forwarder proxies deployed prior to EIP-1167 adoption

Parche disponible
Descargar PNG JSON
CVSS
—
low
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -61 d de la divulgación
Exposición2.040 dDesde la divulgación, 19 abr 2021, 10:11 a. m.
Detección2.037 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Parche 0.2.9
Monitoreo
Detectada
17 feb 21
19 abr 21
24 oct 26
17 nov 26
19 nov 26
17 feb 21
27 jul 22
4 ene 24
12 jun 25
19 nov 26
FechaFaseEventoDetalle
Remediación Parche 0.2.9 vyper · -61 d desde divulgación
Divulgación Publicada GHSA-375M-5FVV-XQ23 divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

Background

@tjayrush reported a data handling issue with certain Web3 libraries using Vyper-deploy forwarder proxy contracts using our Vyper's built-in `create_forwarder_to` function prior to our change to support EIP-1167 style forwarder proxies.

### Impact
If you are an end user of a forwarder-style proxy deployed using Vyper's built-in `create_forwarder_to` function AND you have a function that returns >4096 bytes AND you do no return data sanitation on the value returned, you could potentially see a data corruption issue.

Otherwise, if you are handling the result of a return call AND you expect a specific `RETURNDATASIZE` that is less than 4096 (such as `SafeERC20.safeTransfer`) then the call will fail that check.

### Patches
The issue was patched when we upgraded to EIP-1167 style forwarder proxies in #2281.

### Workarounds
If you are making a call to a contract method that is expected to return <= 4096 bytes, there is no issue as the ABI decoders in both Solidity and Vyper will truncate the data properly. Web3 libraries will also do this, unless you are doing `eth_call` or `eth_sendTransaction` directly.

If you are using a Solidity library that checks `RETURNDATASIZE` of an external call to a forwarder proxy deployed prior to this patch, it will fail on that assertion (such as `SafeERC20.safeTransfer`). The workaround is to always do a greater than or equal to check, rather than a strict equals to check.

Versiones

Rangos afectados

Afectada Corregida Última
vyper< 0.2.9
0.2.9
0.4.3
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
pypivyper
Corregida 0.2.9 -61 d 0.4.3 no afectada
Versiones corregidas0.2.9
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Otrahttps://github.com/vyperlang/vyper/security/advisories/GHSA-375m-5fvv-xq23
Otrahttps://github.com/vyperlang/vyper/pull/2281
Otrahttps://pypi.org/project/vyper

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.