Skip to content

Commit bca4d14

Browse files
committed
rename files
1 parent 591fcda commit bca4d14

File tree

8 files changed

+4
-4
lines changed

8 files changed

+4
-4
lines changed

javascript/ql/src/Security/CWE-020/PostMessageNoOriginCheck.qhelp renamed to javascript/ql/src/Security/CWE-020/MissingOriginCheck.qhelp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ The example below uses a received message to execute some code. However, the
2424
origin of the message is not checked, so it might be possible for an attacker
2525
to execute arbitrary code.
2626
</p>
27-
<sample src="examples/postMessageNoOriginCheck.js" />
27+
<sample src="examples/MissingOriginCheckBad.js" />
2828

2929
<p>
3030
The example is fixed below, where the origin is checked to be trusted.
3131
It is therefore not possible for an attacker to attack using an untrusted origin.
3232
</p>
33-
<sample src="examples/postMessageWithOriginCheck.js" />
33+
<sample src="examples/MissingOriginCheckGood.js" />
3434

3535
</example>
3636

javascript/ql/src/Security/CWE-020/PostMessageNoOriginCheck.ql renamed to javascript/ql/src/Security/CWE-020/MissingOriginCheck.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @problem.severity warning
66
* @security-severity 5
77
* @precision medium
8-
* @id js/missing-origin-verification
8+
* @id js/missing-origin-check
99
* @tags correctness
1010
* security
1111
* external/cwe/cwe-020
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Security/CWE-020/MissingOriginCheck.ql

javascript/ql/test/query-tests/Security/CWE-020/PostMessage/PostMessageNoOriginCheck.qlref

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)