4 ms·
Ninety days. "Text as a cross-application data transfer format" and the Unix Philosophy of "chains of small programs that each do a single thing well" are what
by naikrovek 6y ago
Ninety days.
"Text as a cross-application data transfer format" and the Unix Philosophy of "chains of small programs that each do a single thing well" are what lead to exploits like these.
I don't know what the proper system design is, but it isn't these two things. Disagree all you like.
- __david__ 6y agoI disagree. This bug is about trying to embed control commands into an arbitrary non-structured data stream. This is a bad idea, no matter if it's text or binary. The proper way to do this would be like the report says: open a separate channel from control commands. This is just like any other injection attack and not related to the unix philosophy.
- naikrovek 6y agoIt's the "non-structured" part of what you said that I tried, and failed, to point out with my comment.
- hn_throwaway_99 6y agoThat's absolutely not what leads to exploits like these. What leads to exploits like these is "Interpreting output from untrusted code (i.e. output from arbitrary commands) in a manner which allows execution of protected commands (i.e. setting env vars)". Which is like the primary reason for most security vulnerabilities.
- jradd 6y agogood point. i think 'getting env vars' is the bigger issue here.
- CodesInChaos 6y agoI think switching text for a structured format is the solution. I'd go for some encoding of s-expressions, since it's the simplest format that supports reliable splitting into atoms and nesting.