Submitted by Ch_301
In this protocol NFT owner can set the NFT in sale even if it is still under active rent by triggering execute.rs#setlistforsell() which could set token.sell.auto_approve to a true value (means anyone can directly be approved and this will open multiple doors for attackers).
Users can call execute.rs#setbidtobuy() and send the necessary amount to gain approval of this NFT:
Using the same function setbidtobuy() any address that has an existing bid in the NFT can cancel its bid and receive back all the initial funds (no fees in this function).
On the other side, the owner or any approved address can invoke execute.rs#withdrawtolandlord() and specify the receiver of the withdrawal funds (this function gives the homeowners the ability to withdraw a part of the funds even before the rent end, this is only for longterm rentals).
However, the Attacker can create a sophisticated attack using withdrawtolandlord() and setbidtobuy():
Steal the funds from long-term reservations using setbidtobuy().
Invalid Validation
blockchainstar12 (Coded Estate) acknowledged
