Skip to content

Commit baf5133

Browse files
Update documentation
1 parent 070d678 commit baf5133

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python/ql/src/Security/CWE-020/CookieInjection.qhelp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
<qhelp>
55

66
<overview>
7-
<p>Constructing cookies from user input can allow an attacker to control a user's cookie. Additionally, if the cookie is set using a raw header, cookie attributes such as the <code>Secure</code> flag may be controlled by an attacker.
7+
<p>Constructing cookies from user input can allow an attacker to control a user's cookie.
8+
This may lead to a session fixation attack. Additionally, client code may not expect a cookie to contain attacker-controlled data, and fail to sanitize it for common vulnerabilities such as Cross Site Scripting (XSS).
9+
An attacker manipulating the raw cookie header may additionally be able to set cookie attributes such as <code>HttpOnly</code> to insecure values.
810
</p>
911
</overview>
1012

@@ -19,6 +21,7 @@ and the second sets a cookie's raw value through the <code>set-cookie</code> hea
1921
</example>
2022

2123
<references>
24+
<li>Wikipedia - <a href="https://en.wikipedia.org/wiki/Session_fixation">Session Fixation</a>.</li>
2225
</references>
2326

2427
</qhelp>

0 commit comments

Comments
 (0)