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

[Security] Bump serve from 6.3.1 to 10.1.2 #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot-preview[bot]
Copy link

Bumps serve from 6.3.1 to 10.1.2. This update includes security fixes.

Vulnerabilities fixed

Sourced from The Node Security Working Group.

Information Exposure Through Directory Listing [serve] Directory listing and File access even when they have been set to be ignored

Affected versions: <=6.5.3

Sourced from The Node Security Working Group.

Information Exposure Through Directory Listing [serve] Directory listing and File access even when they have been set to be ignored.

Affected versions: <6.5.2

Sourced from The Node Security Working Group.

Directory Traversal serve handles directory listing on its own and does not protect against listing of any directory on the remote server.

Affected versions: <=6.4.8

Sourced from The Node Security Working Group.

Information Exposure Through Directory Listing [serve] Directory listing and File access even when they have been set to be ignored (using dot-slash)

Affected versions: <= 6.5.3

Sourced from The GitHub Security Advisory Database.

Byass due to validation before canonicalization in serve Versions of serve before 6.5.2 are vulnerable to the bypass of the ignore functionality. The bypass is possible because validation happens before canonicalization of paths and filenames.

Example: Here we have a server that ignores the file test.txt.

const serve = require('serve')
const server = serve(__dirname, {
      port: 1337,
      ignore: ['test.txt']
})

Using the URL encoded form of a letter (%65 instead of e) attacker can bypass the ignore control accessing the file.

curl http://localhost:1337/t%65st.txt

Additionally this technique can be used to get directory listings of ignored directories.

Affected versions: < 6.5.2

Sourced from The GitHub Security Advisory Database.

Path Traversal in serve Versions of serve prior to 10.1.2 are vulnerable to Path Traversal. Explicitly ignored folders can be accessed through relative paths, which allows attackers to access hidden folders and files.

Recommendation

Upgrade to version 10.1.2 or later.

Affected versions: < 10.1.2

Sourced from The GitHub Security Advisory Database.

Cross-Site Scripting in serve Versions of serve prior to 10.0.2 are vulnerable to Cross-Site Scripting (XSS). The package does not encode output, allowing attackers to execute arbitrary JavaScript in the victim's browser if user-supplied input is rendered.

Recommendation

Upgrade to version 10.0.2 or later.

Affected versions: < 10.0.2

Sourced from The GitHub Security Advisory Database.

Moderate severity vulnerability that affects serve A bug in handling the ignore files and directories feature in serve 6.5.3 allows an attacker to read a file or list the directory that the victim has not allowed access to.

Affected versions: < 7.1.3

Sourced from The GitHub Security Advisory Database.

High severity vulnerability that affects serve A path traversal vulnerability in serve npm package version 7.0.1 allows the attackers to read content of arbitrary files on the remote server.

Affected versions: < 7.1.3

Release notes

Sourced from serve's releases.

10.1.2

Patches

  • Use os.networkInterfaces() to detect network address: #492
  • Bumped serve-handler to latest version: #505

Credits

Huge thanks to @saintwinkle for helping!

10.1.1

Patches

  • Properly encode redirect responses: #491

10.1.0

Minor Changes

  • Added support for compression: #487
  • Added NO_UPDATE_CHECK environment flag: #457
  • Brought back support for ephemeral port switching: #490

Patches

  • Bumped serve-handler to the latest version: #488
  • Deprecate support for now.json and package.json: #489

Credits

Huge thanks to @leeyeh for helping!

10.0.2

Patches

  • Bumped serve-handler to the latest version: #480

10.0.1

Patches

  • Bumped @zeit/schemas to the latest version: #475

10.0.0

Major Changes

  • Bumped dependencies to the latest version: #468

9.6.0

Minor Changes

  • Added support for range requests: #465
Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Bumps [serve](https://github.com/zeit/serve) from 6.3.1 to 10.1.2. **This update includes security fixes.**
- [Release notes](https://github.com/zeit/serve/releases)
- [Commits](vercel/serve@6.3.1...10.1.2)

Signed-off-by: dependabot-preview[bot] <[email protected]>
@dependabot-preview dependabot-preview bot added dependencies Pull requests that update a dependency file security Pull requests that address a security vulnerability labels Sep 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file security Pull requests that address a security vulnerability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants