File tree Expand file tree Collapse file tree 3 files changed +27
-36
lines changed
javascript/ql/src/Security/CWE-918 Expand file tree Collapse file tree 3 files changed +27
-36
lines changed Original file line number Diff line number Diff line change 19
19
</p >
20
20
</overview >
21
21
22
- <recommendation >
23
-
24
- <p >
25
- Restrict user inputs in the URL of an outgoing request, in particular:
26
- <ul >
27
- <li >
28
- Avoid user input in the hostname of the URL.
29
- Pick the hostname from an allow-list instead of constructing it directly from user input.
30
- </li >
31
- <li >
32
- Take care when user input is part of the pathname of the URL.
33
- Restrict the input so that path traversal ("<code >../<code >")
34
- cannot be used to redirect the request to an unintended endpoint.
35
- </li >
36
- </ul >
37
- </p >
38
-
39
- </recommendation >
22
+ <include src =" RequestForgeryRecommendation.inc.qhelp" />
40
23
41
24
<example >
42
25
Original file line number Diff line number Diff line change 20
20
</p >
21
21
</overview >
22
22
23
- <recommendation >
24
-
25
- <p >
26
- Restrict user inputs in the URL of an outgoing request, in particular:
27
- <ul >
28
- <li >
29
- Avoid user input in the hostname of the URL.
30
- Pick the hostname from an allow-list instead of constructing it directly from user input.
31
- </li >
32
- <li >
33
- Take care when user input is part of the pathname of the URL.
34
- Restrict the input so that path traversal ("<code >../<code >")
35
- cannot be used to redirect the request to an unintended endpoint.
36
- </li >
37
- </ul >
38
- </p >
39
-
40
- </recommendation >
23
+ <include src =" RequestForgeryRecommendation.inc.qhelp" />
41
24
42
25
<example >
43
26
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE qhelp PUBLIC
2
+ "-//Semmle//qhelp//EN"
3
+ "qhelp.dtd">
4
+ <qhelp >
5
+
6
+ <recommendation >
7
+
8
+ <p >
9
+ Restrict user inputs in the URL of an outgoing request, in particular:
10
+ </p >
11
+ <ul >
12
+ <li >
13
+ Avoid user input in the hostname of the URL.
14
+ Pick the hostname from an allow-list instead of constructing it directly from user input.
15
+ </li >
16
+ <li >
17
+ Take care when user input is part of the pathname of the URL.
18
+ Restrict the input so that path traversal ("<code >../</code >")
19
+ cannot be used to redirect the request to an unintended endpoint.
20
+ </li >
21
+ </ul >
22
+
23
+ </recommendation >
24
+
25
+ </qhelp >
You can’t perform that action at this time.
0 commit comments