NukeViet CMS: Stored XSS via internal marker injection in iframe srcdoc sanitization
nukeviet
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| nukeviet nukeviet |
| No fix yet |
Original description
NukeViet CMS is a multi Content Management System. From 4.5.08 until 4.5.12 and 4.6.02, an attacker can place NukeViet's internal {@[, ]@}, [@{, and }@] sanitizer markers in an iframe srcdoc value by encoding square brackets as HTML entities. Recursive NukeViet\Core\Request::filterTags() processing decodes the characters, accepts the forged marker, and later converts it to real markup without normal tag or attribute filtering. Because an unsandboxed srcdoc iframe shares the parent origin and iframe is enabled by default through NV_ALLOWED_HTML_TAGS, stored Contact messages, comments with the editor enabled, or submitted articles can execute JavaScript with the viewer's session. This issue is fixed in versions 4.5.12 and 4.6.02.
From the CVE record · GitHub_M
References
- github.com/nukeviet/nukeviet/security/advisories/GHSA-p7cw-whjw-crcm
- github.com/nukeviet/nukeviet/commit/13d83ff45072730d10de89195da2154c896d6968
- github.com/nukeviet/nukeviet/commit/81a021a6557477efe5a4c713e21b883d138002e6
- github.com/nukeviet/nukeviet/blob/4.5.13/CHANGELOG.txt
- github.com/nukeviet/nukeviet/releases/tag/4.6.02
- nukeviet.vn/vi/news/Tin-tuc/thong-bao-phat-hanh-nukeviet-4-6-02-858.html