File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -584,6 +584,31 @@ module OrmInstantiation {
584
584
}
585
585
}
586
586
587
+ /**
588
+ * A data-flow node that may set or unset Cross-site request forgery protection.
589
+ * `getVerificationSetting() = false` corresponds to disabling verification.
590
+ *
591
+ * Extend this class to refine existing API models. If you want to model new APIs,
592
+ * extend `CSRFProtectionSetting::Range` instead.
593
+ */
594
+ class CSRFProtectionSetting extends DataFlow:: Node instanceof CSRFProtectionSetting:: Range {
595
+ boolean getVerificationSetting ( ) { result = super .getVerificationSetting ( ) }
596
+ }
597
+
598
+ /** Provides a class for modeling new CSRF protection setting APIs. */
599
+ module CSRFProtectionSetting {
600
+ /**
601
+ * A data-flow node that may set or unset Cross-site request forgery protection.
602
+ * `getVerificationSetting() = false` corresponds to disabling verification.
603
+ *
604
+ * Extend this class to model new APIs. If you want to refine existing API models,
605
+ * extend `CSRFProtectionSetting` instead.
606
+ */
607
+ abstract class Range extends DataFlow:: Node {
608
+ abstract boolean getVerificationSetting ( ) ;
609
+ }
610
+ }
611
+
587
612
/** Provides classes for modeling path-related APIs. */
588
613
module Path {
589
614
/**
You can’t perform that action at this time.
0 commit comments