|
|
|
|
|
by UncleMeat
1344 days ago
|
|
"As expected" is doing a lot of lifting here. In some sense, this is true for all hacks. The code is just doing what you told it to do when it returns to some gadget in libc after the return address is smashed. All exploits are making a program do what it says it does but where that behavior is different than what the developers hoped it would do. |
|
They just didn't realize that there are dangers of using a price oracle for collateral valuation that has recently shown a sharp upward movement. (Which fals under "fitness for purpose".)
So the code correctly lent to someone at Mango's current valuation, it just didn't require the optimal-in-hindsight collateral ratio for such a volatile asset.
[1] https://news.ycombinator.com/item?id=33173028