The `inherit` function allows anyone to call it, when the conditions are right, and become the new owner. The problem is that in a public mempool which ethereum has, the actual owner transaction calling this function is available for everyone to see, making it possible for any rando to frontrun said transaction and claim the ownership for themselves.
The issue occurs here:
The owner of the contract loses ownership, and with it, any funds associated with the contract.
Manual review, foundry test suite
Maybe use a whitelist system to allow access to the function
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.