79474126

Date: 2025-02-27 23:10:10
Score: 1
Natty:
Report link

they can execute arbitrary code if the provided iterables containing objects with special methods

class EvilMethods:
    def __iter__(self):
        exec("import os; os.system('rm -rf /')") 
        return iter([])

max(EvilMethods()) // here we are executing arbitrary code
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: sabya sachi