File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed
javascript/ql/src/Security/CWE-693 Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -26,26 +26,27 @@ class HelmetProperty extends Property {
26
26
27
27
predicate isImportantSecuritySetting ( ) {
28
28
this .getName ( ) in [ "frameguard" , "contentSecurityPolicy" ]
29
+ or
29
30
// read from data extensions to allow enforcing other settings
30
- or requiredHelmetSecuritySetting ( this .getName ( ) )
31
+ requiredHelmetSecuritySetting ( this .getName ( ) )
31
32
}
32
33
}
33
34
34
35
/*
35
36
* Extend the required Helmet security settings using data extensions.
36
37
* Docs: https://codeql.github.com/docs/codeql-language-guides/customizing-library-models-for-javascript/
37
38
* For example:
38
-
39
- extensions:
40
- - addsTo:
41
- pack: codeql/javascript-all
42
- extensible: requiredHelmetSecuritySetting
43
- data:
44
- - name: "frameguard"
45
-
46
- * Note: `frameguard` is an example: the query already enforces this setting, so it is not necessary to add it to the data extension.
47
-
39
+ *
40
+ * extensions:
41
+ * - addsTo:
42
+ * pack: codeql/javascript-all
43
+ * extensible: requiredHelmetSecuritySetting
44
+ * data:
45
+ * - name: "frameguard"
46
+ *
47
+ * Note: `frameguard` is an example: the query already enforces this setting, so it is not necessary to add it to the data extension.
48
48
*/
49
+
49
50
extensible predicate requiredHelmetSecuritySetting ( string name ) ;
50
51
51
52
from HelmetProperty helmetSetting , ExpressLibraries:: HelmetRouteHandler helmet
You can’t perform that action at this time.
0 commit comments