Submitted by 0x52, also found by __141345__, Chom, csanuragjain, and ladboy233
https://github.com/Plex-Engineer/lending-market-v2/blob/ea5840de72eab58bec837bb51986ac73712fcfde/contracts/Stableswap/BaseV1-core.sol#L72
TWAP oracle easily manipulated.
periodSize is set to 0 meaning that the oracle will take a new observation every single block, which would allow an attacker to easily flood the TWAP oracle and manipulate the price.
Increase periodSize to be greater than 0, 1800 is typically standard.
nivasan1 (Canto) confirmed
Alex the Entreprenerd (judge) commented:
