Reflected Cross-Site Scripting (XSS) in CMS Kit ContentPreview endpoint
Description
The CMS Kit ContentPreview endpoint (POST /CmsKitCommonWidgets/ContentPreview) rendered caller-supplied Markdown/HTML content without authentication or server-side sanitization, allowing a reflected XSS payload to be returned in the HTTP response.
Details
CmsKitCommonWidgetsController.ContentPreview accepted anonymous POST requests and passed the request's content value straight into ContentPreviewViewComponent, which rendered it through MarkdownToHtmlRenderer with AllowHtmlTags = true and PreventXSS = false. The resulting HTML was emitted via Html.Raw(...) in ContentFragment.cshtml with no server-side sanitization and no authorization check on the controller action.
Introduced by commit 22bceae61c ("Disable XSS prevention for content preview").
Fixed by commit 8471b6cdc6 ("Require authentication and sanitize content previews by default", PR #26514), which adds [Authorize] to the controller, defaults PreventXSS to true, and ties blog post previews to the blog's Prevent XSS feature. This fix is merged into the rel-11.0 branch but has not yet shipped in a tagged release (11.0.0 predates this commit).
This isssue has been fixed with this PR github.com/
Proof of concept
Unauthenticated request:
curl -s -X POST 127.0.0.1/
Returns HTTP 200 with the script tag reflected unescaped in the response body. Anonymous requests without an antiforgery cookie are not blocked; requests carrying an authenticated session or antiforgery cookie may be rejected by ABP's antiforgery validation.
Impact
Reflected XSS: an attacker who can get a victim to submit a crafted content value to this unauthenticated endpoint (directly or via an auto-submitting form) can have arbitrary script rendered and executed in the victim's browser within the application's origin. This can be used for phishing and UI spoofing against anonymous visitors of applications that use the CMS Kit module. Execution within an authenticated editor's own preview session is a related, unverified risk.
Reported to Volosoft by security researcher Muhammed Ikbal Yildiz, who also reported it to the Turkish Cybersecurity Presidency (CVE reportedly reserved, identifier not yet provided). Coordinated disclosure is in progress; this advisory should stay as a draft until a patched release ships.