This is my first solo audit of any sort, unfortunately due to me coming across this contest just before a few hours of its completion I couldn't find much of the vunerabilities. Sorry if you find it difiicult to read my report, I will definitely improve.
[H-1] Anyone can inherit the InheritanceManager contract, should only be the benificaries
[H-1] Severly breaks the protocol, as anyone can call the function InheritanceManager::inherit after deadline which will transfer the ownership to any msg.sender who is not even a benificary, also the logic for inheritance is also wrong.
Affected code
Tools used - Foundry
Proof of code
This test will pass and transfer the ownership to unknown actor.
[H-1]
Mitigation
Add InheritanceManager::onlyBeneficiary modifier in the contract to ensure only benificiary can call the function. (here we have corrected the logic inside the inherit function which was also wrong)
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.