HeroicEric / opencast-api

4 stars 0 forks source link

[Security] Bump phoenix from 1.2.0 to 1.4.5 #46

Closed dependabot-preview[bot] closed 5 years ago

dependabot-preview[bot] commented 5 years ago

Bumps phoenix from 1.2.0 to 1.4.5. This update includes security fixes.

Vulnerabilities fixed *Sourced from [The Elixir Advisory Database](https://github.com/dependabot/elixir-security-advisories/blob/master/packages/phoenix/2017-03-14.yml).* > **Arbitrary URL Redirect** > The Phoenix team designed Phoenix.Controller.redirect/2 to protect against > redirects allowing user input to redirect to an external URL where your > application code otherwise assumes a local path redirect. This is why the > :to option is used for “local” URL redirects and why you must pass the > :external option to intentionally allow external URLs to be redirected to. > > It has been disclosed that carefully crafted user input may be treated by some > browsers as an external URL. An attacker can use this vulnerability to aid in > social engineering attacks. The most common use would be to create highly > believable phishing attacks. > > For example, the following user input would pass local URL validation, > but be treated by Chrome and Firefox as external URLs: > http://localhost:4000/?redirect=/\nexample.com > > Not all browsers are affected, but latest Chrome and Firefox will issue a get > request for example.com and successfully redirect externally. > > Patched versions: >= 1.3.0-rc.1; \~> 1.2.3; \~> 1.1.7; \~> 1.0.5 > Unaffected versions: none
Release notes *Sourced from [phoenix's releases](https://github.com/phoenixframework/phoenix/releases).* > ## v1.3.0-rc.0 > For those interested in a detailed overview of the changes and design decisions, check out my LonestarElixir keynote that just went live: https://www.youtube.com/watch?v=tMO28ar0lW8 > > To use the new `phx.new` project generator, you can install the archive with the following command: > > ``` > $ mix archive.install https://github.com/phoenixframework/archives/raw/master/phx_new.ez > ``` > > As always, we have an upgrade guide with detailed instructions for migrating from 1.2.x projects: https://gist.github.com/chrismccord/71ab10d433c98b714b75c886eff17357 > > Full changelog: > > ## 1.3.0-rc.0 (2017-03-01) > - Enhancements > - [Generator] Add new `phx.new`, `phx.new.web`, `phx.new.ecto` > project generators with improved application structure and support for > umbrella applications > - [Generator] Add new `phx.gen.html` and `phx.gen.json` resource > generators with improved isolation of API boundaries > - [Controller] Add `current_path` and `current_url` to generate a > connection's path and url > - [Controller] Introduce `action_fallback` to registers a plug to > call as a fallback to the controller action > - [Controller] Wrap exceptions at controller to maintain connection > state > - [Channel] Add ability to configure channel event logging with > `:log_join` and `:log_handle_in` options > - [Channel] Warn on unhandled `handle_info/2` messages > - [Channel] Channels now distinguish from graceful exits and > application restarts, allowing clients to enter error mode and > reconnected after cold deploys. > - [Router] document `match` support for matching on any http method > with the special `:*` argument > - [ConnTest] Add `redirected_params/1` to return the named params > matched in the router for the redirected URL > - Deprecations > - [Generator] All `phoenix.*` mix tasks have been deprecated in > favor of new `phx.*` tasks > - JavaScript client enhancements > - Add ability to pass `encode` and `decode` functions to socket > constructor for custom encoding and decoding of outgoing and incoming > messages. > - Detect heartbeat timeouts on client to handle ungraceful > connection loss for faster socket error detection > - Add support for AMD/RequireJS > > ## v1.2.1 > - Enhancements > - [Router] Improve errors for invalid route paths > ... (truncated)
Changelog *Sourced from [phoenix's changelog](https://github.com/phoenixframework/phoenix/blob/v1.4.5/CHANGELOG.md).* > ## 1.4.5 (2019-05-08) > > ### Bug Fixes > * [Controller] Fix `current_url` error caused by bad function dispatch > * [phx.new] Use proper path for watcher in umbrella > * [Digester] Fix invalid SRI hash generation > > ### Enhancements > * [phx.new] Generate new `errors_on` function in `DataCase` module capable of handling array types > > ## 1.4.4 (2019-04-30) > > ### Enhancements > * [Channel] Support `handle_call` and `handle_cast` proxying for channel servers > * [Router] Raise error when route name uses `static` in the prefix > * [Router] Add `Routes.static_integrity/1` for subresource integrity validation > > ### Bug Fixes > * [phx.gen.*] prohibit context creation with the same name as the application > > ### JavaScript client bug fixes > * Fix bug causing error on window unload when no connection is established > * Fix reconnect retry after explicit disconnect > * Fix `globalWindow` conflict with React Native applications > > ## 1.4.3 (2019-03-29) > > ### JavaScript client enhancements > * add `binaryType` option to socket constructor, with `arraybuffer` default for binary messages > * use more aggressive socket reconnect for faster connection recovery > * rejoin channels as soon as socket reconnects for faster rejoins > * decouple channel rejoin backoffs with new `rejoinAfterMs` option > * optimize reconnects when browser restores from back/forward cache > by listening for window beforeunload > * Expose default `Serializer` for public use > > ### JavaScript client bug fixes > * fix bug causing socket to never reconnect when hearbeats timeouts > are encountered on the client, often experienced with backgrounded > browser tabs > > ## 1.4.2 (2019-03-13) > > ### Enhancements > * [Router] add `scoped_alias` to return the full alias with the current scope's aliased prefix > * [Router] add `alias: false` option to router definitions to to disable scope prefix on case by case basis > * [Router] Support any struct with :endpoint key in path/url helpers > * [Channel] Optimize channel join through non-blocking callback init > * [Endpoint] Log Web access URLs for HTTP and HTTPS configurations > * [phx.routes] Show socket paths for websocket and longpoll transports > ... (truncated)
Commits - [`18d68d6`](https://github.com/phoenixframework/phoenix/commit/18d68d6a425006c5e800f20a4a6407ab20daded5) Update package.lock - [`83ced35`](https://github.com/phoenixframework/phoenix/commit/83ced350dae636ff7ed6482f5c445e978230f06b) Release v1.4.5 - [`4a9c180`](https://github.com/phoenixframework/phoenix/commit/4a9c1807955211026fa316766b69235b17879b97) bugfix(SRI): Ensure that we are hashing digested file content ([#3404](https://github-redirect.dependabot.com/phoenixframework/phoenix/issues/3404)) - [`9a37725`](https://github.com/phoenixframework/phoenix/commit/9a3772540f0c66d625af6a561c2d65d5cbe21ea4) Use to_existing_atom - [`83bb6c3`](https://github.com/phoenixframework/phoenix/commit/83bb6c35aa38ecb0b0c7b9f573160d84d7a9da23) Loop over template "keys" instead of opts keys - [`c2b9f64`](https://github.com/phoenixframework/phoenix/commit/c2b9f64e151f2ec091d11bd55a47b5a125569aff) Fix errors_on when using array field changeset - [`9d8b464`](https://github.com/phoenixframework/phoenix/commit/9d8b464fe5545531289acfe111c4ae521b4246f2) Avoid undefined warnings in Elixir master - [`cee493e`](https://github.com/phoenixframework/phoenix/commit/cee493eb7c5e47bcae98bb80e9ea21fe2f712601) Use proper path for watcher in umbrella, closes [#3391](https://github-redirect.dependabot.com/phoenixframework/phoenix/issues/3391) - [`961ffca`](https://github.com/phoenixframework/phoenix/commit/961ffca2a3f069c6d9940f8062b838af23da7e35) Fix URL generation, closes [#3392](https://github-redirect.dependabot.com/phoenixframework/phoenix/issues/3392) - [`0a2c54a`](https://github.com/phoenixframework/phoenix/commit/0a2c54acba455abf2fc2fd998827317f992fda9e) Release 1.4.4 - Additional commits viewable in [compare view](https://github.com/phoenixframework/phoenix/compare/v1.2.0...v1.4.5)


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 ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major 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](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Automerge options (never/patch/minor, and dev/runtime dependencies) - 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) Finally, you can contact us by mentioning @dependabot.
dependabot-preview[bot] commented 5 years ago

Superseded by #48.