Skip to contentSkip to conversation

python-requests: fix CVE-2018-18074

PATCH New Chen Qi 1 participant 1 message Oct 17, 2018

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

PATCH 1/1 python-requests: fix CVE-2018-18074

Backport two patches to fix the following CVE.

CVE: CVE-2018-18074

---
 .../recipes-devtools/python/python-requests.inc    |   6 ++
 ...rization-header-whenever-root-URL-changes.patch |  62 +++++++++++
 ...uthorization-stripping-logic-as-discussed.patch | 118 +++++++++++++++++++++
 3 files changed, 186 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-requests/0001-Strip-Authorization-header-whenever-root-URL-changes.patch
 create mode 100644 meta-python/recipes-devtools/python/python-requests/0002-Rework-authorization-stripping-logic-as-discussed.patch
meta-python/recipes-devtools/python/python-requests.inc +6 -0
index efc652d..301c2f8 100644
@@ -3,6 +3,12 @@ HOMEPAGE = "http://python-requests.org"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=bfbeafb85a2cee261510d65d5ec19156"
 
+FILESEXTRAPATHS_prepend := "${THISDIR}/python-requests:"
+
+SRC_URI += "file://0001-Strip-Authorization-header-whenever-root-URL-changes.patch \
+            file://0002-Rework-authorization-stripping-logic-as-discussed.patch \
+            "
+
 SRC_URI[md5sum] = "6c1a31afec9d614e2e71a91ee6ca2878"
 SRC_URI[sha256sum] = "ec22d826a36ed72a7358ff3fe56cbd4ba69dd7a6718ffd450ff0e9df7a47ce6a"
 
meta-python/recipes-devtools/python/python-requests/0001-Strip-Authorization-header-whenever-root-URL-changes.patch new file +62 -0

62 lines not on this page · raw message

meta-python/recipes-devtools/python/python-requests/0002-Rework-authorization-stripping-logic-as-discussed.patch new file +118 -0

118 lines not on this page · raw message

Signature · 1 line
2.7.4