cpdf icon indicating copy to clipboard operation
cpdf copied to clipboard

Does not escape filenames

Open lamby opened this issue 6 years ago • 3 comments

You do not appear to be escaping your filenames and then your pass the values to shell=True, which will likely lead to an exploit AFAICT. :+1:

lamby avatar Jun 01 '20 20:06 lamby

Hi @lamby,

Thanks for opening the issue. Could you elaborate a bit more?

Thanks!

hkdb avatar Aug 25 '20 19:08 hkdb

Stale. closing due to lack of response.

hkdb avatar Jan 17 '21 15:01 hkdb

Ah, you do a check and print " Input file contains invalid characters such ". However, did you consider just using shlex.quote and not relying on validation? :)

lamby avatar Jan 18 '21 12:01 lamby