Versions
Liferay DXP 7.0 to 7.4 and the quarterly releases, self-hosted, PaaS and SaaS
Platforms / Liferay
A Liferay security scan is the CMS Security Audit of the custom modules, client extensions, templates, Objects and configuration of a Liferay DXP project.
The CMS Security Scanner reads the custom code of a Liferay DXP 7.0 to 7.4 or quarterly release project, on self-hosted, Liferay PaaS or Liferay SaaS. AI agents read the modules and client extensions, and a CMS Security Consultant confirms each finding.
Versions
Liferay DXP 7.0 to 7.4 and the quarterly releases, self-hosted, PaaS and SaaS
Code read
Java, JSP, FreeMarker, Groovy and client extension code in JavaScript, TypeScript and microservice languages
What we need
The Liferay Workspace or build repository, client extensions, exported Objects, workflows and templates, and configuration 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 that lets a request, a user, a job or another system reach custom code, and records the access control in front of it.
| Category | Construct in your code | Risk |
|---|---|---|
| Portlets and MVC commands | MVCPortlet classes, MVCActionCommand, MVCRenderCommand and MVCResourceCommand components, portlet filters | Each command reads request parameters, and a command without its own permission check is open to every user who sees the portlet. |
| Headless APIs | REST Builder resources from rest-openapi.yaml, custom JAX-RS applications and GraphQL under /o/ | These APIs are the main integration surface, so the scan checks authentication, OAuth scopes and permission checks in each resource. |
| JSON web services and Service Builder | Remote *ServiceImpl methods under /api/jsonws, ModelResourcePermission and PermissionChecker calls | Every public remote method becomes an HTTP endpoint, and Liferay expects the permission check inside that method. |
| Service overrides and legacy hooks | ServiceWrapper components, StrutsAction components, JSP overrides and dynamic includes | An override can remove a check that the original product code had. |
| Servlets and filters | OSGi HTTP whiteboard servlets and filters, BaseFilter subclasses and servlets in WAR plugins | Servlets run outside the portlet permission model, so authentication and authorization are the task of the custom code. |
| Authentication extensions | AutoLogin, AuthVerifier and Authenticator classes, SAML, OpenID Connect and header-based SSO | A custom login component decides who the user is, and one vulnerability there opens every other entry point. |
| Frontend client extensions | Custom element, IFrame and theme JavaScript client extensions, page fragments | This code runs in the browser of every visitor, so the scan checks DOM output, token handling and calls to Liferay APIs. |
| Microservice client extensions | Microservice client extensions, Object action and workflow action endpoints, OAuth headless server and user agent profiles | These services receive calls from Liferay and must validate the token and scope of each call. |
| Objects | Object definitions and permissions, generated headless APIs, API Builder endpoints, Groovy and webhook actions, validations | Wrong Object permissions expose records through the generated API, and Groovy actions run with server privileges. |
| Kaleo workflows | Workflow definitions with script elements, custom ActionExecutor and TaskAssignee classes | Workflow scripts run on content that untrusted users submit. |
| Background and event code | SchedulerJobConfiguration, MessageListener, ModelListener and UpgradeProcess classes | This code runs without a user request, often with full rights, on data that users stored earlier. |
| Templates | FreeMarker web content templates, Application Display Templates, fragment and theme templates | Templates decide which output is escaped, and some template variables give access to Java objects. |
| Forms, search and import | Forms data providers, custom indexers and query contributors, Search Blueprints, LAR export and import handlers | A data provider calls a URL, a custom query can skip permission filtering and an import reads a user-supplied archive. |
| Configuration and scripts | portal-ext.properties, OSGi .config files, client-extension.yaml, batch files and Script Console scripts | Configuration decides which endpoints are open and which hosts are trusted, and it can hold secrets. |
The scan traces user data from each entry point to the operations below.
| Operation | What the scanner looks for |
|---|---|
| SQL injection | Custom SQL, JDBC through DataAccess and DynamicQuery SQL restrictions built from user input instead of bound parameters. |
| Missing permission check | Remote services, REST resources and MVC commands that call *LocalService methods without ModelResourcePermission or PermissionChecker. |
| Insecure direct object reference | Entities loaded by an ID from the request without a check of site, company and permissions. |
| Cross-site scripting | JSP and FreeMarker output without the right escaping, and innerHTML in client extensions and fragments. |
| Template and script execution | User data in FreeMarker template code, re-enabled restricted template variables, Groovy engines and system commands. |
| Cross-site request forgery | State-changing action URLs, servlets and APIs that accept requests without the p_auth token or token-based authentication. |
| Server-side request forgery | HTTP clients, webhook actions and Forms data providers where a user controls the destination host. |
| Deserialization and XML | ObjectInputStream, polymorphic JSON typing, and XML parsers that allow external entities in imports and web content. |
| Files, paths and redirects | File names from users in file and ZIP code, and redirect or backURL parameters sent to any host. |
| Secrets | Passwords, API keys and OAuth client secrets in portal-ext.properties, OSGi configuration, client extension files or scripts. |
Liferay security advisories show the vulnerability classes that the scan looks for in custom code.
The scanner reviews the custom code of the project, not the Liferay product. This includes OSGi modules, client extensions, templates, fragments, Objects, Kaleo workflows and configuration. CMS Security Consultants review each finding before the report.
Yes. Liferay SaaS does not allow custom OSGi modules, so the scan reads client extensions, Objects, fragments, templates and configuration there. On PaaS and self-hosted installations it also reads the OSGi modules.
The scan covers Liferay DXP 7.0 to 7.4 and the DXP quarterly releases. It compares the release of your project with the Liferay known-vulnerabilities list.
Liferay expects custom code to check permissions in remote services, REST resources and MVC commands. A missing check lets a user read or change the records of other users, and functional tests rarely show it.
Yes. Groovy can run in Kaleo workflow definitions, Object actions, Object validations and the Script Console. The scan checks which scripts exist, what data reaches them and whether scripting settings are wider than needed.
No. The scan needs the source code, client extensions, exported Objects, workflows and templates, and configuration with secret values removed. It does not need production access, a database dump or user content.
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 Liferay scan.