Indonesian President Joko Widodo has ordered an official investigation into allegations top police and military officers were involved in trafficking illegal drugs.

Claims that military brass and senior police took kickbacks from a drug kingpin have stoked huge controversy in Indonesia, where the government is waging a war on narcotics and last month executed four convicted traffickers.

Freddy Budiman — who was among the four shot by firing squad — allegedly told a prominent human rights activist in 2014 that he paid police, military and specialist narcotics agents to protect his lucrative business.