I actually interviewed someone who had jumped from both previous employers in an 8 month time frame. In the interview he was very negative to both those groups and wanted to tell me why his ideas where so much better. My interview with him did not last long.
Also, the candidate can say something like "the contract ended" or something generic. What is the point of talking about the shortcomings of their previous job? The interviewer and the interviewee should be interested in what they can do for each other, no?
There are perfectly good answers (which can include "it was a six month contract", although that stuff can be checked...) and there are even answers with the right amount of objectivity/detail which give the impression the reason why the employee left or wants to leave makes them a particularly good fit for this new job, but there's also a good chance the employee's answer raises red flags about their attitude/ability/expectations that they wouldn't give off in response to other questions.
After we'd hired him, we asked about the old company again. "Oh, it was an utter shitshow" and he went on a long and very compelling rant about how badly managed it was... in far more detail than he had when interviewing.
I feel like this is a reasonable way to do it; don't badmouth your current employer while job searching, but no need to stick around unnecessarily.