Miggo Logo

GHSA-xh2p-7p87-fhgh: Incorrect TCR calculation in batchLiquidateTroves() during Recovery Mode

3.1

CVSS Score
3.1

Basic Information

CVE ID
-
EPSS Score
-
Published
8/5/2021
Updated
1/9/2023
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
@liquity/contractsnpm<= 1.0.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability is explicitly located in the batchLiquidateTroves function as shown by:

  1. The security advisory directly identifies batchLiquidateTroves as the vulnerable function
  2. The code diff shows the critical line modification in TroveManager.sol where collateral subtraction was incomplete
  3. The function maintains system state during liquidations and calculates TCR - the core of the vulnerability
  4. No other functions in the patch show collateral calculation modifications related to TCR
  5. Test file changes only verify the fix rather than containing vulnerable code

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

T*R is t*mpor*rily mis**l*ul*t** in t** `**t**Liqui**t*Trov*s` *un*tion *urin* R**ov*ry Mo**. T** *u* li*s in [`**t**Liqui**t*Trov*s` o* `Trov*M*n***r`](*ttps://*it*u*.*om/liquity/**v/*lo*/****************************************/p**k***s/*ontr**ts/

Reasoning

T** vuln*r**ility is *xpli*itly lo**t** in t** **t**Liqui**t*Trov*s *un*tion *s s*own *y: *. T** s**urity **visory *ir**tly i**nti*i*s **t**Liqui**t*Trov*s *s t** vuln*r**l* *un*tion *. T** *o** *i** s*ows t** *riti**l lin* mo*i*i**tion in Trov*M*n*