Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Request dependency <=2.68 opens to potential memory exposure vulnerability #14961

Closed
evilaliv3 opened this issue Jul 28, 2016 · 9 comments
Closed

Comments

@evilaliv3
Copy link

Do you want to request a feature or report a bug?
This ticket is to report a a potential security vulnerability caused by the request dependency.

What is the current behavior?
Various of the dependencies used by angular.js make use of a vulnerable version of the request package (<2.68) that allow potential memory exposure.

Involved dependencies are: insight, fsevents

details:

In order to address a short term fix it is suggested to modify the current npm shrinkwrap to use request==2.74.0

@gkalpak
Copy link
Member

gkalpak commented Jul 28, 2016

Hm...I see different packages affecting as:

  • bower (directly and via bower-registry-client)
  • dgeni-packages (via winston)
  • karma-sauce-launcher (via wd)

Although these are devDependencies, so only affecting the people working on the Angular codebase.

@evilaliv3
Copy link
Author

evilaliv3 commented Jul 28, 2016

yes i agree; but when the relevant developers are impacted all the community is impacted.

@mgol
Copy link
Member

mgol commented Jul 29, 2016

I'm updating the Karma-related dependencies in #14952, I'll add other related packages in a separate commit as well.

I doubt there's any actual big vulnerability here, though; we don't use request ourselves but via various packages and only to build stuff or connect to Sauce Labs so there may very well not be any way to exploit that.

mgol added a commit that referenced this issue Jul 29, 2016
Those packages depend on a vulnerable request version.

Ref gh-14961
@evilaliv3
Copy link
Author

for what relates bower i've provided a patch: evilaliv3/bower@5a348e0

the ticket to be monitored is: bower/bower#2336

@mgol
Copy link
Member

mgol commented Jul 29, 2016

Ah, so it's not fixed in Bower, I just haven't noticed it as it now bundles its all dependencies itself under bower/lib/node_modules; pretty weird. TBH I'd just try to get rid of Bower in favor of npm but, unfortunately, we're relying on package aliases which is not and will not be supported by npm.

mgol added a commit that referenced this issue Jul 29, 2016
The previous version depended on a vulnerable request version.

Ref gh-14961
mgol added a commit to mgol/angular.js that referenced this issue Jul 29, 2016
The previous version depended on a vulnerable request version.

Ref angulargh-14961
mgol added a commit to mgol/angular.js that referenced this issue Jul 29, 2016
The previous version depended on a vulnerable request version.

Ref angulargh-14961
mgol added a commit to mgol/angular.js that referenced this issue Jul 29, 2016
The previous version depended on a vulnerable request version.

Ref angulargh-14961
@Narretz Narretz added this to the Backlog milestone Aug 3, 2016
mgol added a commit to mgol/angular.js that referenced this issue Aug 5, 2016
The previous version depended on a vulnerable request version.

Ref angulargh-14961
mgol added a commit that referenced this issue Aug 5, 2016
The previous version depended on a vulnerable request version.

Ref gh-14961
mgol added a commit that referenced this issue Aug 5, 2016
The previous version depended on a vulnerable request version.

Ref gh-14961
@mgol
Copy link
Member

mgol commented Aug 6, 2016

I've updated some packages; karma-sauce-launcher & bower still depend on the vulnerable request in their latest versions.

This is the current state on master:

$ npm ls request
angularjs@ ...
├─┬ bower@1.3.12
│ ├─┬ bower-registry-client@0.2.4
│ │ └── request@2.51.0 
│ └── request@2.42.0 
├─┬ karma@1.1.2
│ └─┬ chokidar@1.6.0
│   └─┬ fsevents@1.0.14
│     └── request@2.73.0 
├─┬ karma-sauce-launcher@1.0.0
│ └─┬ wd@0.3.12
│   └── request@2.55.0 
└─┬ protractor@4.0.2
  └─┬ webdriver-manager@10.2.1
    └── request@2.74.0 

@evilaliv3
Copy link
Author

great @mgol

for what relates bower they ignored the ticket.
for what relates to karma-sauce-launcher instead i forgot to open it, i'm going to do it now.

@evilaliv3
Copy link
Author

@petebacondarwin petebacondarwin modified the milestones: Backlog, Backlog2 Oct 17, 2016
@Narretz
Copy link
Contributor

Narretz commented Oct 11, 2017

karma-sauce-launcher has fixed the dep: https://github.com/karma-runner/karma-sauce-launcher/releases/tag/v1.2.0, now we just need to update

bower will fix itself once we switch to yarn aliases

Narretz added a commit to Narretz/angular.js that referenced this issue Oct 16, 2017
Narretz added a commit that referenced this issue Oct 16, 2017
Narretz added a commit that referenced this issue Oct 17, 2017
mgol added a commit to mgol/angular.js that referenced this issue Dec 27, 2017
…ages

Bower was used to install multiple versions of jQuery which is now handled
using Yarn aliases. The remaining two packages, closure-compiler and
ng-closure-compiler were installed from zip files which is not supported by Yarn
(see yarnpkg/yarn#1483); the first of them was
switched to the google-closure-compiler package and the latter was checked in
to the repository.

Fixes angular#16268
Fixes angular#14961
Ref yarnpkg/yarn#1483
mgol added a commit to mgol/angular.js that referenced this issue Dec 27, 2017
…ages

Bower was used to install multiple versions of jQuery which is now handled
using Yarn aliases. The remaining two packages, closure-compiler and
ng-closure-compiler were installed from zip files which is not supported by Yarn
(see yarnpkg/yarn#1483); the first of them was
switched to the google-closure-compiler package and the latter was checked in
to the repository.

Fixes angular#16268
Fixes angular#14961
Ref yarnpkg/yarn#1483
mgol added a commit to mgol/angular.js that referenced this issue Dec 27, 2017
…ages

Bower was used to install multiple versions of jQuery which is now handled
using Yarn aliases. The remaining two packages, closure-compiler and
ng-closure-compiler were installed from zip files which is not supported by Yarn
(see yarnpkg/yarn#1483); the first of them exists
on npm as the google-closure-compiler but only versions newer than we used are
published and they don't work with ng-closure-compiler so - instead - both were
checked in to the repository.

Fixes angular#16268
Fixes angular#14961
Ref yarnpkg/yarn#1483
mgol added a commit to mgol/angular.js that referenced this issue Dec 27, 2017
…ages

Bower was used to install multiple versions of jQuery which is now handled
using Yarn aliases. The remaining two packages, closure-compiler and
ng-closure-compiler were installed from zip files which is not supported by Yarn
(see yarnpkg/yarn#1483); the first of them exists
on npm as the google-closure-compiler but only versions newer than we used are
published and they don't work with ng-closure-compiler so - instead - both were
checked in to the repository.

Fixes angular#16268
Fixes angular#14961
Ref yarnpkg/yarn#1483
Narretz pushed a commit to Narretz/angular.js that referenced this issue Jan 8, 2018
…ages

Bower was used to install multiple versions of jQuery which is now handled
using Yarn aliases. The remaining two packages, closure-compiler and
ng-closure-compiler were installed from zip files which is not supported by Yarn
(see yarnpkg/yarn#1483); the first of them exists
on npm as the google-closure-compiler but only versions newer than we used are
published and they don't work with ng-closure-compiler so - instead - both were
checked in to the repository.

Fixes angular#16268
Fixes angular#14961
Ref yarnpkg/yarn#1483
@Narretz Narretz closed this as completed in ff2ce9d Jan 8, 2018
Narretz pushed a commit that referenced this issue Jan 8, 2018
…ages

Bower was used to install multiple versions of jQuery which is now handled
using Yarn aliases. The remaining two packages, closure-compiler and
ng-closure-compiler were installed from zip files which is not supported by Yarn
(see yarnpkg/yarn#1483); the first of them exists
on npm as the google-closure-compiler but only versions newer than we used are
published and they don't work with ng-closure-compiler so - instead - both were
checked in to the repository.

Fixes #16268
Fixes #14961
Ref yarnpkg/yarn#1483
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants