Skip to content

[1.1] init: do not print environment variable value#3879

Merged
AkihiroSuda merged 1 commit intoopencontainers:release-1.1from
kolyshkin:1.1-env-nul-byte
May 24, 2023
Merged

[1.1] init: do not print environment variable value#3879
AkihiroSuda merged 1 commit intoopencontainers:release-1.1from
kolyshkin:1.1-env-nul-byte

Conversation

@kolyshkin
Copy link
Contributor

This is a backport of #3850 to release-1.1 branch. Original description follows.

When given an environment variable that is invalid, it's not a good idea to output the contents in case they are supposed to be private (though such a container wouldn't start anyway so it seems unlikely there's a real way to use this to exfiltrate environment variables you didn't already know).

Reported-by: Carl Henrik Lunde chlunde@ifi.uio.no

(cherry picked from commit 20e38fb)

When given an environment variable that is invalid, it's not a good idea
to output the contents in case they are supposed to be private (though
such a container wouldn't start anyway so it seems unlikely there's a
real way to use this to exfiltrate environment variables you didn't
already know).

Reported-by: Carl Henrik Lunde <chlunde@ifi.uio.no>
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
(cherry picked from commit 20e38fb)
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@kolyshkin kolyshkin added the backport/1.1-pr A backport PR to release-1.1 label May 22, 2023
@kolyshkin kolyshkin added this to the 1.1.8 milestone May 22, 2023
@kolyshkin kolyshkin requested a review from a team May 23, 2023 19:24
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AkihiroSuda AkihiroSuda merged commit 6966e5d into opencontainers:release-1.1 May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/1.1-pr A backport PR to release-1.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants