Review main Merged

97158[TASK] Harden output escaping of QR code form element

Torben Hansen CR +2 V +2 Easy +1 −1 updated 11/03/26, 12:08

Commit message

The QR code form element of EXT:redirects rendered the
"content" attribute of the <typo3-qrcode> component by
concatenating "source_host" and "source_path" without
escaping.

"source_path" is generated automatically for QR codes and
is not part of the form, but DataHandler accepts it for
users with write access to sys_redirect.

This is not a security vulnerability: the backend Content
Security Policy is always enforced and does not allow
inline scripts or event handler attributes, so injected
markup cannot execute JavaScript.

As a hardening measure, the value is now escaped with
htmlspecialchars(), like it is already done in
ShortUrlElement.

Review

  • Code review CR +2 Done
    • Georg Ringer +2
    • Oliver Klee +1
    • Markus Klein +1
    • Wouter Wolters +1
    • Simon Schaufelberger +1
  • Verified V +2 Done
    • Georg Ringer +2
    • Markus Klein +1
    • Wouter Wolters +1
    • Simon Schaufelberger +1
    • core-ci +1 CI

Issues 1

Files 1

Review log 78

  1. Torben Hansen uploaded patch set 1 10/25/26, 16:51

  2. core-ci voted on patch set 1 V +1 10/25/26, 16:59 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/112525

  3. Wouter Wolters voted on patch set 1 CR +1 V +1 10/25/26, 18:03

  4. Simon Schaufelberger voted on patch set 1 CR +1 V +1 10/25/26, 18:25

  5. Oliver Klee voted on patch set 1 CR +1 10/25/26, 18:58

  6. Markus Klein voted on patch set 1 CR +1 V +1 11/03/26, 08:05

  7. Georg Ringer voted on patch set 1 CR +2 V +2 11/03/26, 11:35

  8. Georg Ringer merged patch set 2 11/03/26, 12:08