Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293393

[PP-1] Restrict allowed additional attributes to prevent self XSS

$
0
0

Problem/Motivation

CKEditor 4 always disallows on* attributes within CKEditor 4. We should implement similar measures in CKEditor 5 to prevent self XSS.

Proposed resolution

Make Drupal\ckeditor5\HTMLRestrictions disallow on* and style attributes.

Remaining tasks

Postponed on #3231334: Add validation for attributes allowed or forbidden on all elements

  • Tests
  • Validation constraint
  • Review

User interface changes

A validation error will show up in the CKE5 admin UI if you attempt to configure Source Editing to explicitly allow one of these insecure attributes.

API changes

None.

Data model changes

None.


Viewing all articles
Browse latest Browse all 293393

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>