Moroccan media have criticised a Spanish police report that accused Morocco's security forces of failures as tens of thousands of migrants crossed into the Spanish territory of Ceuta.

More than 70,000 migrants entered Ceuta from Morocco on July 30 and 31 in an unprecedented, chaotic surge that left scores dead and sparked European Union infighting over the touchy issue of migration.

The Spanish police report seen by AFP flagged a Moroccan police response of "total permissiveness" that it said facilitated the rush, with some officers directing migrants towards the water.

READ ALSO: Why are there still thousands of migrants in Spain's Ceuta?

Moroccan police numbers around the border post were "clearly smaller than usual" and officers "made no serious attempt" to stem the surge, said the report.