Sector Distribution
A module specific to this distribution does not sufficiently sanitise media names. An ordinary account on the site could view restricted information and alter or add new data by injecting malicious scripts.
- Who could do thisOnly someone with a login on your site.
- Does it apply to youAn attacker must have a role with the ability to create or edit a media item.
- Has it been used in attacksNo sign of it.
- How urgentDrupal rates this moderately critical. Include it in your next routine update, within the month.
Tell your developerUpdate Sector Distribution to 10.3.3 or 10.4.2, whichever branch you are on.
For developers: what the fix changed
The fix resolves the XSS vulnerability by using placeholders (`@name` and `:url`) in `TranslatableMarkup` instead of directly concatenating the media entity's name and URL into the markup in `sector_media_form_alter()`.
Also in this release The release also includes deprecation fixes, updates to composer dependencies, and replaces `check_markup` with `processed_text` render arrays in embedded content plugins.
composer.json+3 −2modules/sector_media/sector_media.module+14 −8 fixmodules/sector_news/config/install/core.entity_view_mode.node.search_result.yml+10 −0modules/sector_news/config/optional/search_api.index.sector_news.yml+0 −0modules/sector_text_formats/modules/sector_embedded_content_examples/src/Plugin/EmbeddedContent/Disclosure.php+11 −3modules/sector_text_formats/modules/sector_embedded_content_examples/src/Plugin/EmbeddedContent/Note.php+12 −4modules/sector_users/sector_users.install+10 −5sector.install+1 −1src/SectorInstallHelpers.php+2 −1