Search and Replace Scanner
The module does not properly clean up the search results before displaying them. An ordinary account on the site could add malicious scripts to a content title that run when someone searches for it. 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 perform searches only and there is a piece of content with malicious code in the title.
- 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 Search and Replace Scanner to 2.0.3.
For developers: what the fix changed
The fix replaces strip_tags with Xss::filter in src/AdminHelper.php to properly sanitise search results, and adds restrict access to the perform search only permission in scanner.permissions.yml.
Also in this release Added support for scanning the entity label field.
scanner.permissions.yml+1 −0 fixsrc/AdminHelper.php+2 −1 fixsrc/Form/ScannerEntityAdminForm.php+4 −3