Layout Builder iFrame Modal
The command used to open the popup window does not properly clean the options it receives. Someone with an ordinary account could run harmful code in the browser of other visitors. They could access hidden data and modify information on the site.
- Who could do thisOnly someone with a login on your site.
- Does it apply to youA site is affected if an attacker can control the response from the server or add specific code to a page.
- 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 Layout Builder iFrame Modal to 1.3.9.
For developers: what the fix changed
The fix updates the `render` method in `src/Ajax/OpenIframeCommand.php` to reuse the parent `OpenDialogCommand::render` logic, ensuring dialog options are properly sanitized.
Also in this release Added origin checks to postMessage listeners and updated tests for Drupal 12 compatibility.
js/iframe.js+4 −0js/redirect.js+1 −1src/Ajax/OpenIframeCommand.php+5 −8 fix