Skip to content

Commit fe3d71e

Browse files
erik-kroghesbena
andauthored
fix qhelp: the window, not the origin, is sending the message
Co-authored-by: Esben Sparre Andreasen <esbena@github.com>
1 parent df295e6 commit fe3d71e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

javascript/ql/src/Security/CWE-020/MissingOriginCheck.qhelp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77

88
<p>
99
The <code>"message"</code> event is used to send messages between windows.
10-
An untrusted origin is allowed to send messages to a trusted window, and if the origin
11-
is not checked that can lead to various security issues.
10+
An untrusted window can send a message to a trusted window, and it is up to the receiver to verify the legitimacy of the message. One way of doing that verification is to check the <code>origin</code> of the message ensure that it origins from a trusted window.
1211
</p>
1312
</overview>
1413

0 commit comments

Comments
 (0)