Re:Fixing Unix Filenames: Control Characters, Leading Dashes...
by nnnnnnnn on Thursday September 06, 2012 @12:48PM
(#4485017)
In any event it does not support your assertion that other languages suffer similar problems.
[ Parent
| on HN ]
Re:Fixing Unix Filenames: Control Characters, Leading Dashes...
by rwmj on Thursday September 06, 2012 @01:25PM
(#4485197)
Yes it does - qemu-img is written in C. The two programs we found exploitable were written in Python and C. They are written in "satisfactory" languages. Bash is not involved. Yet both suffer exploits because of \n (and other) characters in filenames.
Re:Fixing Unix Filenames: Control Characters, Leading Dashes...
by nnnnnnnn on Thursday September 06, 2012 @02:06PM
(#4485385)
The issue you refer to is in a poorly formed, ad-hoc serialization format. It has nothing to do with representation of variables at runtime. It has nothing to do with the language.
It is a programming error, not an inherent flaw in the language.