Skip to content

Commit b995a72

Browse files
authored
[CVE-2018-18074] Upgrade requests to 2.20.0 (#204)
* Upgrade requests to 2.20.0 CVE-2018-18074 More information moderate severity Vulnerable versions: <= 2.19.1 Patched version: 2.20.0 The Requests package through 2.19.1 before 2018-09-14 for Python sends an HTTP Authorization header to an http URI upon receiving a same-hostname https-to-http redirect, which makes it easier for remote attackers to discover credentials by sniffing the network. * Bump hca version to 4.4.9 * Pin version of flake8 * Pin moto version to 1.3.3 * Make stub param optional For some versions of python a stub is passed into the test. In others, it is not passed in. Since the parameter is not used, this commit makes it optional. * Revisions from Marcus' feedback
1 parent d801813 commit b995a72

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

requirements-dev.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
flake8
2-
moto
1+
flake8==3.5.0
2+
moto==1.3.3
33
coverage
44
pyyaml
55
responses

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ google-auth-oauthlib >= 0.1, < 2
66
Jinja2 >= 2.9, < 3
77
jsonpointer >= 1.10, < 2
88
jsonschema >= 2.6, < 3
9-
requests >= 2.17, < 3
9+
requests >= 2.20.0, < 3
1010
six >= 1.10, < 2
1111
tweak >= 0.6.7, < 1
1212
dcplib >= 1.3.2, < 2

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setup(
99
name="hca",
10-
version="4.4.8",
10+
version="4.4.9",
1111
url='https://github.com/HumanCellAtlas/dcp-cli',
1212
license='Apache Software License',
1313
author='Human Cell Atlas contributors',

test/integration/upload/cli/test_upload.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ def test_upload_with_dcp_type_option(self):
5959
self.assertEqual(obj.get()['Body'].read(), expected_contents)
6060

6161
@responses.activate
62-
@patch('hca.upload.s3_agent.S3Agent.upload_file') # Don't actually try to upload
63-
def test_no_transfer_acceleration_option_sets_up_botocore_config_correctly(self, upload_file_stub):
62+
def test_no_transfer_acceleration_option_sets_up_botocore_config_correctly(self):
6463
import botocore
6564

66-
with patch('hca.upload.s3_agent.Config', new=Mock(wraps=botocore.config.Config)) as mock_config:
65+
with patch('hca.upload.s3_agent.S3Agent.upload_file'), \
66+
patch('hca.upload.s3_agent.Config', new=Mock(wraps=botocore.config.Config)) as mock_config:
6767

6868
args = Namespace(upload_paths=['LICENSE'], target_filename=None, quiet=True, file_extension=None)
6969
args.no_transfer_acceleration = False

0 commit comments

Comments
 (0)