Insufficient validation of profile field availability condition resulted in an SQL injection risk (by default only available to teachers and managers).