Earlier quoted context omitted.
Not the point. Of course it's not surprising that these utilities will execute scripts if you tell them to. The unexpected fact is that you can tell them to -- and that this is documented behavior which probably isn't going away. If your argument was that no programmer should be surprised that you can tell an archive utility to execute an arbitrary script, then you and the author of the post are in complete agreement…
> you merely hurl an implicit insult at anyone who hasn't seen this type of privilege escalation yet You and I have vastly different opinions on what constitutes privilege escalation.
No one expects command execution
81–88 of 88 posts
Re: No one expects command execution
#82Earlier quoted context omitted.
Did this article make you angry? Why do you call it a trainwreck?
Because it is treating all of these intended side-effects of using a shell as though they are security vulnerabilities. The problem is that there is a way for untrusted user input to ever touch a shell in the first place. Seriously, I challenge you to find a language reference that doesn't decry the use of their version of system(3)---because all that does is run the given command under the user's shell.
It's really aggravating to learn something from an article that is making someone more knowledgeable this angry without explanation.
Re: No one expects command execution
#83What I find interesting is the thread title being a pun from a 40 year old movie. Back in the 70s, there wasn't any interest in movies, music, etc. from the 30s. And there still isn't interest in 30s culture, but plenty in the 70s. I wonder why.
spanish inquisition was flying circus, not holy grail
but my theory is that the vcr, and now the internet, has a lot to do with it, just like you'd expect references to books to increase with the printing press and general increase of literacy
Re: No one expects command execution
#84Earlier quoted context omitted.
Welcome to life.
What you are, rudely, implying is that what I am saying is already well known. I'd argue that isn't so. Until recently shell-scripts was the way you inited a system. I still have almost 2000 shell scripts on my machine that I didn't write myself. People got owned during shellshock, which means they did run helper programs, in web-facing applications even.
Complexities that are ready to bite the hand of the unwary at the slightest of chances.
Honesty i think the biggest lie in modern times is the MS/Apple lie that computing can be made so simple that even the proverbial aunt Tillie can do it without reading any sort of manual.
Re: No one expects command execution
#85Earlier quoted context omitted.
What I wish, I wish there was a flag in unicode to declare characters as 'unsafe user input' so that system utilizes and databases can recognize unsafe user input and barf on it.
It would be a very rare case where a vulnerability related to in-band signalling can be fixed with more in-band signalling.
Re: No one expects command execution
#86Earlier quoted context omitted.
It would be a very rare case where a vulnerability related to in-band signalling can be fixed with more in-band signalling.
You can if your encoding is explicit about what's in band and out of band. I get the feeling you've never written a protocol ever.
Just to make sure you are on the same page as the rest of us here: in-band and out-of-band is a way to distinguish sending meta information about the data stream through the same channel as the original data. You need an escape mechanism for that, so control characters and such.
Out-of-band signalling indicates that all meta information about the data stream travels through a different (virtual) circuit, in which case there can never be confusion about whether a given chunk is data or meta info.
Re: No one expects command execution
#87Re: No one expects command execution
#88Earlier quoted context omitted.
You can if your encoding is explicit about what's in band and out of band. I get the feeling you've never written a protocol ever.
I don't think you even understand the concept of in-band and out-of-band, that's not a function of the encoding. And I've written protocols aplenty in the days when not everything ran on top of HTTP, high speed serial links, with and without virtual circuits (so mux-demux) and a whole slew of others. Just to make sure you are on the same page as the rest of us here: in-band and out-of-band is a way to distinguish sen…