jet-admin / jet-bridge

Audit required: Use of an insecure method method from urllib detected BAN-B310
Security
Major
6 months ago4 years old
Audit url open for permitted schemes. Allowing use of file:/ or custom schemes is often unexpected.
39
40                    file = configuration.media_open(path)
41                else:
42                    fd = urllib.request.urlopen(path)43                    file = io.BytesIO(fd.read())
44
45                with file: