Skip to content

Commit 040f948

Browse files
committed
Added a note that SRI can be considered for some dynamic services
1 parent d71be8a commit 040f948

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

javascript/ql/src/Security/CWE-830/FunctionalityFromUntrustedSource.qhelp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,21 @@
2828
</p>
2929

3030
<p>
31-
Subresource integrity checking is commonly recommended when importing a fixed version of
31+
Subresource integrity (SRI) checking is commonly recommended when importing a fixed version of
3232
a library - for example, from a CDN (content-delivery network). Then, the fixed digest
3333
of that version of the library can easily be added to the <code>script</code> element's
3434
<code>integrity</code> attribute.
3535
</p>
36+
37+
<p>
38+
A dynamic service cannot be easily used with SRI. Nevertheless,
39+
it is possible to list multiple acceptable SHA hashes in the <code>integrity</code> attribute,
40+
such as those for the content generated for major browers used by your users.
41+
</p>
42+
43+
<p>
44+
See the `CUSTOMIZING.md` file in the source code for this query for information on how to extend the list of hostnames required to use SRI by this query.
45+
</p>
3646
</overview>
3747

3848
<recommendation>

0 commit comments

Comments
 (0)