Fish in troubled waters

To involve oneself in a difficult or dangerous situation in order to gain an advantage.

The politician was fishing in troubled waters in order to gather information about the scandal.