fix(deps): update dependency easycorp/easyadmin-bundle to v5.0.10 [security]#463
Open
renovate[bot] wants to merge 1 commit into
Open
fix(deps): update dependency easycorp/easyadmin-bundle to v5.0.10 [security]#463renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
Contributor
Author
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v5.0.9→v5.0.10Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
EasyAdminBundle has path traversal and reflected XSS in Flag and Icon Twig components
GHSA-2wwr-9x6f-88gp
More information
Details
EasyAdminBundle ships two public Twig components —
<twig:ea:Flag countryCode="...">and<twig:ea:Icon name="...">— that load SVG files from disk using a path built directly from a public component property, and then render the resulting markup with the Twig|rawfilter.When an application binds either of those properties to data that is influenced by an end user, the lack of validation on the property value leads to two distinct issues:
.svgfile disclosure (both components) — the property value is concatenated into a filesystem path without normalizing or constraining it, so..segments are preserved and resolved by PHP. Any file on the server whose absolute path ends in.svg(for example, user-uploaded SVG icons stored elsewhere on the host) can be read and embedded into the rendered page.countryCodevalue twice, and the parent template renders that string with|raw. An attacker who controlscountryCodecan therefore inject arbitrary HTML/JavaScript that will execute inside the authenticated admin context that rendered the component.The first-party usage shipped by EasyAdminBundle itself is not affected: the bundle only passes ISO 3166 alpha-2 codes validated through
Symfony\Component\Intl\Countriesto theFlagcomponent, and only hard-codedinternal:..names or values previously set in PHP viaMenuItem::setIcon()to theIconcomponent. The vulnerability is reachable only in third-party templates that pass attacker-controlled data into these properties.Impact
Path traversal is information disclosure bounded by the
.svgextension; reflected XSS in Flag runs in the admin context and is therefore more sensitive but requires a vulnerable template wiring and user interaction.Affected components
EasyCorp\Bundle\EasyAdminBundle\Twig\Component\Flag— public Twig tag<twig:ea:Flag>, propertycountryCode.EasyCorp\Bundle\EasyAdminBundle\Twig\Component\Icon— public Twig tag<twig:ea:Icon>, propertynamewhen the value starts with theinternal:prefix.Credit
EasyAdmin would like to thank Claude Mythos Preview (via Project Glasswing and The PHP Foundation) for reporting the issue and providing the fix.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
EasyCorp/EasyAdminBundle (easycorp/easyadmin-bundle)
v5.0.10: 5.0.10Compare Source
This is a security release that contains a fix for this issue:
[
565064b] Path traversal and reflected XSS in Flag and Icon Twig componentsFull security advisory information: GHSA-2wwr-9x6f-88gp
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, 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.