Skip to content

Commit baaa316

Browse files
authored
Update javascript/ql/src/experimental/Security/CWE-020/PostMessageNoOriginCheck.qhelp
1 parent eba64db commit baaa316

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/src/experimental/Security/CWE-020/PostMessageNoOriginCheck.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Always verify the sender's identity of incoming messages.
2222
<sample src="examples/postMessageNoOriginCheck.js" />
2323

2424
<p> In the second example, the `MessageEvent.origin` is verified with an unsecure check. For example, using `event.origin.indexOf('www.example.com') > -1` can be bypassed because the string `www.example.com` could appear anywhere in `event.origin` (i.e. `www.example.com.mydomain.com`)</p>
25-
<sample src="examples/postMessageWithInsufficientCheck.js" />
25+
<sample src="examples/postMessageInsufficientCheck.js" />
2626

2727
<p> In the third example, the `MessageEvent.origin` is properly checked against a trusted origin. </p>
2828
<sample src="examples/postMessageWithOriginCheck.js" />

0 commit comments

Comments
 (0)