prb-math
v3.3.2 not audited and contains some errors.
#6
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
duplicate-423
satisfactory
satisfies C4 submission criteria; eligible for awards
Lines of code
https://github.com/PaulRBerg/prb-math/blob/1edf08dd73eb1ace0042459ba719b8ea4a55c0e0/package.json#L1-L4
Vulnerability details
Impact
The library
prb-math
v3.3.2 documents that it is not audited by a security researcher. This means its more risky to rely on this library.Proof of Concept
prb-math v3.3.2 is being used.
prb-math v3.3.2 not audited
Some issues:
pow
is used in TierCalculationLib.getTierOdds and DrawAccumulatorLib.computeC.Common.prbExp2
: duplicated bitmasks - According to ref :The bit masks used on Line 413 and Line 440 in
Common.sol
are the same, i.e.0xFF00000000
. The latter should have two fewer zeroes.Tools Used
Manual Review
Recommended Mitigation Steps
prb-math
v3.3.2 may break the project's computational protocolsprb-math
will add a new directory "audits" with PDF references to the audits performed byCantina
.prb-math
V4 after being audited.Assessed type
Math
The text was updated successfully, but these errors were encountered: