Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

[Security] Bump symfony/http-foundation from 4.4.2 to 5.1.1#365

Closed
dependabot-preview[bot] wants to merge 1 commit intomasterfrom
dependabot/composer/symfony/http-foundation-5.1.1
Closed

[Security] Bump symfony/http-foundation from 4.4.2 to 5.1.1#365
dependabot-preview[bot] wants to merge 1 commit intomasterfrom
dependabot/composer/symfony/http-foundation-5.1.1

Conversation

@dependabot-preview
Copy link
Contributor

Bumps symfony/http-foundation from 4.4.2 to 5.1.1. This update includes security fixes.

Vulnerabilities fixed

Sourced from The PHP Security Advisories Database.

CVE-2020-5255: Prevent cache poisoning via a Response Content-Type header

Affected versions: >=4.4.0, <4.4.7; >=5.0.0, <5.0.7

Sourced from The GitHub Security Advisory Database.

Moderate severity vulnerability that affects symfony/http-foundation Description

When ErrorHandler renders an exception HTML page, it uses un-escaped properties from the related Exception class to render the stacktrace. The security issue comes from the fact that the stacktraces were also displayed in non-debug environments.

Resolution

The ErrorHandler class now escapes all properties coming from the related Exception, and the stacktrace is not displayed anymore in non-debug environments.

The patches for this issue are available here and here for branch 4.4.

Credits

I would like to thank Luka Sikic for reporting & Yonel Ceruto and Jérémy Derussé for fixing the issue.

Affected versions: >= 4.4.0, < 4.4.4

Release notes

Sourced from symfony/http-foundation's releases.

v5.1.1

Changelog (symfony/http-foundation@v5.1.0...v5.1.1)

  • no changes

v5.1.0

Changelog (symfony/http-foundation@v5.1.0-RC2...v5.1.0)

  • no changes

v5.1.0-RC2

Changelog (symfony/http-foundation@v5.1.0-RC1...v5.1.0-RC2)

  • bug #36938 Don't call method_exists() with non-objects. (derrabus)

v5.1.0-RC1

Changelog (symfony/http-foundation@v5.1.0-BETA1...v5.1.0-RC1)

  • no changes

v5.0.10

Changelog (symfony/http-foundation@v5.0.9...v5.0.10)

  • no changes

v5.0.9

Changelog (symfony/http-foundation@v5.0.8...v5.0.9)

  • no changes

v5.0.8

Changelog (symfony/http-foundation@v5.0.7...v5.0.8)

  • bug #36490 workaround PHP bug in the session module (nicolas-grekas)
  • bug #35656 Fixed session migration with custom cookie lifetime (Guite)

v5.0.7

Changelog (symfony/http-foundation@v5.0.6...v5.0.7)

  • no changes

v5.0.6

Changelog (symfony/http-foundation@v5.0.5...v5.0.6)

  • bug #36173 Fix clear cookie samesite (guillbdx)
  • bug #36103 fix preloading script generation (nicolas-grekas)

v5.0.5

Changelog (symfony/http-foundation@v5.0.4...v5.0.5)

... (truncated)
Changelog

Sourced from symfony/http-foundation's changelog.

CHANGELOG

5.1.0

  • added Cookie::withValue, Cookie::withDomain, Cookie::withExpires, Cookie::withPath, Cookie::withSecure, Cookie::withHttpOnly, Cookie::withRaw, Cookie::withSameSite
  • Deprecate Response::create(), JsonResponse::create(), RedirectResponse::create(), and StreamedResponse::create() methods (use __construct() instead)
  • added Request::preferSafeContent() and Response::setContentSafe() to handle "safe" HTTP preference according to RFC 8674
  • made the Mime component an optional dependency
  • added MarshallingSessionHandler, IdentityMarshaller
  • made Session accept a callback to report when the session is being used
  • Add support for all core cache control directives
  • Added Symfony\Component\HttpFoundation\InputBag
  • Deprecated retrieving non-string values using InputBag::get(), use InputBag::all() if you need access to the collection of values

5.0.0

  • made Cookie auto-secure and lax by default
  • removed classes in the MimeType namespace, use the Symfony Mime component instead
  • removed method UploadedFile::getClientSize() and the related constructor argument
  • made Request::getSession() throw if the session has not been set before
  • removed Response::HTTP_RESERVED_FOR_WEBDAV_ADVANCED_COLLECTIONS_EXPIRED_PROPOSAL
  • passing a null url when instantiating a RedirectResponse is not allowed

4.4.0

  • passing arguments to Request::isMethodSafe() is deprecated.
  • ApacheRequest is deprecated, use the Request class instead.
  • passing a third argument to HeaderBag::get() is deprecated, use method all() instead
  • [BC BREAK] PdoSessionHandler with MySQL changed the type of the lifetime column, make sure to run ALTER TABLE sessions MODIFY sess_lifetime INTEGER UNSIGNED NOT NULL to update your database.
  • PdoSessionHandler now precalculates the expiry timestamp in the lifetime column, make sure to run CREATE INDEX EXPIRY ON sessions (sess_lifetime) to update your database to speed up garbage collection of expired sessions.
  • added SessionHandlerFactory to create session handlers with a DSN
  • added IpUtils::anonymize() to help with GDPR compliance.

4.3.0

  • added PHPUnit constraints: RequestAttributeValueSame, ResponseCookieValueSame, ResponseHasCookie,
... (truncated)
Commits
  • e0d853b [HttpFoundation] Avoid TypeError when calling \SessionHandlerInterface::gc().
  • a194922 Don't call method_exists() with non-objects.
  • ba5a2d7 Merge branch '5.0' into 5.1
  • c9b0348 Merge branch '4.4' into 5.0
  • 3adfbd7 Merge branch '3.4' into 4.4
  • dfb3f2f Merge branch '5.0' into 5.1
  • 9272202 Merge branch '4.4' into 5.0
  • 7c4bb04 Use ">=" for the "php" requirement
  • fbd216d Properties $originalName and $mimeType are never null in UploadedFile
  • 939b7b9 [HttpFoundation] fix perf of ResponseHeaderBag::initDate()
  • Additional commits viewable in compare view

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 [symfony/http-foundation](https://github.com/symfony/http-foundation) from 4.4.2 to 5.1.1. **This update includes security fixes.**
- [Release notes](https://github.com/symfony/http-foundation/releases)
- [Changelog](https://github.com/symfony/http-foundation/blob/master/CHANGELOG.md)
- [Commits](symfony/http-foundation@v4.4.2...v5.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@dependabot-preview dependabot-preview bot added dependencies Pull requests that update a dependency file security Pull requests that address a security vulnerability labels Jun 15, 2020
@dependabot-preview
Copy link
Contributor Author

Superseded by #370.

@dependabot-preview dependabot-preview bot deleted the dependabot/composer/symfony/http-foundation-5.1.1 branch June 16, 2020 08:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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

Comments