Your message dated Sat, 27 Apr 2019 11:14:32 +0100 with message-id <1556360072.2690.35.camel@adam-barratt.org.uk> and subject line Closing bugs for updates included in 9.9 has caused the Debian Bug report #927378, regarding stretch-pu: package node-superagent/0.20.0+dfsg-1+deb9u1 to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 927378: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=927378 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: stretch-pu: package node-superagent/0.20.0+dfsg-1+deb9u1
- From: Xavier Guimard <yadd@debian.org>
- Date: Thu, 18 Apr 2019 20:44:01 +0200
- Message-id: <[🔎] 155561304137.9569.8400174068152315722.reportbug@deb007.xnr.fr>
Package: release.debian.org Severity: normal Tags: stretch User: release.debian.org@packages.debian.org Usertags: pu Hi all, I updated node-superagent for Buster. Now I would like to propose the security fix for stretch. This fixes CVE-2017-16129 (ZIP bomb attacks). Cheers, Xavierdiff --git a/debian/changelog b/debian/changelog index 0df52d2..43d031a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +node-superagent (0.20.0+dfsg-1+deb9u1) stretch; urgency=medium + + * Add patch to fix ZIP bomb attacks (Closes: CVE-2017-16129) + + -- Xavier Guimard <yadd@debian.org> Thu, 18 Apr 2019 20:37:30 +0200 + node-superagent (0.20.0+dfsg-1) unstable; urgency=medium * Imported Upstream version 0.20.0+dfsg diff --git a/debian/patches/CVE-2017-16129.diff b/debian/patches/CVE-2017-16129.diff new file mode 100644 index 0000000..7fc56a9 --- /dev/null +++ b/debian/patches/CVE-2017-16129.diff @@ -0,0 +1,34 @@ +Description: Fix for CVE-2017-16129 +Author: Xavier Guimard <yadd@debian.org> +Origin: https://github.com/visionmedia/superagent/commit/946e28dab08f2ab334753bf36a2fbc5110d17789 +Bug: https://security-tracker.debian.org/tracker/CVE-2017-16129 +Forwarded: https://github.com/visionmedia/superagent/commit/946e28dab08f2ab334753bf36a2fbc5110d17789 +Last-Update: 2019-04-18 + +--- a/lib/node/index.js ++++ b/lib/node/index.js +@@ -898,6 +898,24 @@ + // explicit parser + if (parser) parse = parser; + ++ if (buffer) { ++ // Protectiona against zip bombs and other nuisance ++ let responseBytesLeft = self._maxResponseSize || 200000000; ++ res.on('data', function(buf) { ++ responseBytesLeft -= buf.byteLength || buf.length; ++ if (responseBytesLeft < 0) { ++ // This will propagate through error event ++ const err = Error("Maximum response size reached"); ++ err.code = "ETOOLARGE"; ++ // Parsers aren't required to observe error event, ++ // so would incorrectly report success ++ parserHandlesEnd = false; ++ // Will emit error event ++ res.destroy(err); ++ } ++ }); ++ } ++ + // parse + if (parse) { + try { diff --git a/debian/patches/series b/debian/patches/series index c366f88..a44323a 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ no_require_readable-stream.patch +CVE-2017-16129.diff
--- End Message ---
--- Begin Message ---
- To: 890889-done@bugs.debian.org, 892070-done@bugs.debian.org, 910805-done@bugs.debian.org, 914187-done@bugs.debian.org, 914591-done@bugs.debian.org, 919043-done@bugs.debian.org, 919576-done@bugs.debian.org, 921748-done@bugs.debian.org, 921977-done@bugs.debian.org, 921983-done@bugs.debian.org, 922918-done@bugs.debian.org, 922987-done@bugs.debian.org, 922996-done@bugs.debian.org, 923202-done@bugs.debian.org, 923323-done@bugs.debian.org, 923342-done@bugs.debian.org, 923556-done@bugs.debian.org, 923897-done@bugs.debian.org, 924145-done@bugs.debian.org, 924150-done@bugs.debian.org, 924255-done@bugs.debian.org, 924261-done@bugs.debian.org, 924282-done@bugs.debian.org, 924377-done@bugs.debian.org, 924433-done@bugs.debian.org, 924463-done@bugs.debian.org, 924493-done@bugs.debian.org, 924642-done@bugs.debian.org, 924939-done@bugs.debian.org, 924945-done@bugs.debian.org, 925154-done@bugs.debian.org, 925161-done@bugs.debian.org, 925214-done@bugs.debian.org, 925228-done@bugs.debian.org, 925351-done@bugs.debian.org, 925401-done@bugs.debian.org, 925482-done@bugs.debian.org, 925506-done@bugs.debian.org, 925548-done@bugs.debian.org, 925569-done@bugs.debian.org, 926003-done@bugs.debian.org, 926050-done@bugs.debian.org, 926136-done@bugs.debian.org, 926190-done@bugs.debian.org, 926199-done@bugs.debian.org, 926397-done@bugs.debian.org, 926438-done@bugs.debian.org, 926506-done@bugs.debian.org, 926739-done@bugs.debian.org, 926870-done@bugs.debian.org, 926892-done@bugs.debian.org, 926894-done@bugs.debian.org, 926897-done@bugs.debian.org, 927067-done@bugs.debian.org, 927068-done@bugs.debian.org, 927072-done@bugs.debian.org, 927160-done@bugs.debian.org, 927191-done@bugs.debian.org, 927223-done@bugs.debian.org, 927378-done@bugs.debian.org, 927422-done@bugs.debian.org, 927424-done@bugs.debian.org, 922484-done@bugs.debian.org
- Subject: Closing bugs for updates included in 9.9
- From: "Adam D. Barratt" <adam@adam-barratt.org.uk>
- Date: Sat, 27 Apr 2019 11:14:32 +0100
- Message-id: <1556360072.2690.35.camel@adam-barratt.org.uk>
Version: 9.9 Hi, The update referenced by each of these bugs was included in this morning's stretch point release. Regards, Adam
--- End Message ---