Safely creating temporary files in shell scripts
This paper discusses how a programmer can write shell scripts that securely create temporary files in world/group writable directories.
After explaining why it is important to be careful with temporary files I give some hints on how to identify and fix vulnerable shell scripts. This paper concentrates on how things are done. I intentionally leave out lots of gory details in order to make this document shorter and easier to understand for people that just want to write secure code with as little extra effort as possible.
By Stefan Nordhausen at LinuxSecurity.
[ Read more ]
- Review: The Complete Linux Shell Programming Training Course (7 March 2003)
By subscribing to our early morning news update, you will receive a daily digest of the latest security news published on Help Net Security.
With over 500 issues so far, reading our newsletter every Monday morning will keep you up-to-date with security risks out there.