Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d9f24a commit e53ed47Copy full SHA for e53ed47
1 file changed
python/ql/src/Security/CWE-022/PathInjection.qhelp
@@ -43,7 +43,8 @@ In the second example, it appears that the user is restricted to opening a file
43
special characters. For example, the string <code>"../../../etc/passwd"</code> will result in the code
44
reading the file located at <code>"/server/static/images/../../../etc/passwd"</code>, which is the system's
45
password file. This file would then be sent back to the user, giving them access to all the
46
-system's passwords.
+system's passwords. Note that it is still possible to use an absolute path, since the result of
47
+<code>os.path.join("/server/static/images/", "/etc/passwd")</code> is <code>"/etc/passwd"</code>.
48
</p>
49
50
<p>
0 commit comments