The BriVault contract is vulnerable to a first depositor attack ( or inflation attack). An attacker can deposit a minimal amount to receive shares at a 1:1 ratio, then donate a large sum directly to the vault to inflate the share price. This causes subsequent depositors to receive drastically fewer shares for their deposits, allowing the attacker to control the majority of the vault.
Likelihood:
First deposit
No initial deposit in constructor
Impact:
In betting context, attacker gains disproportionate shares of winner pool.
Victims lose most of their deposit value to the attacker.
Add initial deposit.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.