34201 - [BC - Critical] Prototype pollution vulnerability in remove_tim...
Description
Brief/Intro
Vulnerability Details
this.p2p.registerInternal(
'remove_timestamp_cache',
async (
payload: TimestampRemoveRequest,
respond: (result: boolean) => unknown
) => {
const { txId, receipt2, cycleCounter } = payload
/* eslint-disable security/detect-object-injection */
if (this.txTimestampCache[cycleCounter] && this.txTimestampCache[cycleCounter][txId]) {
// remove the timestamp from the cache
delete this.txTimestampCache[cycleCounter][txId]
this.txTimestampCache[cycleCounter][txId] = null
/* prettier-ignore */ this.mainLogger.debug(`Removed timestamp cache for txId: ${txId}, timestamp: ${Utils.safeStringify(this.txTimestampCache[cycleCounter][txId])}`)
nestedCountersInstance.countEvent('consensus', 'remove_timestamp_cache')
}
await respond(true)
}
)Impact Details
References
Proof of concept
Previous34093 - [BC - Critical] lib-net can be used to force oom reap of shardu...Next34252 - [BC - Critical] Bypass Certificate Signing Validation
Last updated
Was this helpful?