Purchasing Property Question

Hello all,

I am about to purchase a SFH and I was wondering if was legal to offer 5 to 10K over sellers asking price and then have a side contract requiring the seller to issue me payment for the 5 to 10K overage for repair.

I appreciate any feedback

Not legal in the eyes of the lender, but it is not uncommon for this to happen.