not have a leg to stand on
From Longman Dictionary of Contemporary Englishnot have a leg to stand onnot have a leg to stand oninformalPROVE to be in a situation where you cannot prove or legally support what you say If you didn’t sign a contract, you won’t have a leg to stand on. → legExamples from the Corpusnot have a leg to stand on• If you didn't sign a contract, you won't have a leg to stand on.