Penetration testing a self-hosted Zammad before a customer security review
When a customer or auditor asks for evidence that the helpdesk holding their tickets has been tested, the answer they need is a scoped penetration test covering both the internet-facing and the internal attack surface of your Zammad deployment. A test of the login page alone will not satisfy that question. The scope has to name what Zammad exposes: the customer portal, the chat widget, the web form and the knowledge base on the public side, and the REST API, SSO and 2FA flows, and the Elasticsearch index behind the agent interface on the inside. Each of these accepts input from someone, and each can leak ticket content if it is misconfigured.
The facts available to plan this cover Zammad's architecture rather than its test results. Zammad stores content in PostgreSQL 15 or newer, uses Redis 7 or newer for realtime websocket communication, can use Elasticsearch for search and attachment content, and runs behind Nginx or Apache as a reverse proxy. Each of those components is a separate place for the tester to look, and each needs an owner who can answer questions during the engagement. Confirm with your team which hosts, ports and network segments are reachable from the internet, which are reachable only from the corporate network, and where the Elasticsearch and Redis endpoints listen. Those answers set the scope and the rules of engagement more than any template does.
DeployOpen performs security testing, and the findings report it produces is evidence of what was tested, what was found and what was fixed. It does not issue audit reports, attestations or certifications. Ask the customer or auditor which form of evidence they accept, and agree the report format, retest window and the list of in-scope hosts in writing before testing begins. Prepare test accounts for each role, including an agent, an admin and a customer, so the tester can exercise permissions and not only anonymous access. A test that cannot log in as each role will leave the most sensitive paths untested.
Test types and when each fits a Zammad scope
This table compares the main test types for a self-hosted Zammad and the access each one needs from you. Read each row against the internet-facing and internal surfaces you actually run, then combine rows where your scope spans both. The main takeaway is that a black-box test alone rarely covers the agent, API and configuration risks that customer reviews ask about.
| Test type | When it fits | What it needs from you |
|---|---|---|
| Black-box external testing of the portal, forms and chat widget | Customers or auditors ask about exposure of the public help center, web form and chat widget | Agreed target hostnames, written authorization, and a notice of any rate limits or WAF rules that could block the test |
| Authenticated testing as a customer | The customer portal lets end users see tickets, attachments or organization data that must stay separated | Two or more customer test accounts in different organizations, plus a staging copy so ticket data is not changed in production |
| Authenticated testing as an agent | Agents handle sensitive tickets, and role or group permissions decide what they can see and change | Agent accounts with the roles you want tested, documented group permissions, and a staging copy with representative data |
| API testing without tokens | Confirms that the REST API rejects unauthenticated and password-only requests as configured | Confirmed API base URL, a list of endpoints in scope, and agreement on test volume against a non-production instance |
| API testing with tokens | Integrations use personal access tokens or service users, and the scope and expiry of those tokens need checking | Test tokens with the permissions your integrations really use, and a staging copy so token abuse cannot reach live tickets |
| Configuration review of SSO, 2FA and proxy settings | Login policy, 2FA enforcement and client IP handling are the controls a customer security review usually asks to see | Read-only admin access or a screen-share walkthrough, the identity provider metadata, and the reverse proxy configuration |
| Elasticsearch exposure review | The search index can hold ticket content and attachment text, so network reach and authentication need confirming | Network diagrams showing where the index listens, the access accounts in use, and confirmation of whether any reporting tool reads it |
How the OWASP ZAP scanner fits into a Zammad test
The Zed Attack Proxy (ZAP), maintained by Checkmarx, is the open-source web application scanner most teams will reach for when testing a self-hosted Zammad, and it is useful for two different jobs. ZAP is free and licensed under Apache-2.0, so the tool itself carries no license fee, but the time spent configuring it, interpreting results and retesting is a cost you should plan for. The same project is also used by experienced pentesters for manual testing, which means the tool can be run by your own team, a partner, or both. Before the test starts, confirm which ZAP release your testers will use. The ZAP download page lists the current stable version and the Java 17 requirement for the Windows and Linux installers, and stable Docker images are also offered.
The ZAP API deserves particular attention because it can drive nearly every action in the desktop interface, including the active scanner and spider. It is enabled by default and returns JSON, XML or HTML, but by default it is reachable only from the machine running ZAP and it requires an API key on all API actions and some other operations. Keep it that way. Do not bind the API to a network interface on a shared test runner, and store the key in your CI secret store rather than in the plan file. Treat any ZAP instance that can reach your Zammad test environment as part of the test's attack surface.
The Automation Framework is the practical way to run repeatable scans. It reads a single YAML plan made of jobs such as spider, activeScan and report, runs with the -cmd -autorun options, and is included in the stable Docker image, so the same plan can run on a laptop, in a CI pipeline or in a container. Exit codes matter here: 0 means success, 1 means error and 2 means completed with warnings, and an exitStatus job can set the code from scan results, which lets a pipeline fail on a threshold you define. Scanner output is a starting point, not a finding list. ZAP cannot judge whether a Zammad agent should see a ticket from another group, whether a customer portal user can read another organization's tickets, or whether a token's permissions match its purpose. Those checks need manual validation with two or more test accounts. Reports can be imported into DefectDojo through its ZAP XML parser, which helps track duplicates and retests, but the triage decisions remain with your testers.
Steps to scope and prepare a Zammad penetration test
This sequence turns a vague request for a Zammad test into a written scope, a staging copy that matches production, and test accounts for each role, so the findings reflect your real configuration and the fixes can be verified before a customer security review.
Confirm the target version and release line
Record the exact Zammad version running in production, including the package, Docker image or Helm chart version, and the release line it belongs to. Check the Zammad releases page for security releases published on that line, and note any security releases on other lines that your team may need to track. The tester and your team agree on this version in writing, because a finding against an unpatched release is a different conversation from a finding against a current one. Done when the version, deployment method and patch status appear in the scope document.
Agree rules of engagement in writing
Your security lead, the tester and, where needed, your hosting provider agree on what is in scope: the customer portal, chat widget, web form and knowledge base on the internet side, plus the REST API, SSO and 2FA flows and any exposed search endpoints. Record which tests are allowed, which are not (for example, denial-of-service testing or testing against live customer email), who is the emergency contact, and how the tester reports critical findings during the test. Done when a signed scope and rules document exists and both parties have the same list of hosts and accounts.
Build a staging copy from production configuration
Restore a recent database backup and attachment storage into an isolated environment that runs the same Zammad version and the same reverse proxy, Redis and PostgreSQL versions as production. Copy the configuration, including environment variables and integration settings, but replace live mail credentials, webhook targets and external API keys with test values so the test cannot send real customer email or call production systems. Done when a side-by-side comparison of the two environments shows matching versions and settings, and the staging instance is reachable only by the test team.
Create test accounts for each role
Create separate accounts on staging for an agent, an administrator, a customer and an API integration user, and use the role-specific permissions your production setup actually grants. Give the API user a token with the scopes it would really have, and keep a record of which accounts have 2FA enabled, which use SSO and which use local passwords. Testing with these roles shows whether one role can reach another's tickets or admin functions. Done when each account can log in, the role matrix is written down, and your team has confirmed no account has more rights than a production user with the same role.
Confirm the reverse proxy and trusted proxy setup
Check the Nginx or Apache reverse proxy configuration, including TLS settings, forwarded headers and which upstream addresses Zammad trusts. Confirm that the trusted proxy setting in the environment matches the proxies and load balancers in front of Zammad on staging. Without this, client addresses seen by Zammad may be wrong, which weakens rate limiting and location-based session checks, and a tester may draw the wrong conclusions from them. Done when the tester can see the same client address behavior as production and the proxy configuration is saved with the scope.
Agree on Elasticsearch and database access
Decide whether the tester may query the Elasticsearch index directly, whether it is reachable only from the Zammad network, and which credentials are used for testing. Also agree on whether the PostgreSQL database may be reached from the test network or only through the application. Elasticsearch is optional for Zammad but strongly recommended, and its index holds ticket content and attachment text, so these access rules define what the tester can prove about index exposure. Done when the network paths, credentials and any read-only test account are listed, and the operations team has confirmed them.
Set the retest window before testing starts
Agree in advance when the tester will retest fixes, who applies the fixes on staging and production, and which findings must be closed before your customer security review date. Confirm that the retest will run against the same version and configuration, and that any patches applied during the test are recorded. Done when the retest window is written into the scope with named owners for each fix, and your team knows which findings block the review.
How the test traffic moves through Zammad
The diagram starts at the internet and at the internal staff network, and both paths enter through the reverse proxy, which is where the external test scope usually begins. Behind the proxy sits the Zammad application, which depends on PostgreSQL for ticket data, Redis for realtime websocket traffic, Elasticsearch for search, and the SSO provider for sign-in. Confirm with the client which hops are in scope, especially the search index and the identity provider, because a finding in either can expose ticket data without touching the web interface.
Test entry points, the reverse proxy boundary and the dependencies a finding can reach.
Findings that most often come up in Zammad reviews
These areas tend to surface when a security test of a self-hosted Zammad meets a customer security review. Each one maps to a hardening decision you own, so confirm the current state in your own deployment before the tester arrives. Treat the list as a starting checklist, not a complete test plan.
API token scope and expiry
Zammad's REST API can be called with personal access tokens, and integrations often hold broad tokens that outlive the people who created them. Check which permissions each token carries, whether an expiry date is set, and whether any integration still authenticates with a username and password instead of a token. Confirm that a dedicated service user, not a staff account, owns each integration token, and that a rotation procedure exists for tokens created during past projects.
Zammad security settingsPassword login alongside SSO
Many deployments add SAML or OpenID Connect sign-in but leave local password login enabled for all agents. A tester will try the local login form, and any account with a weak or reused password becomes the easy path around your identity provider and its 2FA. Confirm whether password authentication is still active for staff, which accounts still hold local passwords, and whether the password policy and lockout settings apply to them.
2FA enforcement by role
Two-factor authentication that is available but optional tends to be skipped by the accounts with the most access, such as administrators. Check whether 2FA is enforced for every agent and admin role, not only offered, and whether recovery codes are stored securely. Confirm how a locked-out admin is reset, and whether SSO logins pass through your identity provider's second factor or bypass it.
Session lifetime and active sessions
Zammad's default session length is long, and sessions left open on shared or unmanaged devices remain valid for that whole period. A tester will check how long a stolen session cookie keeps working and whether a user can end sessions they do not recognize. Confirm the session timeout for each role, review the active sessions list under System, and check whether suspicious login alerts reach someone who will act on them.
Elasticsearch reachable from outside
Zammad uses Elasticsearch for search and for indexing email attachment content, so the index often holds the full text of customer correspondence. A test will look for the index port answering from networks outside the application tier, and for any authentication gap in front of it. Confirm that the cluster sits on an isolated network, requires authentication and TLS, and that read-only reporting accounts are the only credentials shared with other tools. Treat index snapshots with the same care as the database.
External service calls
Some Zammad features contact third-party services, including avatar lookups, geographic location and map tiles, which send request data outside your environment. A reviewer will ask which of these calls leave the network and whether the data they carry is acceptable for your customer records. Confirm which external services are enabled, what each one transmits, and whether egress from the Zammad host is limited to the destinations you have approved.
What the test looks like for each team
The security lead owns the risk decision. They need to know which findings are exploitable on the internet-facing surfaces, how serious each one is, and what the fix should look like in plain terms. A findings report for this audience should rank issues by severity, explain the attack path in a few sentences, and separate confirmed issues from items that need more context. Ask the tester to state the severity method they used and to flag which findings depend on a particular configuration, such as SSO being enabled or Elasticsearch being reachable from the network.
- Executive summary: a short statement of scope, overall exposure and the findings that block a customer review.
- Ranked findings: each with severity, affected component (customer portal, chat widget, web form, knowledge base, REST API, SSO or 2FA flow, search index) and evidence.
- Fix guidance: the configuration or code change needed, written so the platform team can act on it without re-deriving the attack.
- Retest results: confirmation of which fixes were verified after the platform team made changes.
Before the engagement starts, confirm how severity is defined, who receives the report, and whether the security lead wants a separate summary for leadership.
The platform team has to turn each finding into a working change, and they can only do that if they can reproduce the issue. The most useful test plans include a staging copy of the production Zammad, with the same version, reverse proxy, SSO settings and channel configuration. Reproduction steps should name the exact request, account role and configuration state, so an engineer can confirm the issue before touching production. Ask the tester whether they will work against staging or production, and who on your side gives written approval for any active testing.
- Reproduction steps: the request sequence, test accounts used and the Zammad version under test.
- Configuration references: the settings, reverse proxy rules or network paths involved, named precisely.
- Logs and captures: relevant request and error output, with any secrets redacted.
- Staging access plan: which environment is tested, when, and how it matches production.
Confirm with the tester that scanner activity against the API and search index will be scheduled so it does not disrupt agents or email processing.
The compliance lead does not need to judge exploit details. They need evidence that the test had a defined scope, that the scope covered the systems the organization says it protects, and that identified issues were fixed and checked again. Their questions are usually who tested, what was in and out of scope, what dates the test covered, and how remediation was tracked. Those answers have to match the documents the customer or auditor will read, so the scope statement should be written with them in mind.
- Scope statement: the list of in-scope surfaces, the Zammad version, environments, test accounts and any exclusions with reasons.
- Testing record: dates, methods, tools and the people or roles who performed the work.
- Remediation tracker: each finding with its status, owner and retest outcome.
- Retest evidence: confirmation that accepted fixes were verified, with the date of verification.
The firm that issues any audit report or certification is not DeployOpen. DeployOpen prepares the scope, records and evidence, and the independent assessor decides what it proves for your program. Confirm that expectation before signing the scope.
Limits to confirm before the test starts
A Zammad penetration test is only as useful as its boundaries. The items below are the questions to settle in writing before any traffic is sent, because each one changes which components are in scope, how the test is run and what evidence comes back.
Version and deployment method
Confirm the exact Zammad version, the release line it belongs to and whether it runs from the package install, Docker Compose or the Kubernetes Helm chart. Findings depend on the version, so the tester needs to know which security releases are already applied. Ask whether the Zammad version has been checked against the releases page before the test, and whether a staging copy with the same version is available for destructive checks.
Zammad releasesHosted or self-hosted scope
If Zammad is hosted by Zammad, the provider's terms and infrastructure govern what can be tested, and the client may not control the database, search or proxy layers. If it is self-hosted, the client owns those hosts and can decide their scope. Confirm which party is the hosting provider, what it permits in writing, and who will act as the contact if a test touches shared infrastructure.
Elasticsearch and database hosts
The search index and PostgreSQL server hold ticket content, attachments and user records, so they are often the highest-value targets. Confirm whether the tester may probe their network ports, authentication and TLS settings, or whether testing stops at the Zammad application. Agree in advance how any finding that exposes ticket data will be handled and where that data may be stored during the engagement.
Third-party SSO rules of engagement
When Zammad delegates login to SAML, OpenID Connect or a provider such as Microsoft, Google, GitHub or GitLab, the identity provider is usually owned by a different team or company. Confirm whether the tester may attempt logins with test accounts, replay tokens or fuzz callback endpoints, and whether the identity provider owner must be notified. Ask for named test accounts that can be disabled after the engagement.
Zammad third-party login docsProduction data handling
Decide whether production tickets, customer records and attachments may be touched at all. Many teams allow testing only against a restored copy, with personal data masked. Confirm who can authorize tests that create, edit or delete tickets, whether test tickets must be tagged for later removal, and how any customer data a tester sees is reported and destroyed.
Pricing and timing follow the written scope
This page does not give a test duration or fee. Those depend on the items above, the number of Zammad instances, the channels in scope and the retest expectations. The quote follows from the written scope, so ask for a scope document that lists each component, each permitted test type and the named contacts before work starts.
Questions buyers ask about testing a self-hosted Zammad
What drives the cost of a penetration test on a self-hosted Zammad?
The cost follows the written scope, so the main drivers are how many internet-facing surfaces are in scope, how many roles and tenants the tester must test with, and how much of the work is authenticated. Customer portal, chat widget, web form and knowledge base testing is usually heavier than a single admin console review because each has its own input paths. SSO and 2FA flows, the REST API with its tokens, and any Elasticsearch exposure each add test cases. Ask the provider to price these as separate line items so you can drop or add one without reopening the whole quote. DeployOpen does not publish a price list; a quote follows from the agreed scope in writing.
How long does a scoped security test of Zammad take?
Duration depends on the scope, the number of accounts, how stable the staging environment is, and how many findings need validation before reporting. A test limited to the public-facing channels takes less time than one that also covers the API, SSO and the search layer. Ask the provider for the testing window, the report delivery date and the retest window as separate dates in the written plan. DeployOpen agrees timelines in writing before work starts, so you can check them against your change calendar and any customer review deadline.
What access must we provide for a Zammad penetration test?
Plan to provide a staging copy of your Zammad rather than production, because active testing can create tickets, trigger email and stress the search index. Provide test accounts for each role in scope, such as an unauthenticated customer, a customer with an organization, an agent, and an admin, plus a documented SSO test identity if SAML or OpenID Connect is in use. Share the hostnames, reverse proxy and network path, any allowlisted tester IP ranges, and the Elasticsearch endpoint if it is in scope. Confirm with your team which external services are enabled, since they affect what the tester can observe.
Can our internal team run OWASP ZAP against Zammad ourselves?
Yes, an internal team can run ZAP. ZAP is free and open source under the Apache-2.0 license, and its Automation Framework runs a YAML plan with spider and active scan jobs and can set the exit code from scan results. Use it for regular regression checks against a staging instance and feed the XML report into a tracker such as DefectDojo. Where it falls short is authenticated logic flaws, broken access control between organizations, SSO and 2FA edge cases, and chained issues that need a human to reason about the application. Scanner output also needs triage, and a scan is not a substitute for a manual test by someone experienced with Zammad.
Does a penetration test certify that our Zammad is secure?
No. A penetration test is a point-in-time sample of the risks in the scope you agreed, tested with the access you provided. It does not issue a certification, an attestation or an audit opinion. Certification and audit reports come from independent auditors or certification bodies, who may ask for penetration test evidence as one input. Ask the provider to state in the report what was in scope, what was not tested, and the dates of testing, so your compliance team can cite it accurately in a customer security review.
How are fixes verified after a Zammad penetration test?
Retesting checks each finding against the fixed version to confirm the fix works and does not open a new path. Before retesting, your team applies the fix on staging, which for Zammad usually means updating to a current release or changing configuration such as trusted proxies, token scopes or session length. Confirm in the statement of work whether retesting is included, how many rounds it covers, and whether the retest result is recorded in the same report. Zammad publishes security fixes on its releases page, sometimes for more than one line in parallel, so state which version you are testing and which version the fix lands in.
How do support tiers compare with a one-off penetration test?
They answer different questions. Zammad's self-hosted support subscriptions are named Business at 2,999 EUR per year, Enterprise at 5,999 EUR per year and Corporation at 9,999 EUR per year, with response times of 6 hours, 4 hours and 2 hours, according to Zammad's pricing page. Those subscriptions cover product support for the application, not an independent test of your deployment, your configuration or your network. A penetration test is a scoped engagement that recurs only when you schedule it. Comparing them helps budget planning, but neither replaces the other, and a support contract does not confirm that your hardening is correct.
Which Zammad findings should we fix before a customer security review?
Focus first on issues that let an outside party read or change tickets: access control gaps across customer organizations, weak or unlimited API token scope, missing 2FA for agents and admins, exposed Elasticsearch, and an outdated Zammad version with published security fixes. Next, address session length, trusted proxy configuration that affects client IP detection, and unnecessary external services that send data out. Document each fix with the date, the version and the retest result, because customers ask for evidence, not only statements. Confirm the list against the report you receive rather than against this summary.
What to fix before a customer security review
Sequence remediation by exposure, not by the order findings arrive in. Start with authentication and token issues, because a weak login path or an over-permissioned API token gives an attacker the most reach in a Zammad installation. Confirm that 2FA is enforced for agents and admins, that staff who can use SSO are moved off local passwords, that personal access tokens have limited permissions and expiry, and that password access to the REST API is turned off where integrations no longer need it. Next, address exposure of the search index and the API: confirm that the Elasticsearch endpoint is not reachable from the internet or from untrusted segments, that it requires authentication, and that index snapshots are handled like database backups. Configuration items come last. These include trusted proxy settings, which affect how rate limiting and session location work, and external service settings that send data to third parties.
Before the review, apply the current security releases on both supported lines and test them on a staging copy of your production instance. The releases page lists security fixes for the 6.5 and 7.x lines, and a fix published for one line does not automatically reach the other, so check which line you run and apply the matching release. Retest the findings from the earlier scan after patching, because a fix that changes login or token behavior can alter the results you expected. The patch process itself, including maintenance windows and staging tests, is covered in the patching topic of this group.
Keep a retest record for every finding. For each item, write down the original evidence, the Zammad version and configuration at the time, the fix applied, the person who approved it, and the result of the retest on the same scope. Accepted risks need a written owner and a date for review. Ask your testing partner whether the retest is included in the fixed scope, and confirm that the final report separates resolved, accepted and open items, so the customer's security team can trace each answer to evidence.
How DeployOpen scopes and delivers a Zammad security test
DeployOpen runs security testing as a fixed-scope engagement against the Zammad instance you run in your own infrastructure. We agree the targets, rules of engagement and deliverables in writing before any testing starts, then document findings with fixes and a retest.
How we scope
- Written scope lists each internet-facing surface: customer portal, chat widget, web form and knowledge base.
- Scope also covers the REST API, token handling, SSO and 2FA flows, and whether Elasticsearch is reachable.
- Confirm with us which environments, test accounts and admin access testers will receive, and any testing windows.
How we build
- Testers set up a staging copy of your Zammad version so that active testing never touches production tickets.
- Testing combines automated web scanning with manual checks of authorization, session handling and API permissions.
- Configuration review covers trusted proxies, external service settings, reverse proxy headers and admin audit log coverage.
How we hand over
- You receive a findings report with severity, reproduction steps, affected components and a suggested fix for each issue.
- Fixes are verified in a retest, and the report records which findings were closed and which remain open.
- Evidence is organized so your security or compliance team can use it in a customer security review questionnaire.
How we support
- Ongoing support is available as a retainer, including repeat testing after Zammad security releases or configuration changes.
- Retainers can cover patch review and staging updates so that your next test starts from the version you run.
- Ask for the retainer terms and retest scope in the written quote, so recurring work is agreed before it starts.

