GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Apply suggestions from code review · github/codeql@143e168

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • java/ql/src/Security/CWE/CWE-022
    • TaintedPath.qhelp
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎java/ql/src/Security/CWE/CWE-022/TaintedPath.qhelp‎

Copy file name to clipboardExpand all lines: java/ql/src/Security/CWE/CWE-022/TaintedPath.qhelp
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ such as "/etc/passwd".</p>
4141
<sample src="TaintedPath.java" />
4242

4343
<p>Simply checking that the path is under a trusted location (such as a known public folder) is not enough,
44-
however, since the path could contain relative components such as "..". To fix this, we check that the it does
44+
however, since the path could contain relative components such as "..". To fix this, check that it does
4545
not contain ".." and starts with the public folder.</p>
4646

4747
<sample src="TaintedPathGood.java" />
4848

49-
<p>Alternatively, if we only want to allow simple filenames without a path component, we can remove all path
49+
<p>Alternatively, if you only want to allow simple filenames without a path component, you can remove all path
5050
separators ("/" or "\") and all ".." sequences from the input before using it to construct a file path.</p>
5151

5252
<sample src="TaintedPathGood2.java" />

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.