GHSA-mxpf-qgg6-v3ff: NukeViet: Unauthenticated Reflected XSS in Comment Module
Summary
Reflected XSS in the Comment module via the status_comment URL parameter. The parameter accepts attacker-controlled base64-encoded HTML/JavaScript that is decoded server-side and rendered unescaped into the page. Compounded by a second flaw: the checkss anti-forgery token was derived from a site-wide static value (NV_CACHE_PREFIX) instead of a per-session value, making the token reusable across all users and allowing the attack to be delivered via a simple crafted URL.
Details
Vulnerability 1 — Reflected XSS via status_comment
Affected components:
- modules/comment/funcs/main.php — parameter ingestion
- modules/comment/comment.php — decode and template assignment
- themes/*/modules/comment/comment.tpl — raw render
The status_comment GET/POST parameter is sanitised with get_title(), which applies strip_tags(). Because the parameter is intended to carry a base64-encoded string, its character set ([A-Za-z0-9-_,]) passes through strip_tags() unchanged. The value is later decoded with nv_base64_decode() and assigned to the template variable STATUS_COMMENT without any escaping, which the template then renders raw inside a <div>.
The fundamental flaw is ordering: the filter is applied to the encoded form of the data, before decoding, so it is entirely ineffective against whatever the decoded content contains. Any HTML or JavaScript payload, once base64-encoded, survives the filter and executes in the victim's browser.
Vulnerability 2 — Session-independent checkss token
Affected components:
- modules/comment/comment.php — token validation in comment-load and comment-module functions
- modules/comment/funcs/post.php — token validation when posting
- All caller modules that generate a checkss before invoking the comment system (e.g. modules/news, modules/page)
The checkss token required to load the comment block was computed by hashing the resource parameters together with NV_CACHE_PREFIX:
checkss = md5(module + area + id + allowed + NV_CACHE_PREFIX)
NV_CAC
Details
Original advisory: https://github.com/advisories/GHSA-mxpf-qgg6-v3ff
Referenced CVEs
| CVE | CSIRTS overview | External |
|---|---|---|
| CVE-2026-48118 | coverage & exploitation status | NVD · CVE.org |
More from GitHub Security Advisories
- mediumGHSA-jr6p-8pjj-mfx6: Capsule has an incomplete fix of CVE-2026-22872: TenantResource RawItems and Generators s…2026-07-31
- mediumGHSA-68cj-mvg9-rgm2: Capsule: CapsuleConfiguration NodeMetadata regex fields lack webhook validation, allowing…2026-07-31
- mediumGHSA-ff84-5f28-78qj: re2: Out-of-bounds heap read in `exec`/`test`/`match` via attacker-influenced `lastIndex`…2026-07-31
- mediumGHSA-6hxr-mr5r-9836: re2: Global `String.prototype.match` with an empty-matchable pattern never advances → inf…2026-07-31
- mediumGHSA-x83g-979r-f5fh: Sylius Mollie Plugin has unauthenticated IDOR that leaks order token and customer PII2026-07-31