Re:In second largest DeFi hack, Blockchain Bridge loses $320...
by balls187 on Thursday February 03, 2022 @01:56AM
(#30189526)
> it is much better to build stupid simple systems ... over complex systems which are almost certain to contain exploitable corner cases.
This popped into my mind when reading your comment.
This also ties in with general security hygiene and understanding; you need to know what is trusted, what is untrusted, and how to make them interact. Ideally you don't validate untrusted data; instead you build your system so that is not necessary. Every validation that needs to be performed is one more place where something can go wrong. If you need to validate a signature, you go and validate it; you don't ask the user to do it and then validate that they really did it properly and the validation happened. That's what happened here, as far as I can tell. The extra, avoidable validation went wrong.