Application safeguards
Account passwords are hashed with PHP password functions and are never returned by the API. Database writes use prepared queries, uploads are checked by type and size, and administrator actions require the correct authenticated role.