[3.x] Check if Html::decodeEntities is required and secure

Created on 29 November 2023, 7 months ago
Updated 18 April 2024, 2 months ago

Problem/Motivation

Currently within the WatchdogMailer.php file, this line (98) of code is used:

$body = Html::decodeEntities(strip_tags($body));

This might be prone to possible security risks, as it reverts previous HTML sanitation efforts, and makes its content unsafe (e.g. usage of the <script> tag is allowed again)

Steps to reproduce

Proposed resolution

Check whether this line can be replaced by a different (safer) approach and if yes, do so.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany LRWebks Porta Westfalica

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024