Update java/ql/src/experimental/Security/CWE/CWE-348/UseOfLessTrustedSource.qhelp

Co-authored-by: Chris Smowton <smowton@github.com>
This commit is contained in:
haby0
2021-04-20 19:33:47 +08:00
committed by GitHub
parent d82878ac3b
commit 9ece4dac0f

View File

@@ -10,7 +10,7 @@ bypass a ban-list, for example.</p>
</overview>
<recommendation>
<p>When the software is not using a proxy server, get the last ip.</p>
<p>Do not trust the values of HTTP headers allegedly identifying the originating IP. If you are aware your application will run behind some reverse proxies then the last entry of a <code>X-Forwarded-For</code> header value may be more trustworthy than the rest of it because some reverse proxies append the IP address they observed to the end of any remote-supplied header.</p>
</recommendation>
<example>