Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snyk vulnerability [SNYK-JS-URLPARSE-2401205] #9558

Closed
github-actions bot opened this issue Feb 15, 2022 · 0 comments
Closed

Snyk vulnerability [SNYK-JS-URLPARSE-2401205] #9558

github-actions bot opened this issue Feb 15, 2022 · 0 comments
Labels
help wanted Help/Contributions wanted from community members snyk-vulnerability

Comments

@github-actions
Copy link
Contributor

Affecting Packages/Plugins

Overview

url-parse is a Small footprint URL parser that works seamlessly across Node.js and browser environments.

Affected versions of this package are vulnerable to Access Restriction Bypass due to improper parsing process, that may lead to incorrect handling of authentication credentials and hostname, which allows bypass of hostname validation.

PoC:

// PoC.js
 var parse = require('url-parse')
var cc=parse("http://admin:password123@@127.0.0.1")

//Output:
{ slashes: true,
  protocol: 'http:',
  hash: '',
  query: '',
  pathname: '/',
  auth: 'admin:password123',
  host: '@127.0.0.1',
  port: '',
  hostname: '@127.0.0.1',
  password: 'password123',
  username: 'admin',
  origin: 'http://@127.0.0.1',
  href: 'http://admin:password123@@127.0.0.1/' }

Remediation

Upgrade url-parse to version 1.5.6 or higher.

References

@github-actions github-actions bot added help wanted Help/Contributions wanted from community members snyk-vulnerability labels Feb 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Help/Contributions wanted from community members snyk-vulnerability
Projects
None yet
Development

No branches or pull requests

0 participants