http.cookiejar.DefaultPolicy.domain_return_ok in Lib/http/cookiejar.py in Python before 3.7.3 does not correctly validate the domain: it can be tricked into sending existing cookies to the wrong server. An attacker may abuse this flaw by using a server with a hostname that has another valid hostname as a suffix (e.g., pythonicexample.com to steal cookies for example.com). When a program uses http.cookiejar.DefaultPolicy and tries to do an HTTP connection to an attacker-controlled server, existing cookies can be leaked to the attacker. This affects 2.x through 2.7.16, 3.x before 3.4.10, 3.5.x before 3.5.7, 3.6.x before 3.6.9, and 3.7.x before 3.7.3.
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Python | Python | 2.0 (including) | 2.7.16 (including) |
Python | Python | 3.0.0 (including) | 3.4.10 (excluding) |
Python | Python | 3.5.0 (including) | 3.5.7 (excluding) |
Python | Python | 3.6.0 (including) | 3.6.9 (excluding) |
Python | Python | 3.7.0 (including) | 3.7.3 (excluding) |
Red Hat Ansible Tower 3.5 for RHEL 7 | RedHat | ansible-tower-35/ansible-tower:3.5.6-1 | * |
Red Hat Ansible Tower 3.6 for RHEL 7 | RedHat | ansible-tower-36/ansible-tower:3.6.4-1 | * |
Red Hat Enterprise Linux 7 | RedHat | python-0:2.7.5-88.el7 | * |
Red Hat Enterprise Linux 7 | RedHat | python3-0:3.6.8-13.el7 | * |
Red Hat Enterprise Linux 8 | RedHat | python27:2.7-8020020200117110429.90f98d4f | * |
Red Hat Enterprise Linux 8 | RedHat | python3-0:3.6.8-23.el8 | * |
Red Hat Enterprise Linux 8 | RedHat | python3-0:3.6.8-23.el8 | * |
Red Hat Software Collections for Red Hat Enterprise Linux 6 | RedHat | rh-python36-python-0:3.6.9-2.el6 | * |
Red Hat Software Collections for Red Hat Enterprise Linux 6 | RedHat | python27-python-0:2.7.17-2.el6 | * |
Red Hat Software Collections for Red Hat Enterprise Linux 7 | RedHat | rh-python36-python-0:3.6.9-2.el7 | * |
Red Hat Software Collections for Red Hat Enterprise Linux 7 | RedHat | python27-python-0:2.7.17-2.el7 | * |
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | RedHat | rh-python36-python-0:3.6.9-2.el7 | * |
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | RedHat | python27-python-0:2.7.17-2.el7 | * |
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS | RedHat | rh-python36-python-0:3.6.9-2.el7 | * |
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS | RedHat | python27-python-0:2.7.17-2.el7 | * |
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS | RedHat | rh-python36-python-0:3.6.9-2.el7 | * |
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS | RedHat | python27-python-0:2.7.17-2.el7 | * |
Python2.7 | Ubuntu | bionic | * |
Python2.7 | Ubuntu | cosmic | * |
Python2.7 | Ubuntu | disco | * |
Python2.7 | Ubuntu | esm-infra-legacy/trusty | * |
Python2.7 | Ubuntu | esm-infra/bionic | * |
Python2.7 | Ubuntu | esm-infra/xenial | * |
Python2.7 | Ubuntu | trusty | * |
Python2.7 | Ubuntu | trusty/esm | * |
Python2.7 | Ubuntu | upstream | * |
Python2.7 | Ubuntu | xenial | * |
Python3.4 | Ubuntu | esm-infra-legacy/trusty | * |
Python3.4 | Ubuntu | trusty | * |
Python3.4 | Ubuntu | trusty/esm | * |
Python3.4 | Ubuntu | upstream | * |
Python3.5 | Ubuntu | esm-infra-legacy/trusty | * |
Python3.5 | Ubuntu | esm-infra/xenial | * |
Python3.5 | Ubuntu | trusty | * |
Python3.5 | Ubuntu | trusty/esm | * |
Python3.5 | Ubuntu | upstream | * |
Python3.5 | Ubuntu | xenial | * |
Python3.6 | Ubuntu | bionic | * |
Python3.6 | Ubuntu | cosmic | * |
Python3.6 | Ubuntu | esm-infra/bionic | * |
Python3.6 | Ubuntu | trusty | * |
Python3.6 | Ubuntu | upstream | * |
Python3.7 | Ubuntu | trusty | * |
Python3.7 | Ubuntu | upstream | * |
Input validation is a frequently-used technique for checking potentially dangerous inputs in order to ensure that the inputs are safe for processing within the code, or when communicating with other components. Input can consist of:
Data can be simple or structured. Structured data can be composed of many nested layers, composed of combinations of metadata and raw data, with other simple or structured data. Many properties of raw data or metadata may need to be validated upon entry into the code, such as:
Implied or derived properties of data must often be calculated or inferred by the code itself. Errors in deriving properties may be considered a contributing factor to improper input validation.