Mutable class attributes may lead to information leaking from one instance to another.
class MyClass(object):
errors = []
def do_something(self):
try:
...
except SomeException as e:
self.errors.append(e)
Mutable class attributes should be reported as potential security risks.
The logic same should apply for mutable default values of call parameters for functions
Mutable class attributes may lead to information leaking from one instance to another.
Mutable class attributes should be reported as potential security risks.
The logic same should apply for mutable default values of call parameters for functions