double-edged sword

having both positive and negative effects.