Re:Malware Hidden Inside JPG EXIF Headers
by devgutt on Tuesday July 16, 2013 @04:19PM
(#6054476)
http://docs.python.org/2/library/functions.html#eval
[ Parent
| on HN ]
Yes, Python has eval, but it doesn't hide in the bushes and ambush you. The same can not be said for preg_replace and the /e option.
Re:Malware Hidden Inside JPG EXIF Headers
by Dylan16807 on Tuesday July 16, 2013 @11:32PM
(#6055960)
Just curious, how many points does your comment have right now even though it's completely wrong? I'm not insulting you for making a tiny mistake, I'm wondering why a 7 hour old post with multiple 6 hour old corrections attached to it still has a positive score.
because eval is the real source of the problem
Re:Malware Hidden Inside JPG EXIF Headers
by Dylan16807 on Wednesday July 17, 2013 @12:42PM
(#6058654)
Would you remove the ability to load libraries, too? Because that's as dangerous as eval when it comes to purposely writing code to run external commands. The ability of a programming language to run code is not the cause of the problem, it's having domain-breaking misleading functions like a string replacer that can compile and execute.
yeah because libraries, which is available for scrutiny of a community (and you), is the same as a function that can run any arbitrary code in your program at runtime.
Re:Malware Hidden Inside JPG EXIF Headers
by Dylan16807 on Thursday July 18, 2013 @03:55PM
(#6066047)
If you can load libraries at runtime, you can load a secret malicious library, or replace a standard library with arbitrary code before triggering the loading.
So would you remove that ability to avoid its exploitation potential by malware?
note: “... in replace function”
Re:Malware Hidden Inside JPG EXIF Headers
by deadreturns2 on Tuesday July 16, 2013 @05:45PM
(#6054949)
He's talking about the preg_replace /e modifier not eval, the function.