Oil prices rose on Wednesday, rebounding from two-month lows as continued attacks on commercial vessels in the Strait of Hormuz offset hopes of de-escalation in the Iran war.