Skip to content

Commit 8dcec2e

Browse files
apply suggestions from doc review
Co-authored-by: mc <[email protected]>
1 parent 7b92560 commit 8dcec2e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

javascript/ql/src/Security/CWE-347/MissingJWTKeyVerification.qhelp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
<overview>
44
<p>
5-
Applications decoding JSON Web Token (JWT) may be misconfigured due to the <code>None</code> algorithm.
5+
Applications decoding JSON Web Tokens (JWT) may be misconfigured due to the <code>None</code> algorithm.
66
</p>
77
<p>
88
The <code>None</code> algorithm is selected by calling the <code>verify()</code> function with a falsy value
99
instead of a cryptographic secret or key. The <code>None</code> algorithm disables the integrity enforcement of
10-
a JWT payload and may allow a malicious actor to make any desired changes to a JWT payload leading
10+
a JWT payload and may allow a malicious actor to make unintended changes to a JWT payload leading
1111
to critical security issues like privilege escalation.
1212
</p>
1313

@@ -21,8 +21,8 @@ Calls to <code>verify()</code> functions should use a cryptographic secret or ke
2121

2222
<example>
2323
<p>
24-
In the example below <code>false</code> is used to disable the integrity enforcement of a JWT payload.
25-
This may allow a malicious actor to make any desired changes to a JWT payload.
24+
In the example below, <code>false</code> is used to disable the integrity enforcement of a JWT payload.
25+
This may allow a malicious actor to make changes to a JWT payload.
2626
</p>
2727

2828
<sample src="examples/missing-key-verification-bad.js" />
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
22
category: newQuery
33
---
4-
* A new query `js/jwt-missing-verification` has been added. The query detects applications that does not verify JWT tokens.
4+
* A new query `js/jwt-missing-verification` has been added. The query detects applications that don't verify JWT tokens.

0 commit comments

Comments
 (0)