火中取栗

Etymology
From the fable.

Idiom

 * 1) to pull someone's chestnuts out of the fire; to be someone's cat's-paw