@@ -478,60 +478,4 @@ module ActiveSupport {
478478 }
479479 }
480480 }
481-
482- /**
483- * Type summaries for extensions to the `Pathname` module.
484- */
485- private class PathnameTypeSummary extends ModelInput:: TypeModelCsv {
486- override predicate row ( string row ) {
487- // type1;type2;path
488- // Pathname#existence : Pathname
489- row = "Pathname;Pathname;Method[existence].ReturnValue"
490- }
491- }
492-
493- /** Taint flow summaries for extensions to the `Pathname` module. */
494- private class PathnameTaintSummary extends ModelInput:: SummaryModelCsv {
495- override predicate row ( string row ) {
496- // Pathname#existence
497- row = "Pathname;Method[existence];Argument[self];ReturnValue;taint"
498- }
499- }
500-
501- /**
502- * `ActiveSupport::SafeBuffer` wraps a string, providing HTML-safe methods
503- * for concatenation.
504- * It is possible to insert tainted data into `SafeBuffer` that won't get
505- * sanitized, and this taint is then propagated via most of the methods.
506- */
507- private class SafeBufferSummary extends ModelInput:: SummaryModelCsv {
508- // TODO: SafeBuffer also reponds to all String methods.
509- // Can we model this without repeating all the existing summaries we have
510- // for String?
511- override predicate row ( string row ) {
512- row =
513- [
514- // SafeBuffer.new(x) does not sanitize x
515- "ActionView::SafeBuffer!;Method[new];Argument[0];ReturnValue;taint" ,
516- // SafeBuffer#safe_concat(x) does not sanitize x
517- "ActionView::SafeBuffer;Method[safe_concat];Argument[0];ReturnValue;taint" ,
518- "ActionView::SafeBuffer;Method[safe_concat];Argument[0];Argument[self];taint" ,
519- // These methods preserve taint in self
520- "ActionView::SafeBuffer;Method[concat,insert,prepend,to_s,to_param];Argument[self];ReturnValue;taint" ,
521- ]
522- }
523- }
524-
525- /** `ActiveSupport::JSON` */
526- module Json {
527- private class JsonSummary extends ModelInput:: SummaryModelCsv {
528- override predicate row ( string row ) {
529- row =
530- [
531- "ActiveSupport::JSON!;Method[encode,dump];Argument[0];ReturnValue;taint" ,
532- "ActiveSupport::JSON!;Method[decode,load];Argument[0];ReturnValue;taint" ,
533- ]
534- }
535- }
536- }
537481}
0 commit comments