-
Notifications
You must be signed in to change notification settings - Fork 0
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
chore(deps): update dependency phpoffice/phpspreadsheet to v2 [security] - autoclosed #9
chore(deps): update dependency phpoffice/phpspreadsheet to v2 [security] - autoclosed #9
Conversation
WalkthroughThe change involves updating the version requirement for the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- composer.json (1 hunks)
Additional comments not posted (1)
composer.json (1)
26-26
: LGTM! Ensure compatibility with the rest of the application.The update to
phpoffice/phpspreadsheet
version^2.2.1
addresses security vulnerabilities and includes various improvements and fixes. However, major version updates may introduce breaking changes. Ensure compatibility with the rest of the application.Run the following script to verify compatibility:
This PR contains the following updates:
^1.27
->^2.2.1
GitHub Vulnerability Alerts
CVE-2024-45046
Summary
\PhpOffice\PhpSpreadsheet\Writer\Html
doesn't sanitize spreadsheet styling information such as font names, allowing an attacker to inject arbitrary JavaScript on the page.PoC
Example target script:
Save this file in the same directory:
book.xlsx
Open index.php in a web browser. An alert should be displayed.
Impact
Full takeover of the session of users viewing spreadsheet files as HTML.
CVE-2024-45048
Summary
Bypassing the filter allows a XXE-attack. Which is turn allows attacker to obtain contents of local files, even if error reporting muted by @ symbol. (LFI-attack)
Details
Check
$pattern = '/encoding="(.*?)"/';
easy to bypass. Just use a single quote symbol'
. So payload looks like this:If you add this header to any XML file into xlsx-formatted file, such as sharedStrings.xml file, then xxe will execute.
PoC
xl/sharedStrings.xml
file in edit mode.<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
tosharedStrings.xml
file and rename zip back to xlsx.http://%webhook%/file.dtd
Impact
Read local files
Release Notes
PHPOffice/PhpSpreadsheet (phpoffice/phpspreadsheet)
v2.2.1
Compare Source
Security Fix
Fixed
v2.2.0
Compare Source
Added
Changed
Deprecated
Moved
Fixed
v2.1.0
Compare Source
MINOR BREAKING CHANGE
Added
Changed
Deprecated
Removed
Fixed
v2.0.0
Compare Source
BREAKING CHANGE
any interfaces or inherit from any classes, you will need to adapt your typing accordingly. If you use static analysis
tools such as PHPStan or Psalm, new errors might be found. If you find actual bugs because of the new typing, please
open a PR that fixes it with a detailed explanation of the reason. We'll try to merge and release typing-related
fixes quickly in the coming days. PR #3718
Added
Changed
toFormattedString
will now always return a string. This was introduced with 1.28.0, but was not properly documented at the time. This can affect the results oftoArray
,namedRangeToArray
, andrangeToArray
. PR #3304Deprecated
_translateFormulaToLocale
and_translateFormulaEnglish
are replaced by versions without leading underscore. PR #3828Removed
Fixed
xlfn.
andxlws.
from Formula Translations. Issue #3819 PR #3828between
operator for data validation. Issue #3863 PR #3865v1.29.0
Compare Source
Added
toArray()
methods. PR #3494Changed
CellRange
andCellAddress
objects for therange
argument in therangeToArray()
method. PR #3494upDownBars
and subsidiary tags; these were previously ignored on read and hard-coded on write. PR #3515Deprecated
Removed
Fixed
v1.28.0
Compare Source
Added
Changed
toFormattedString
will now always return a string. This can affect the results oftoArray
,namedRangeToArray
, andrangeToArray
. PR #3304Deprecated
Removed
Fixed
v1.27.1
Compare Source
Added
Changed
Deprecated
Removed
Fixed
master
branch tomain
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.