SalamLang / Salam-Auth

2 stars 2 forks source link

build(deps): bump webklex/laravel-imap from 4.1.2 to 5.3.0 #7

Closed dependabot[bot] closed 2 months ago

dependabot[bot] commented 2 months ago

Bumps webklex/laravel-imap from 4.1.2 to 5.3.0.

Release notes

Sourced from webklex/laravel-imap's releases.

5.3.0 - Security patch

Fixed

Security Impact and Mitigation

Impacted are all versions below v5.3.0. If possible, update to >= v5.3.0 as soon as possible. Impacted was the Attachment::save method which could be used to write files to the local filesystem. The path was not properly sanitized and could be used to write files to arbitrary locations.

However, the Attachment::save method is not used by default and has to be called manually. If you are using this method without providing a sanitized path, you are affected by this vulnerability. If you are not using this method or are providing a sanitized path, you are not affected by this vulnerability and no immediate action is required.

If you have any questions, please feel welcome to join this issue: Webklex/php-imap#416

Timeline

  • 17.06.23 21:30: Vulnerability reported
  • 18.06.23 19:14: Vulnerability confirmed
  • 19.06.23 18:41: Vulnerability fixed via PR Webklex/php-imap#414
  • 20.06.23 13:45: Security patch released

5.2.0

Fixed

  • The message uid and message number will only be fetched if accessed and wasn't previously set (thanks @​szymekjanaczek)
  • Fix undefined attachment name when headers use "filename*=" format (thanks @​JulienChavee)
  • Fixed ImapProtocol::logout always throws 'not connected' Exception after upgraded to 4.1.2
  • Protocol interface and methods unified
  • Strict attribute and return types introduced where ever possible
  • Parallel messages during idle
  • Idle timeout / stale resource stream issue fixed
  • Syntax updated to support php 8 features
  • Get the attachment file extension from the filename if no mimetype detection library is available
  • Prevent the structure parsing from parsing an empty part
  • Convert all header keys to their lower case representation
  • Restructure the decode function (thanks @​istid)
  • More unique ID generation to prevent multiple attachments with same ID (thanks @​Guite)
  • Not all attachments are pushed to the collection (thanks @​AdrianKuriata)
  • Allow search response to be empty
  • Unsafe usage of switch case. (thanks @​shuergab)
  • Fix use of ST_MSGN as sequence method (thanks @​gioid)
  • Prevent infinite loop in ImapProtocol (thanks @​thin-k-design)
  • IMAP Quota root command fixed
  • Prevent line-breaks in folder path caused by special chars
  • Partial fix for (allow overview response to be empty)
  • Message::setConfig() config parameter type set to array
  • Reset the protocol uid cache if the session gets expunged
  • Set the "seen" flag only if the flag isn't set and the fetch option isn't IMAP::FT_PEEK

... (truncated)

Changelog

Sourced from webklex/laravel-imap's changelog.

[5.3.0] - Security patch - 2023-06-20

Fixed

  • Potential RCE through path traversal fixed #414 (special thanks @​angelej)

Security Impact and Mitigation

Impacted are all versions below v5.3.0. If possible, update to >= v5.3.0 as soon as possible. Impacted was the Attachment::save method which could be used to write files to the local filesystem. The path was not properly sanitized and could be used to write files to arbitrary locations.

However, the Attachment::save method is not used by default and has to be called manually. If you are using this method without providing a sanitized path, you are affected by this vulnerability. If you are not using this method or are providing a sanitized path, you are not affected by this vulnerability and no immediate action is required.

If you have any questions, please feel welcome to join this issue: Webklex/php-imap#416

[5.2.0] - 2023-04-11

Fixed

  • The message uid and message number will only be fetched if accessed and wasn't previously set (thanks @​szymekjanaczek)
  • Fix undefined attachment name when headers use "filename*=" format (thanks @​JulienChavee)
  • Fixed ImapProtocol::logout always throws 'not connected' Exception after upgraded to 4.1.2
  • Protocol interface and methods unified
  • Strict attribute and return types introduced where ever possible
  • Parallel messages during idle
  • Idle timeout / stale resource stream issue fixed
  • Syntax updated to support php 8 features
  • Get the attachment file extension from the filename if no mimetype detection library is available
  • Prevent the structure parsing from parsing an empty part
  • Convert all header keys to their lower case representation
  • Restructure the decode function (thanks @​istid)
  • More unique ID generation to prevent multiple attachments with same ID (thanks @​Guite)
  • Not all attachments are pushed to the collection (thanks @​AdrianKuriata)
  • Allow search response to be empty
  • Unsafe usage of switch case. (thanks @​shuergab)
  • Fix use of ST_MSGN as sequence method (thanks @​gioid)
  • Prevent infinite loop in ImapProtocol (thanks @​thin-k-design)
  • IMAP Quota root command fixed
  • Prevent line-breaks in folder path caused by special chars
  • Partial fix for (allow overview response to be empty)
  • Message::setConfig() config parameter type set to array
  • Reset the protocol uid cache if the session gets expunged
  • Set the "seen" flag only if the flag isn't set and the fetch option isn't IMAP::FT_PEEK
  • Message::is() date comparison fixed
  • Message::$client could not be set to null
  • in_reply_to and references parsing fixed
  • Prevent message body parser from injecting empty lines
  • Don't parse regular inline message parts without name or filename as attachment
  • Message::hasTextBody() and Message::hasHtmlBody() should return false if the body is empty

... (truncated)

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 show ignore conditions` will show all of the ignore conditions of the specified dependency - `@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) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/SalamLang/Salam-Auth/network/alerts).