There is such a drug, sort of: Disulfiram. Though the effect isn't technically to make alcohol taste foul, it's to make consuming it give an almost instant, terrible hangover.
Some inkcap mushrooms which are otherwise edible have a mycotoxin with the same effect, coprine. There are persistent rumours that other mushrooms can contain some of it too, not verified as far as I know but there's enough poorly understood variation in mushrooms that I wouldn't dismiss the possibility.