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

all: backport changes for v0.16.6 #449

Merged
merged 4 commits into from
May 4, 2023
Merged

Conversation

xenoscopic
Copy link
Member

What does this pull request do and why is it needed?

This PR backports updates and fixes for v0.16.6. More information will be available in the associated release notes.

Signed-off-by: Jacob Howard <jacob@mutagen.io>
This commit adds neutralization (escaping) of control characters in
terminal output for values that aren't locally controlled. This output
(if unsanitized) coud cause terminal corruption. In theory, it could
also be used as an attack vector for intentionally causing terminal
corruption when synchronizing with an untrusted (and malicious) remote.
On very old terminal emulators, it can theoretically be used as an
attack vector for code execution (see, for example, CVE-2003-0069),
though this type of vulnerability has been patched for over 20 years.

We still treat the daemon as a trusted entity (since it is under user
control) and don't sanitize (most) output under its control (such as
locally generated error messages).

We intentionally avoid sanitizing templated output because that output
needs to contain raw, unmodified values. A shellSanitize function has
been added to support neutralization of control characters in template
output.

Signed-off-by: Jacob Howard <jacob@mutagen.io>
Signed-off-by: Jacob Howard <jacob@mutagen.io>
Signed-off-by: Jacob Howard <jacob@mutagen.io>
@xenoscopic xenoscopic merged commit afed45f into release-branch-v0.16.x May 4, 2023
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

Successfully merging this pull request may close these issues.

1 participant