kube-tarian / git-bridge

Audit required: External control of file name or path PTC-W6004
Security
Minor
2 years ago2 years old
External variable 'destdir' used in file path
 74    for i in range(len(l)):
 75        # packer = msgpack.Packer()
 76        serialized = msgpack.dumps(l[i])
 77        with open(os.path.join(destdir, str(i) + '.msgpack.golden'), 'wb') as f: 78            f.write(serialized)
 79        serialized = cbor.dumps(l[i])
 80        with open(os.path.join(destdir, str(i) + '.cbor.golden'), 'wb') as f: