34489 - [BC - Insight] ActivetsValidateRecordTypes do not check all th...
Description
Brief/Intro
Vulnerability Details
export function validateRecordTypes(rec: P2P.ActiveTypes.Record): string {
let err = validateTypes(rec, {
active: 'n',
activated: 'a',
activatedPublicKeys: 'a',
})
if (err) return err
for (const item of rec.activated) {
if (typeof item !== 'string') return 'items of activated array must be strings'
}
for (const item of rec.activatedPublicKeys) {
if (typeof item !== 'string') return 'items of activatedPublicKeys array must be strings'
}
return ''
}Recommendation
Impact Details
References
Proof of Concept
Previous34484 - [BC - Critical] Tricking legit node to signed maliciously contr...Next34500 - [BC - Critical] Prototype pollution vulnerability in get_tx_tim...
Last updated
Was this helpful?