Пример #1
0
 def __init__(self):
     Source.__init__(self, 'bottle', None)
     AttributeTaint.__init__(self, -1)
     self['request'] = _BottleRequest()
Пример #2
0
 def __init__(self):
     """Rules for the Bottle framework."""
     Sanitizer.__init__(self, 'bottle', None)
     AttributeTaint.__init__(self, -1)
     self['html_escape'] = SimpleSanitizer(Sanitizer.XSS)
Пример #3
0
 def __init__(self):
     Source.__init__(self, 'bottle.request', None)
     AttributeTaint.__init__(self, -1)
     self['GET'] = self['query'] = ConstAttributeTaint(Source.ALL)
     self['POST'] = self['forms'] = ConstAttributeTaint(Source.SQLI)
     self['params'] = ConstAttributeTaint(Source.ALL)
Пример #4
0
 def __init__(self):
     """Rules for the Bottle framework."""
     Sink.__init__(self, 'bottle', None)
     AttributeTaint.__init__(self, -1)
     self['route'] = DecoratedReturnSink(Sink.XSS)