4 ms·
Classic langsec failure.
by blattimwind 8y ago
Classic langsec failure.
- jolmg 8y agoCan you expand on that? I can't tell if you're in favor or against a change.
- blattimwind 8y agoWell the language scp uses for selecting files is turing complete and relies on state unavailable to the client therefore it is impossible in the general case for the client to check whether a given file sent by the server was actually requested by itself. That's the langsec failure here. The "correct" (in any case more sane) approach would be to use a stateless, easily recognizable language for specifying files (e.g. something that reduces to REs).
- jolmg 8y agoAnd that's what I meant by saying that I couldn't see what else to do without sacrificing usability. Whatever that language you propose would be, if it doesn't allow use of state from the server, then it's pointless. You may as well use the local shell in scp's invocation.