Section Library
The module does not properly clean up the template name when it is displayed. An ordinary account on the site could add malicious scripts to the template name. This could allow them to view hidden data or change information on the site.
- Who could do thisOnly someone with a login on your site.
- Does it apply to youA site is affected if a user has the access right to add section library templates.
- 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 Section Library to 2.0.3 or 1.2.4, whichever branch you are on.
For developers: what the fix changed
The fix escapes the section label using Html::escape before rendering it in ChooseSectionFromLibraryController.php.
src/Controller/ChooseSectionFromLibraryController.php+3 −1 fix