Penetration testing a midPoint deployment

A scoped security test shows whether midPoint's login, authorization, self-service, API, expression and connector controls hold up in your environment. This page explains what to include and what to ask a testing partner for.

On this page

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.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

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 factorBlack-box externalGrey-box with rolesWhite-box configuration review
What the tester starts withPublic URLs only, no accountsA standard user and a delegated admin accountConfiguration exports, object templates, mappings and connector settings
Main surface exercisedLogin, password reset and self-registration pagesAuthentication sequences, self-service, REST API and delegated admin screensMappings, expressions, object templates and connector credentials as stored
Authorization bypass coverageLimited to what is reachable without credentialsStrong for role boundaries between user, delegate and adminStrong for how roles and authorizations are written, weaker for runtime behavior
Realism of attack pathHigh for an outside attackerHigh for an insider or compromised accountLower, because it reads design rather than running the attack
Tester effort and cost driverLower setup, but findings may be shallowNeeds test accounts, role mapping and environment accessNeeds configuration handover and time with the midPoint team
Best fitPublic exposure check before go-livePre-production review of access and self-service flowsPeriodic check after major configuration changes or upgrades
What to confirm with the providerWhether testing covers the login sequence and registration flowsThat test accounts match real roles and admin scopes are documentedWhether 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 advisories

Questions 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

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.