14.3. Taming Scripts

Writing scripts can be risky if you don't consider security issues when creating them. Insecure scripts can leave gateways for others to take over your web server. This could mean defacing your web site, but it could also extend to controlling the operating system. Once the operating system has become compromised by a wayward script, the only dependable way to restore integrity to that web server is to reload it from scratch (something we like to refer to as "nuke and pave"). There is no magic bullet that can properly secure scripts, which is why they are so risky to implement in the first place. Practicing good scripting techniques is the best way to secure a script. Additionally, you should consider a mixture of editing ...

Get Enterprise Mac Security: Mac OS X Snow Leopard now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.