This is a follow up question to this HNQ question from academia.
Suppose a student S posts an assignment for school/university/... on a freelancer website. A faculty member F sees this and agrees to provide a solution to the assignment for a price x.
Legally, imho, the contract that S and F enter is valid. S provides the price x, F provides the solution.
However, F decides to provide a solution that is uniquely identifiable, thereby knowingly sabotaging their solution.
The student S turns in the solution, F identifies it and therefore F fails S and takes disciplinary action for cheating.
F returns the money to S later and was always going to do so.
However, F and S had a contract. I assume F is breaching the contract to provide a "valid" solution by providing a solution they know will not do what the student wants it to do, even if it looks like it would.
Let's take US law for reference though I suppose it would be more or less the same in many jurisdictions.
Is F liable for the breach of contract and what possible damages could they be liable for? Would it be a realistic scenario that the student sues F for getting them thrown out of the school if that happens and gets a compensation for that? Or in other words, apart from probably beeing ethical, is it legal to place a trap for the student?