Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is stdin safe against backtracking? #13

Open
mcandre opened this issue Jan 6, 2019 · 2 comments
Open

Is stdin safe against backtracking? #13

mcandre opened this issue Jan 6, 2019 · 2 comments

Comments

@mcandre
Copy link

mcandre commented Jan 6, 2019

Our users will likely store some sensitive information in the CloudABI YAML configuration files, such as passwords and tokens. Let's assume stdin is enabled and some kind of output stream such as a network port or output file. Would it be possible for a malicious or poorly written CloudABI application to seek backwards and read the configuration content, later leaking this information?

@EdSchouten
Copy link
Member

I think interaction with stdin is (relatively?) safe. It just behaves like a (non-seekable) stream. It's stdout I'd be more worried about. There is currently no protection towards printing malicious VT100 escape sequences to the user's terminal.

@mcandre
Copy link
Author

mcandre commented Mar 2, 2019

There is currently no protection towards printing malicious VT100 escape sequences to the user's terminal.

Ach! I know that CloudABI controls stdout, stderr, stdin. Does CloudABI in fact intercept and redirect these streams, or simply gate access to them? If we intercept/redirect these streams, then we could perform some limited checks for prohibited byte sequences.

... and if we do that, we should also provide an option to re-allow arbitrary byte sequences, for when applications intend to use stdout, etc. for streaming media.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants