Skip to content

Commit

Permalink
Merge pull request #7053 from freedomofpress/rm-CVE-2019-3462-mitigation
Browse files Browse the repository at this point in the history
Remove mitigation for CVE-2019-3462
  • Loading branch information
cfm authored Jan 3, 2024
2 parents ed6142d + afbafe0 commit 59ffc0e
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions install_files/ansible-base/roles/prepare-servers/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,6 @@
---
# Ensures that prerequisite packages for ansible and securedrop-admin install
# are present
#
# Fix for CVE-2019-3462 (see https://justi.cz/security/2019/01/22/apt-rce.html)
# If apt < 1.4.9, it is vulnerable to CVE-2019-3462 and we must ensure no
# redirects are followed when updating apt via apt.
- name: Ensure apt has been updated without following redirects
raw: 'apt -o Acquire::http::AllowRedirect=false update &&
apt -o Acquire::http::AllowRedirect=false --only-upgrade -y install apt'
register: _apt_upgrade_command_output_results
changed_when: "'0 upgraded, 0 newly installed, 0 to remove' not in _apt_upgrade_command_output_results.stdout"

- name: Inform user that apt traffic is being redirected
assert:
that:
- "'302 Found' not in _apt_upgrade_command_output_results.stdout"
- "'302 Found' not in _apt_upgrade_command_output_results.stderr"
fail_msg: >-
It appears your apt traffic is being redirected.
SecureDrop cannot be installed. For details, see
https://github.com/freedomofpress/securedrop/issues/4058

- name: Install python and packages required by installer
raw: apt install -y python3 apt-transport-https dnsutils ubuntu-release-upgrader-core mokutil
Expand Down

0 comments on commit 59ffc0e

Please sign in to comment.