Security #9802 - Check falsification of system files

http://tracker.modx.com/issues/9802