Het is vermeldenswaard dat dit dezelfde bibliotheek is die @CetusProtocol heeft gemaakt, waarop letterlijk ELKE CLAMM op Sui vertrouwt. De fix transformeert dit nogal dubieuze stukje: public fun sub(arg0: I128, arg1: I128) : I128 { let v0 = I128{bits: u128_neg(arg1.bits)}; add(arg0, wrapping_add(v0, from(1))) } In een goede overflow-bescherming: public fun sub(arg0: I128, arg1: I128) : I128 { let v0 = wrapping_sub(arg0, arg1); let v1 = sign(arg0) != sign(arg1) && sign(arg0) != sign(v0); assert!(!v1, 0); v0 } Grote dank aan @bluefinapp voor het beveiligen van het hele Sui CLAMM-ecosysteem! Dit is precies het soort rigoureus beveiligingswerk dat iedereen ten goede komt.
During our ongoing formal verification with our partners at @AsymptoticTech, of integer-mate – a core math library used across many Sui protocols – we identified an edge case where signed subtraction could behave incorrectly when the second operand reached its minimum possible value. While the bug had no impact on Bluefin’s systems, the uncertainty around how others might use the library prompted us to act quickly - preparing an improved implementation with our security partners and working closely with Sui Foundation to spread the word to affected DEXs so they could fix this bug. Thank you to everyone involved: @AsymptoticTech for the deep dive and spotting the edge case, @osec_io’s @NotDeGhost for jumping in on verification, and @SuiNetwork for leading a swift and coordinated response. This is the kind of collaboration that sets Sui apart. Security is an ongoing commitment, and this quick identification and solve shows we're in this together. We’ll continue investing in formal verification, architecture reviews, and ecosystem-wide coordination to raise the bar for secure and verifiable DeFi.
Origineel weergeven
8,97K
25
De inhoud op deze pagina wordt geleverd door derden. Tenzij anders vermeld, is OKX niet de auteur van het (de) geciteerde artikel(en) en claimt geen auteursrecht op de materialen. De inhoud is alleen bedoeld voor informatieve doeleinden en vertegenwoordigt niet de standpunten van OKX. Het is niet bedoeld als een goedkeuring van welke aard dan ook en mag niet worden beschouwd als beleggingsadvies of een uitnodiging tot het kopen of verkopen van digitale bezittingen. Voor zover generatieve AI wordt gebruikt om samenvattingen of andere informatie te verstrekken, kan deze door AI gegenereerde inhoud onnauwkeurig of inconsistent zijn. Lees het gelinkte artikel voor meer details en informatie. OKX is niet verantwoordelijk voor inhoud gehost op sites van een derde partij. Het bezitten van digitale activa, waaronder stablecoins en NFT's, brengt een hoge mate van risico met zich mee en de waarde van deze activa kan sterk fluctueren. Overweeg zorgvuldig of de handel in of het bezit van digitale activa geschikt voor je is in het licht van je financiële situatie.