apply suggestions from doc review

Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>
This commit is contained in:
Erik Krogh Kristensen
2022-02-07 09:43:49 +01:00
committed by GitHub
parent 35999a7f8f
commit 4c317f5753

View File

@@ -3,15 +3,15 @@
<overview>
<p>
Temporary files created in the operating system tmp directory are by default accessible
to other users. This can in some cases lead to information exposure, or in the worst
case to remote code execution.
Temporary files created in the operating system's temporary directory are by default accessible
to other users. In some cases, this can lead to information exposure, or in the worst
case, to remote code execution.
</p>
</overview>
<recommendation>
<p>
Use a well tested library like <a href="https://www.npmjs.com/package/tmp">tmp</a>
Use a well-tested library like <a href="https://www.npmjs.com/package/tmp">tmp</a>
for creating temporary files. These libraries ensure both that the file is inaccessible
to other users and that the file does not already exist.
</p>
@@ -19,7 +19,7 @@ to other users and that the file does not already exist.
<example>
<p>
The following example creates a temporary file in the operating system tmp directory.
The following example creates a temporary file in the operating system's temporary directory.
</p>
<sample src="examples/insecure-temporary-file.js" />