Who?!
"What happened between you and Quirrell in the dungeons is a complete and total secret. So, naturally, the whole school knows!" Who blabbed! Snape wasn't there, maybe Ron? Hermione doesn't seem the type to brag about breaking school rules. Especially if she realized that had they just stayed in bed ,like she said, none of this would have happened.