avindra / suserpmutil

Scripts that assist in packaging sources (for RPM specs). Made for openSUSE Linux.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove use of predictable directories

avindra opened this issue · comments

Valuable feedback from @cboltz:

I just had a quick look at the vendor-* scripts, and both seem to use
fixed or predictable filenames in /tmp/ or /dev/shm/. Both directories
are world-writeable, which makes this a possible security issue (for
example allowing symlink attacks).

Please use mktemp -d to create a temporary directory in a secure
way.