News for hackers. Stuff that matters.
Re:Don't run 'strings' on untrusted files by roghummal on Saturday October 25, 2014 @03:50PM (#8509190)
Is 'cat foo|strings' immune to the problems of libbfd?
Re:Don't run 'strings' on untrusted files by ams6110 on Saturday October 25, 2014 @04:54PM (#8509370)
I wouldn't think so. The data being processed are the same.
Re:Don't run 'strings' on untrusted files by mistaken on Sunday October 26, 2014 @06:49AM (#8510751)
Using cat and piping it to string actually works without crashing. It seems that libbfd style parsing is disabled on stdin.
Re:Don't run 'strings' on untrusted files by roghummal on Saturday October 25, 2014 @05:16PM (#8509433)
I thought that reading from stdin might bypass the file type analysis.
Re:Don't run 'strings' on untrusted files by ANTSANTS on Saturday October 25, 2014 @07:22PM (#8509735)
Haven't checked but I'm pretty sure the binutils just look for "magic numbers" (ie are the first four bytes "0x7F 'E' 'L' 'F'") and don't look at any filesystem information.