The constitutionality of the detention of Khairuddin Abu Hassan and his lawyer Matthias Chang under the Security Offences (Special Measures) Act 2012 (Sosma) for the offence of allegedly committing financial sabotage, will be referred to the Federal Court.