Why penetration testing a midPoint deployment is worth scoping on its own
A midPoint deployment deserves its own penetration test because it holds privileged access to the systems it governs. It creates and changes accounts, assigns roles and pushes credentials into directories, applications and cloud tenants. A compromise of the identity governance platform therefore has reach far beyond the midPoint web interface, and a general application test will not show how far an attacker could move from there. Scope the test around midPoint's own attack surface before the platform goes live.
midPoint is an identity management system, not an access management or single sign-on server. Evolveum states that it does not implement the server side of OAuth2, OpenID Connect or SAML, although its user interface can authenticate against external SSO services. The test therefore has to cover midPoint's own login sequences, including any authentication sequence that combines modules, the self-service pages for password reset and registration, the REST API, the expressions and scripts that shape provisioned data, and the credentials stored for each connector. Confirm with Evolveum's frequently asked questions which authentication paths midPoint handles itself in your version, because each one is a path the tester should exercise.
Evolveum's security advisories show why these areas belong in scope. The 2019 advisories covered clickjacking from a missing X-Frame-Options header, XXE handling and LDAP and Active Directory connectors that did not check certificate validity. Ask the tester to check the advisories for your version and to confirm that each fix is in place. Plan the test before go-live, again after each major upgrade, and whenever you enable a new authentication module, since each change can reopen an area that was previously reviewed.
How to scope a midPoint penetration test step by step
This sequence turns a vague request for a midPoint security test into a written scope that names the exact version, architecture, trust boundaries, roles and rules under which testing will run.
Confirm the midPoint version and support line
Record the exact midPoint version in production, not the version in the original project plan. Map it to its release line: 4.8 (Curie) is a long-term support release supported until 17 October 2028, 4.9 support ends 18 October 2026, 4.10 (Braille) is supported until 26 November 2027, and 4.11 (Čapek) is a feature release planned for 21 October 2026. The support line tells the tester which fixes already exist and which findings may be known issues. Done when the version string, release line and support end date are written into the scope document and confirmed against the midPoint releases page.
Record the Java, PostgreSQL and hosting stack
Capture the Java runtime, the PostgreSQL version, the database host arrangement and the container or virtual machine layout. Evolveum recommends Java 25 for 4.11 and later (Java 21 supported) and Java 21 for 4.10 and older (Java 17 supported), and uses PostgreSQL as its native repository database, ideally on a separate database server. Ask the platform team whether midPoint runs from Docker images or on Linux virtual machines. Done when the stack table lists each component with its version and the team has confirmed each entry in the running environment, not in a build file.
Map the deployment shape and network path
Draw how a request reaches midPoint. For a single node, note the web entry point and the database connection. For multi-node deployments, document the sticky HTTP load balancer, the shared central database, the cache invalidation traffic between nodes over HTTPS, and the Quartz scheduling that coordinates tasks. Mark which paths are reachable from the internet, from corporate networks and from connected systems. Done when the diagram has every listener, port and protocol named and the platform team has confirmed it matches the running configuration.
Define trust boundaries and connector credentials
Identify where midPoint crosses a trust boundary: the administrative interface, the self-service interface, the REST API, the repository database, the keystore on the midPoint home, and each connected target such as LDAP, Active Directory, Microsoft Entra ID, SCIM2 or database connectors. For each connector, record which service account midPoint uses and where its secret is stored. Done when every boundary has an owner, every connector credential is listed by name without values, and the tester knows which systems are in scope for lateral movement testing.
List authentication sequences and roles in scope
Enumerate each login path: local password, any configured authentication sequence, multi-factor steps, password reset, self-registration and self-service flows, plus the administrator and delegated roles that can change configuration. midPoint is an identity management system rather than an SSO server, so note which external SSO service, if any, the user interface depends on. Done when a table lists each sequence, its factors, the roles that reach it and the test identities that will exercise it.
Agree test accounts and rules of engagement
Create dedicated test identities at each privilege level, including a low-privilege self-service user, a delegated administrator and a superuser account that the team controls. Agree in writing which actions are allowed, such as creating test users or triggering connector writes against non-production targets, which are forbidden, such as changing live HR feeds, and how findings that touch production data are handled. Define the testing windows, the notification contacts and the stop conditions. Done when the signed rules of engagement name every account, system and prohibited action, and the client has confirmed that connector targets used in testing are isolated.
Set retest criteria and the evidence required
Define what counts as a closed finding: the fix is deployed to the same version line, the exploit path no longer succeeds with the same account, and the regression check passes in the same environment. Check the Evolveum security advisories for issues already known against the version in scope, so the report separates new findings from known fixes that need upgrading. Done when the retest criteria, evidence format and owner for each finding are agreed, and the scope document is approved by the client's security lead before any testing begins.
Which midPoint test areas matter most for your risk
Authentication sequences decide which factors a user must pass and in what order, so an attacker looks for a path that skips a factor or falls back to a weaker one. Testing this area means walking every login route the deployment exposes, not only the default form. Ask the tester for test accounts at each assurance level, the authentication sequence definitions and the policy that governs fallback.
- Sequence bypass: Try to reach a protected view after completing only the first factor, or by requesting a sequence step directly.
- Fallback abuse: Check whether a weaker sequence remains reachable when a stronger one fails or is not enrolled.
- Enrollment and reset: Test whether TOTP enrollment or reset can be triggered by a password alone, without a second factor.
- Brute force and lockout: Confirm that repeated failures are throttled or locked and that the lockout cannot be used to deny service to named users.
- Evidence: Captured responses showing the protected page is refused before each required factor passes, and logs that record each failed step.
Check the sequence against your MFA policy before testing, so each finding maps to a control you have promised to operate.
Authorization bypass is the area where a midPoint deployment most often fails in practice, because administrative power is granted through roles, authorizations and the built-in superuser. An attacker who holds a narrow delegated role will look for any object, view or operation that the role grants more widely than intended. The tester needs accounts at each administrative tier, a list of the roles and authorizations in use and read access to the role definitions.
- Horizontal escalation: Use one delegated account to read or change objects belonging to another organizational unit.
- Vertical escalation: Attempt to assign a role or authorization that the account should not be able to grant.
- Superuser exposure: Identify who holds the all-powerful authorization and whether those accounts are used for routine work.
- Hidden operations: Test privileged tasks such as bulk imports, task execution and object deletion through the GUI and the REST API alike.
- Evidence: A matrix of accounts against objects and operations, with the observed result for each cell, plus the role definitions that explain it.
Run the matrix with the same accounts your administrators use day to day, because test accounts with unusual grants will hide the problems you need to find.
Self-service and self-registration are the parts of midPoint that unauthenticated or lightly authenticated users can reach, so they receive the most attention from an external attacker. The risk lies in what a user can change about their own identity, how verification links and tokens are issued, and whether a newly registered account can gain access it should not hold. The tester needs the registration and password reset configuration, a sample of the notification templates and an agreed list of fields a user may edit.
- Attribute tampering: Submit self-service forms with extra fields or altered values, including roles, organization memberships and email addresses.
- Token handling: Check how long activation and reset tokens remain valid, whether they are single use and whether they can be reused after a change.
- Account enumeration: Compare responses for existing and missing accounts during registration and reset.
- Default role assignment: Confirm what a self-registered account receives before any approval has occurred.
- Evidence: Captured requests and responses, a before and after view of the account record, and the approval history for any access granted.
Self-service flows often change between releases, so repeat this test after each upgrade that touches the portal.
The REST API exposes the same objects as the GUI but is often configured separately, with its own authentication method and its own access checks. An attacker tests whether an API request can do what the GUI refuses, or whether an unauthenticated or low-privilege client can reach endpoints meant for automation. The tester needs API accounts for each automation role, the list of endpoints the integrations use and a copy of the authentication settings for the API.
- Parity testing: Repeat each GUI authorization test through the API, including bulk and search operations.
- Authentication method: Confirm which methods the API accepts and whether a weaker method is enabled alongside the intended one.
- Search exposure: Check whether search queries return attributes or objects the calling account should not read.
- Error detail: Review error responses for stack traces, internal paths or data that helps an attacker plan the next request.
- Evidence: Paired GUI and API results for each test, plus the API authentication configuration and the endpoints reached.
Identify which accounts run integrations, because a compromised automation account often has more reach than any person.
Mappings, expressions and scripts run inside the midPoint process with access to its data, so an attacker who can edit or influence them can often reach far beyond their own role. The risk depends on who can create or edit expressions, which expression profiles apply and whether user-supplied values reach a script unchecked. The tester needs an account that can edit mappings, a list of the expression profiles in force and access to the object templates and reports.
- Editor privilege: Determine which roles allow editing a mapping, report or function library, and whether that role can be assigned to a self-service user.
- Profile enforcement: Attempt operations that the assigned expression profile should block.
- Injection through input: Submit values that reach an expression or report unsanitized, such as names containing script syntax.
- Output exposure: Check whether reports or exports reveal attributes that the requesting account should not see.
- Evidence: The expression profile definitions, the failing and passing test cases, and the object history showing which account changed each expression.
Record the scripting language in use before testing, because the controls for Groovy differ from those for other options.
Connectors hold credentials for every target system midPoint manages, such as directories, databases and cloud tenants, so compromising midPoint can mean compromising those systems. The test asks where those credentials are stored, who can read them through the interface and whether connector traffic is protected. The tester needs a read-only view of the connector configuration, the service accounts behind each connector and the certificate settings for each directory or API connection.
- Credential exposure: Check whether connector passwords appear in the GUI, in exports, in logs or in API responses.
- Service account scope: Review what each connector account can change in the target system and whether it exceeds the provisioning job it serves.
- Certificate validation: Confirm that LDAP, Active Directory and HTTPS connections verify server certificates, since earlier midPoint advisories described connectors that did not.
- Logging: Search logs for credential values after a failed connection test.
- Evidence: Export and log samples with secrets masked or absent, certificate verification test results and the permissions granted to each service account.
Confirm the current connector behavior with Evolveum's advisories and your release notes, because connector fixes are issued per version.
Test scope options and when each fits
This table compares three ways to scope a midPoint security test, from an outside view of the login and self-service surface to a review that includes configuration. Read each row against your timeline, your budget for tester time and how much you need to know about configuration. The main takeaway is that grey-box testing with real account roles usually gives the best depth per unit of effort for a pre-production review.
| Scope factor | Black-box external | Grey-box with roles | White-box configuration review |
|---|---|---|---|
| What the tester starts with | Public URLs only, no accounts | A standard user and a delegated admin account | Configuration exports, object templates, mappings and connector settings |
| Main surface exercised | Login, password reset and self-registration pages | Authentication sequences, self-service, REST API and delegated admin screens | Mappings, expressions, object templates and connector credentials as stored |
| Authorization bypass coverage | Limited to what is reachable without credentials | Strong for role boundaries between user, delegate and admin | Strong for how roles and authorizations are written, weaker for runtime behavior |
| Realism of attack path | High for an outside attacker | High for an insider or compromised account | Lower, because it reads design rather than running the attack |
| Tester effort and cost driver | Lower setup, but findings may be shallow | Needs test accounts, role mapping and environment access | Needs configuration handover and time with the midPoint team |
| Best fit | Public exposure check before go-live | Pre-production review of access and self-service flows | Periodic check after major configuration changes or upgrades |
| What to confirm with the provider | Whether testing covers the login sequence and registration flows | That test accounts match real roles and admin scopes are documented | Whether exports can include secrets and how they will be handled |
How a midPoint test covers the connector and expression layer
Connector credentials and expressions need their own test planning because they sit outside the login and web surfaces most testers start with. Connectors such as LDAP, Active Directory, Microsoft Entra ID and SCIM2 hold service credentials that let midPoint read and change accounts in target systems, so compromising the connector configuration can reach far beyond midPoint itself. Mappings and scripts run inside midPoint with access to the provisioned data, which makes them a second place where a weakness can carry consequences into other systems. The test scope should name these components explicitly rather than folding them into a general application review.
For connections, the first check is certificate validation on LDAP and AD connections. Confirm whether the connector verifies the server certificate chain and host name, and whether any setting disables that check for convenience in a test or lab environment that later reached production. Next, establish where connector secrets are stored, whether in the repository, in the midPoint home directory, in a keystore protected by a separate key, or in an external secrets service, and who can read those values through the GUI, the REST API or database access. Ask the vendor or your own configuration baseline to confirm how each connector version handles these fields before the test starts.
For expressions, list who can edit mappings, object templates and reports, and which roles grant that right. Then decide whether the tester may receive a repository or midPoint home account for the test. That access is often needed to verify stored secrets and encryption setup, but it changes what the test proves, so the rules of engagement should record it in writing, along with how the tester's access is removed afterward. Ask your team to confirm which expression profiles are in use and whether scripts can reach the file system or network, since those answers decide which findings are plausible and which controls the report should evaluate.
Every midPoint trust boundary is a candidate test entry point
The diagram starts with an external user and browser, which reach midPoint through a sticky HTTP load balancer. The login sequence is the first hand-off to test, because authentication decides which GUI, self-service or REST API paths a caller can reach. The admin path runs from the load balancer into the administrative interface, so testers should confirm it cannot be reached through a weaker route. All GUI, self-service and API paths write to the PostgreSQL repository, and midPoint reaches target systems only through connectors. Check each arrow that crosses a boundary and record the credentials and trust it carries.
Trust boundaries and entry paths a midPoint penetration test must cover.
Security and operational controls to confirm before testing
A security test of midPoint touches live authentication, provisioning and connector credentials, so the test is only safe when the environment, accounts, backups and monitoring are settled first. The six controls below are what the test owner and the midPoint administrators should confirm in writing before any active testing begins.
Test environment isolation
Confirm the test runs against a midPoint instance and repository that are separate from production, with their own database, keystore and connector endpoints. A test that reaches a live Active Directory, LDAP directory or SaaS connector can create, modify or disable real accounts. Check that test connectors point at non-production target systems, and that outbound network rules block production targets from the test segment. Ask the partner to name every system the test can reach.
Test account lifecycle
Agree in advance which test identities exist, who owns them, what roles and authorizations each holds, and when they are removed. Include accounts for each authentication sequence, self-service and registration path, and a low-privilege baseline for authorization bypass checks. Confirm that test accounts are excluded from HR-driven synchronization and reports, and that every account and password created during the test is deleted or rotated when the engagement closes.
Backup and rollback before active testing
Take a verified backup of the repository database and the midPoint home directory, including the keystore, before any active test. Confirm you can restore to that point in a reasonable window and have tested the restore on a copy. Some tests modify objects, trigger provisioning or exercise expressions, so the rollback plan should name who can restore and how the connector state is reconciled afterward.
Logging and alert visibility
Decide which midPoint logs, audit records and reverse-proxy logs the security team will watch during the test, and whether the test team's activity is flagged in advance so it does not trigger incident response unnecessarily. Confirm that audit logging is enabled for authentication, authorization denials and object changes, and that the test source addresses are recorded. Agree who is told if an alert fires and how the test is paused.
Handling of discovered credentials and personal data
Testers may find connector passwords, bind credentials, API tokens, or personal data in exports, logs, reports or the REST API. Agree in writing that such values are reported with location and evidence, not copied out, stored or used beyond proving the finding, and that any exposed secret is rotated. Confirm where evidence is kept, how long it is retained, and who can access it, especially when identity records contain personal data.
Patch level against Evolveum's advisories
Before testing, record the midPoint version and patch level in the target and compare them with Evolveum's published security advisories. Findings already fixed in a later release should be confirmed as present, not reported as new. The advisories list issues from 2019, such as clickjacking from a missing X-Frame-Options header and LDAP and AD connectors not checking certificate validity, so check whether the same classes of issue apply to your build and configuration.
Evolveum advisoriesQuestions buyers ask before commissioning a midPoint penetration test
What drives the cost and effort of a midPoint penetration test?
The main drivers are how many entry points and roles the test must cover, how much of the deployment sits in scope, and how much access the testers receive. A midPoint instance with a self-registration form, several authentication sequences, a REST API, custom expressions and multiple connectors to target systems has far more surfaces to test than a single login page. Scope also grows with the number of user roles to test for authorization bypass, since each role needs its own test accounts and expected behavior. Testing with a grey-box approach, where testers hold an ordinary user account and configuration exports, usually takes less effort than a black-box test that starts from nothing. Ask the provider for a written scope listing each surface, the roles covered and the environments included, because the quote follows from that list.
How long do scoping and testing a midPoint deployment take?
Scoping is a short, structured exchange that results in a written list of targets, rules of engagement and test accounts, and testing time follows from that list. The duration depends on the number of surfaces, the number of roles to test, how quickly the client can answer questions and how many environments must be covered. Findings that need fixes first, such as a misconfigured authentication sequence, can extend the timeline if the team must confirm the fix before testing continues. Ask the provider to state the expected phases, the dates when the client must provide access and the point at which the report is delivered. Because no duration is fixed in this guide, treat any figure a provider quotes as an estimate tied to the agreed scope.
What must the client provide before a midPoint penetration test starts?
The testers need a defined environment, accounts and people who can answer questions during the test. In practice this means:
- A test instance that mirrors production, or production with agreed testing windows, plus the URLs and network paths to reach it.
- Test accounts for each role, including a standard user, a user with delegated administration and, where relevant, an account with broad rights for comparison.
- Configuration exports such as authentication sequences, object templates, role definitions, expression profiles and connector settings, with secrets removed or replaced by test values.
- Named contacts for technical questions, emergency stops, and the team that owns the target systems behind the connectors.
Agree in writing whether the connector test accounts may touch real target systems. Confirm the data handling rules for any personal data that the test might expose.
Can our internal security team run a midPoint penetration test themselves?
Yes, an internal team can test midPoint if it has the right skills and the time to do the work properly. The team needs working knowledge of web application and API testing, familiarity with midPoint's authentication sequences and authorization model, and the ability to read midPoint configuration such as mappings and expressions. Testing expressions and connector credentials also requires understanding of how midPoint calls Groovy or other scripts and how the connectors authenticate to target systems. Internal teams often find it hard to test their own configuration objectively, because they built it. Many organizations therefore run internal checks continuously and bring in an outside tester for a formal test. Confirm the skill gaps with your own team before deciding which parts to keep in house.
What does a retest of midPoint findings involve?
A retest checks whether each reported finding has been fixed in the way the report described. The client applies the fix, provides the changed configuration or code, and the tester repeats the original steps against the same surface and role. The retest should also check that the fix did not open a new path, such as a changed authorization rule that now grants access to another object type. Retest scope should be agreed in advance, including whether it covers all findings or only high-severity ones, and whether it happens on the same instance. Ask the provider how long fixes are expected to remain open for retest and whether retesting is included in the original quote or billed separately, because that changes the total cost.
Which midPoint areas does a penetration test usually cover?
A useful test covers the areas where midPoint's identity decisions take effect. These typically include:
- Authentication sequences, including password, multi-factor and self-service recovery flows.
- Authorization, where testers try to reach objects or actions outside a role's rights.
- Self-service registration, access requests and password reset paths.
- The REST API and any automation accounts that call it.
- Expressions, scripts and reports that process provisioned values.
- Connector credentials and the target systems they reach.
Each area should be listed in the statement of work with the roles and environments it covers. Check the midPoint release in use before testing, because security behavior can differ between versions, and the Evolveum security advisories list past issues to include in the review.
Does a midPoint penetration test cover compliance evidence?
A penetration test produces findings and retest evidence, but it does not by itself satisfy an audit. DeployOpen runs security testing and prepares systems and evidence for compliance assessments, while independent auditors and certification bodies issue any audit report or certification. Ask the provider which deliverables the report includes, such as the test scope, method, findings with affected configuration, fix guidance and retest results. If an auditor will rely on the test, confirm early which control areas it should map to, and agree how the auditor will receive the evidence.
What a midPoint test report should contain
A useful midPoint test report makes every finding reproducible by your own team. Each finding should carry numbered reproduction steps that start from a defined account and role, the exact request or screen sequence used, the observed result, and the expected result. Where the finding depends on a specific authentication sequence, expression profile or connector configuration, the steps should name it. The report must also record the affected midPoint version and configuration, including the release line, the Java and PostgreSQL versions, whether the system ran in Docker or on a virtual machine, which authentication modules and sequences were enabled, and whether the test used Superuser or a scoped administrator account. Without that baseline, a fix cannot be verified against the system you actually run.
Each finding should also carry a severity rating with the reasoning behind it. The reasoning matters more than the label: it should explain what the attacker needed (anonymous access, a self-registered user, a delegated administrator), what the attacker gained (read access to other users' data, changes to role assignments, access to connector credentials), and what conditions in your environment raise or lower the rating. Fix guidance should point to specific midPoint settings, such as authorization definitions, expression profiles, authentication sequence order or network exposure of the web interface, rather than general advice to harden the application. Ask the provider which severity scale they use and how they treat findings that only apply under a non-default configuration.
Finally, the report should define a retest against agreed criteria before testing starts. Agree on which findings must be retested, what evidence closes each one, and whether retesting happens on the same version or on a patched maintenance release. Confirm with the provider that the report is a technical record of testing and not an audit report or certification. Independent auditors and certification bodies issue those conclusions, so ask how the test evidence will be handed to them.
How DeployOpen scopes, tests and retests midPoint
DeployOpen runs security testing as a fixed-scope engagement against the midPoint instance you operate, inside your infrastructure. We agree the scope, targets and rules of engagement in writing before testing starts, then deliver findings, fixes and a retest.
How we scope
- Agree in writing which midPoint environments, hostnames and roles are in scope before any testing starts
- Map authentication sequences, self-service and registration flows, REST API endpoints and connector configurations to test cases
- Confirm test accounts, privilege levels, data handling rules and testing windows with your security and identity teams
How we test
- Test authentication sequences and fallback paths for bypass, including any enrollment and emergency access routes
- Attempt authorization bypass across administrator roles, delegated administration and the REST API
- Review expression and script exposure, and how connector credentials are stored, read and transmitted
How we hand over
- Deliver a findings report with severity, reproduction steps, affected versions and recommended fixes
- Provide configuration changes and patch guidance that your team can apply and verify in its own change process
- Retest agreed findings after fixes are applied and document which items are closed and which remain open
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work begins
- Ongoing support, upgrades and continuous testing are available as a retainer after the initial engagement
- Ask for a written quote that follows from the agreed scope, since DeployOpen does not publish a price list

