A young woman, reportedly gang raped by eight vigilantes as punishment for adultery, is now to be publicly flogged by the Sharia police in the Indonesian province of Aceh.

According to Sydney Morning Herald, the woman, a 25-year-old widow, and her alleged partner, a married 40-year old man, were caught inside her home last Thursday by a group of eight who were intent on enforcing the sharia prohibition on sex outside marriage.

The eight vigilantes, including a 13-year old boy tied up and beat the man and repeatedly raped the woman before soaking both in raw sewage, after which the pair was then marched to the office of the local sharia police.

Ibrahim Latif, the head of the sharia police in the town of Langsa, in Aceh's far south-east reportedly said that the couple needed to be caned because they violated the religious bylaw on sexual relations.

Ibrahim added that they've confessed to having sex several times before, even though the man is married and has five children.

Meanwhile, each of the couple faces nine strokes of the cane in a public place, under the sharia law in Aceh, the report added.