Versions
Sitecore XP and XM 8.2 to 10.x, headless projects with JSS or the Content SDK on Next.js, and XM Cloud
Platforms / Sitecore
A Sitecore security scan is the CMS Security Audit of the custom C# code, Razor views, configuration patches and Next.js rendering host of a Sitecore project.
The CMS Security Scanner reads the custom code of Sitecore XP and XM 8.2 to 10.x, headless JSS or Content SDK, and XM Cloud projects. The scan covers the C# solution and the Next.js rendering host, and a CMS Security Consultant checks each finding.
Versions
Sitecore XP and XM 8.2 to 10.x, headless projects with JSS or the Content SDK on Next.js, and XM Cloud
Code read
C#, Razor views, XML configuration patches, Next.js and TypeScript code, and serialized items from SCS, Unicorn or TDS
What we need
The .NET solution, the App_Config patch files, the serialized items and the rendering host with its lock files, with secret values removed
Report
One finding per issue, with its entry point, its severity and a fix for your developers
The scan lists every construct where a request, a user, a job or another system reaches custom code, with its access control.
| Category | Construct in your code | Risk |
|---|---|---|
| MVC controllers and controller renderings | SitecoreController and Controller classes, controller rendering items, custom routes registered in the initialize pipeline | Each action method reads request data, and a custom route can skip the item resolution and its access checks. |
| Web API and Sitecore Services Client | ApiController classes, ItemService, EntityService controllers and the Services Client security policy | A weak policy or a missing authorization attribute can expose item data or item writes to anonymous users. |
| Request pipeline processors | Processors in preprocessRequest, httpRequestBegin, mvc.* pipelines, item resolvers, link providers and getMediaStream | These processors run on every request, often before the page renders and before many access checks run. |
| HTTP handlers, modules and WebForms | IHttpHandler (.ashx) and IHttpModule classes, customHandlers entries, .aspx pages and sublayouts with ViewState | A handler answers a URL outside the Sitecore page pipeline, and WebForms code depends on the machineKey configuration. |
| Layout Service and GraphQL extensions | getLayoutServiceContext processors, contents resolvers, GraphQL schema providers and schema extenders | These classes add data to the public JSON and GraphQL responses that the rendering host and the browser receive. |
| Next.js rendering host | API routes, route handlers, middleware, server components, server actions and the editing render and data routes | This server code holds API keys, calls Sitecore and Experience Edge, and must reject editing requests without the editing secret. |
| Sitecore Forms | Custom submit actions based on SubmitActionBase, custom field types, validators and file upload fields | A submit action receives visitor data and often writes it to a database, a CRM or an email service. |
| Fields and rendering parameters | Custom field types, renderField processors, rendering parameter templates and Rich Text settings | Editor-controlled values reach the HTML output, so a missing encoding step becomes stored cross-site scripting. |
| Scheduled agents, events and publishing | Scheduling agents, task command items, item and publish event handlers, publish and publishItem processors | This code runs without a visitor request, often with security disabled, and can change what the public site shows. |
| Content Management extensions | Sheer UI commands, ribbon buttons, SPEAK dialogs and custom pages under /sitecore/admin | An authoring extension must check the rights of the editor, because a direct URL can call it. |
| Sitecore PowerShell Extensions | SPE scripts in serialized items, SPE integration points and the web service switches in Spe.config | SPE runs PowerShell on the CM server, so script access, remoting and session elevation need strict control. |
| Authentication and identity | Sitecore Identity plugins, owin.identityProviders processors, claim transformations, external user builders and CD login controllers | Sign-in code decides who a user is and which Sitecore roles that user receives. |
| xConnect, xDB and Content Search | Custom facets, contact identification code, Marketing Automation activities, computed index fields and search controllers | This code stores visitor personal data and builds search queries from visitor input. |
| Configuration patches and serialized items | App_Config/Include patch files, web.config transforms, and serialized roles, access rights and API key items | A patch file can remove a security processor, and a serialized item can grant rights or open an API key to every origin. |
The scan traces user data from each entry point to the operations below.
| Operation | What the scanner looks for |
|---|---|
| Security context bypass | SecurityDisabler and UserSwitcher blocks that a visitor request can reach, and item writes, deletes or publishes inside them. |
| Query injection | Sitecore query and fast query strings, Content Search predicates, raw Solr queries and SQL commands built from user input. |
| Cross-site scripting | Html.Raw, HtmlString, Response.Write and dangerouslySetInnerHTML with field values, rendering parameters or request data. |
| .NET deserialization | BinaryFormatter, LosFormatter, ObjectStateFormatter and Json.NET TypeNameHandling settings that accept data from a request, cookie or header. |
| Server-side request forgery | HttpClient, WebClient and fetch calls in Next.js server code where the request controls the target URL. |
| Path traversal and file upload | File and Path APIs, ZIP extraction and media upload code that build a file path from request data. |
| XML external entities and code execution | XML parsers with DTD processing enabled, XSLT with scripts, Process.Start, PowerShell runspaces and type names from input. |
| Open redirect | Response.Redirect, RedirectResult, returnUrl parameters and Next.js redirects to a target that the request controls. |
| Cache poisoning | HTML cache keys, output cache settings and Next.js cache keys that a request can influence. |
| Secrets and missing request controls | Credentials in source control, server secrets in NEXT_PUBLIC_ variables, and state-changing endpoints without anti-forgery or authorization checks. |
Sitecore security bulletins show the vulnerability classes that the scan looks for in custom code and configuration.
The scanner reviews the custom code of the project, not the Sitecore product. This includes C# controllers, pipeline processors, Razor views, configuration patches, serialized items and the Next.js rendering host. CMS Security Consultants review each finding before the report.
Yes. On XM Cloud, now named SitecoreAI, most custom code runs in the Next.js rendering host. The scan reads its API routes, middleware, server components and environment variables. It also reads the configuration patches, serialized items and PowerShell scripts that the project deploys.
The scan covers Sitecore XP and XM 8.2 to 10.x, headless projects with JSS or the Content SDK, and XM Cloud. It compares the Sitecore version and hotfixes of your project with the Sitecore security bulletins.
ASP.NET uses the machineKey to protect ViewState, and a key that is shared or copied from a public sample protects nothing. Sitecore bulletin SC2025-005 concerns deployments that used a sample key. The scan checks that each environment has its own key and that the key is not in source control.
Several critical Sitecore bulletins since 2021 concern insecure deserialization. Custom code can add the same weakness through BinaryFormatter or Json.NET TypeNameHandling. The scan finds these constructs and checks if request data reaches them.
Send the .NET solution, the App_Config patch files, the serialized items and the rendering host source with its lock files. The scan needs no access to a production server. Remove secret values before you send the configuration.
The same method, report and consultants apply to each platform.
Tell us how to reach you. A CMS Security Consultant will contact you to plan your Sitecore scan.