TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Safely Creating Temporary Files in Shell Scripts (2005)

24 点作者 mapleoin超过 10 年前

2 条评论

e28eta超过 10 年前
Section 3.5 doesn&#x27;t seem very safe to me, because I think it allows the user running the script to dictate where the directory will be created via an environment variable.<p>I don&#x27;t know what specifically would be gained with that control. Maybe an attacker could specify a TMPDIR that resolves to a path on a FUSE mount and start doing nefarious things with the data in the tmp file?
评论 #8281998 未加载
mindslight超过 10 年前
These kinds of articles should not be considered guides, but bug reports instead.