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

apt-get downgraded to vulnerable version 1.0.9.8.4 in whonix #4055

Open
whrabbit1 opened this Issue Jul 5, 2018 · 9 comments

Comments

Projects
None yet
4 participants
@whrabbit1

Qubes OS version:

Qubes Release 4.0

Affected component(s):

apt-get package in whonix-ws and whonix-gw templates


Steps to reproduce the behavior:

In the template:
apt-get remove firefox-esr
[a huge list of packages shows that is going to be removed as well]
Hit yes
apt-get update
apt-get dist-upgrade

Expected behavior:

firefox-esr removed and packages updated

Actual behavior:

firefox-esr removed and apt-get package downgraded to version 1.0.9.8.4, which was released in 2016 with CVE-2016-1252.

General notes:

I only noticed the downgrade after a week when /usr/lib/apt/methods/http starts using 100% of cpu both whonix APPVMs. behavior of a miner.

Could anyone explain why an old vulnerable version replaced current one. is it possible for an exit node to downgrade apt? I believe I was using http repos.


Related issues:

@fosslinux

This comment has been minimized.

Show comment
Hide comment
@fosslinux

fosslinux Jul 7, 2018

An exit node can intercept your connection. To me this looks like a compromise. Backup the potentially compromised VMS, delete the template vm and all based on it, and recreate. The Qubes wiki can help with this. If you can still repro, then it is unlikely that it was a compromise. I can't test at the moment, I don't use whonix. HTH

An exit node can intercept your connection. To me this looks like a compromise. Backup the potentially compromised VMS, delete the template vm and all based on it, and recreate. The Qubes wiki can help with this. If you can still repro, then it is unlikely that it was a compromise. I can't test at the moment, I don't use whonix. HTH

@whrabbit1

This comment has been minimized.

Show comment
Hide comment
@whrabbit1

whrabbit1 Jul 7, 2018

@fosslinux

This comment has been minimized.

Show comment
Hide comment
@fosslinux

fosslinux Jul 7, 2018

@whrabbit1 can you post the list of packages? What was the original version of apt?

Also version 1.0.9.8.4 isn't vulnerable, only the versions before:

The apt package in Debian jessie before 1.0.9.8.4, in Debian unstable before 1.4~beta2, in Ubuntu 14.04 LTS before 1.0.1ubuntu2.17, in Ubuntu 16.04 LTS before 1.2.15ubuntu0.2, and in Ubuntu 16.10 before 1.3.2ubuntu0.1 allows man-in-the-middle attackers to bypass a repository-signing protection mechanism by leveraging improper error handling when validating InRelease file signatures.

(emphasis mine)
see https://www.cvedetails.com/cve/CVE-2016-1252/.

fosslinux commented Jul 7, 2018

@whrabbit1 can you post the list of packages? What was the original version of apt?

Also version 1.0.9.8.4 isn't vulnerable, only the versions before:

The apt package in Debian jessie before 1.0.9.8.4, in Debian unstable before 1.4~beta2, in Ubuntu 14.04 LTS before 1.0.1ubuntu2.17, in Ubuntu 16.04 LTS before 1.2.15ubuntu0.2, and in Ubuntu 16.10 before 1.3.2ubuntu0.1 allows man-in-the-middle attackers to bypass a repository-signing protection mechanism by leveraging improper error handling when validating InRelease file signatures.

(emphasis mine)
see https://www.cvedetails.com/cve/CVE-2016-1252/.

@whrabbit1

This comment has been minimized.

Show comment
Hide comment
@whrabbit1

whrabbit1 Jul 7, 2018

@adrelanos

This comment has been minimized.

Show comment
Hide comment
@adrelanos

adrelanos Jul 13, 2018

Member

The weird thing here is deletion of firefox-esr causes the removal of a ton of other packages.

See:
https://www.whonix.org/wiki/Whonix_Debian_Packages

Btw firefox is not dependency in Whonix 14 anymore.

https://forums.whonix.org/t/whonix-14-release-blockers-status-of-whonix-14-development

I think this issue can be closed.

Member

adrelanos commented Jul 13, 2018

The weird thing here is deletion of firefox-esr causes the removal of a ton of other packages.

See:
https://www.whonix.org/wiki/Whonix_Debian_Packages

Btw firefox is not dependency in Whonix 14 anymore.

https://forums.whonix.org/t/whonix-14-release-blockers-status-of-whonix-14-development

I think this issue can be closed.

@whrabbit1

This comment has been minimized.

Show comment
Hide comment
@whrabbit1

whrabbit1 Jul 13, 2018

@adrelanos

This comment has been minimized.

Show comment
Hide comment
@adrelanos

adrelanos Jul 13, 2018

Member
Member

adrelanos commented Jul 13, 2018

@whrabbit1

This comment has been minimized.

Show comment
Hide comment
@whrabbit1

whrabbit1 Jul 13, 2018

@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
@andrewdavidwong

andrewdavidwong Jul 14, 2018

Member

FWIW, I also have apt-get 1.0.9.8.4 in a vanilla whonix-gw template on 3.2 (have not manually installed or uninstalled anything; just updated).

Member

andrewdavidwong commented Jul 14, 2018

FWIW, I also have apt-get 1.0.9.8.4 in a vanilla whonix-gw template on 3.2 (have not manually installed or uninstalled anything; just updated).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment