Penetration testing an Odoo deployment

A pen test of self-hosted Odoo is only as useful as its scope. This page explains which surfaces to include, what to prepare, and how fixes get retested.

On this page

Why penetration testing an Odoo deployment needs a defined scope

A self-hosted Odoo instance is safe to expose only after it has been tested against the parts of the platform that face the internet, and a penetration test is only useful if its scope names those parts in advance. Odoo is an open source suite of business applications built on Python and PostgreSQL. The Community edition is licensed under LGPL-3.0, while the Enterprise edition adds features and support and its source code is not publicly available. That split matters for scoping, because the features you run, and the support window you can rely on for security fixes, depend on which edition and version you chose. A test that ignores either will miss the code paths you actually operate.

The attack surface of a typical deployment is wider than the login page. It spans the web client, the public website and customer or vendor portal, the JSON-2 API, the database manager screens, your custom modules and Apps Store or OCA add-ons, and the application server and reverse proxy in front of it. Each of these has its own authentication path and its own failure modes. A tester who receives only a URL will probably spend the engagement on the most visible surface and leave the database manager or a custom controller untested. Write the scope as a list of components, each with its hostnames, versions, roles and the accounts a tester may use.

Teams usually need a test at a few predictable points: before go-live, before the instance is reachable from the internet, after major changes such as a version upgrade, new public pages or a new integration, and when a customer or auditor asks for evidence of testing. A test produces findings and retests, not a certification, so it should be presented as one input to your own compliance evidence rather than as proof of compliance. Before you request quotes, confirm with your team which environment will be tested, whether a staging copy with neutralized data is available, and who will be on call if a test disrupts service.

Which Odoo surfaces a penetration test should cover

An Odoo deployment exposes several entry points that reach the same database, so a test that covers only the login page misses most of the risk. Each surface below has its own checks and its own scope decision, and the client should settle them in writing before the tester starts.

Web client and sessions

The back office at /web is where staff spend their working day, so testers check authentication, session handling, password reset flows, and whether record access is enforced in every view. They typically test access rights and record rules by logging in as users in different groups and comparing what each can read and change. Decide which user roles and companies are in scope, and whether the test uses a staging copy with test accounts. Ask the provider to test two-factor authentication where you have enabled it.

Website and portal

Public website pages and the customer and vendor portal accept input from people outside your organization, so they carry the most exposure. Testers look at form handling, signed links for quotes and orders, portal access granted from contacts, and what portal users can see of other customers' records. Decide whether eCommerce checkout, signup and password reset are included, and whether the portal test uses real contact records or generated ones.

JSON-2 API and API keys

Integrations and automations reach Odoo through its API, and each API key acts with the permissions of the user it belongs to. Testers check how keys are issued, scoped and revoked, whether requests are authorized at the model level, and whether errors leak internal detail. Decide which integration accounts are in scope, whether the test covers webhooks and automation rules, and who owns key rotation after the report is delivered.

Database manager at /web/database

The database manager lets anyone who knows the master password create, drop, back up or restore databases, so its exposure is a high-impact item. Testers confirm whether the screens are reachable from the internet, whether the database list is visible, and how the master password is stored and protected. Decide whether the test checks the proxy rules that block these paths, and confirm the expected result is that the screens are disabled in production.

Custom and third-party modules

Custom modules and Apps Store or community modules run with the same privileges as core code, so a weak controller or an unsafe query can bypass the access model you configured. Testers review public controllers, use of elevated privileges, raw SQL, unescaped output and the access and record rule files. Decide which modules are in scope, whether the provider receives source code, and whether a version of each module is available for testing on a staging copy.

Server, reverse proxy and PostgreSQL

The Odoo server, the reverse proxy in front of it and the PostgreSQL database form the infrastructure layer, and misconfiguration here often exposes services that should be private. Testers scan open ports, check TLS settings and headers, confirm that the database is not reachable from outside the application network, and review proxy limits. Decide whether host and network testing is included or handled by a separate infrastructure assessment, and confirm which hosts, IP ranges and testing windows are approved.

How scope changes for on-premise, Docker and Odoo.sh hosting

On a self-hosted Linux install, the client owns the whole stack: the operating system, the Odoo service, the PostgreSQL server, the reverse proxy and the firewall. That gives the tester the widest scope, including server configuration, the database listener, SSH exposure and the proxy rules that sit in front of the web client. Because the client controls every layer, most of the preparation falls on the client's own team. Odoo's on-premise documentation covers packaged installers and source installation, and Enterprise databases are activated with a subscription code, so the scope should state which install method and edition are in use.

  • Host and service access: Agree whether the tester gets a staging copy only, a production read-only view, or testing against live services.
  • Proxy and firewall rules: Confirm which ports are exposed, whether /web/database is blocked at the proxy, and which source addresses may send traffic.
  • PostgreSQL listener: Decide whether the database port is reachable from outside the application host and whether that reachability is in scope.
  • Credential material: Plan how test accounts, the master password handling and any SSH access will be issued and revoked.
  • Change control: Name the people who can pause the test, and the window in which scans may run.

Confirm with your platform team exactly which of these layers are in scope before the statement of work is signed.",

Test types and scope options and when each fits

This table compares the main test scopes for an Odoo deployment, from an external view of the public surface to a review of custom modules and server configuration. Read each row for what it finds, when it earns its place, and what your team must prepare before testing starts.

Scope optionWhat it coversWhen it fitsWhat the client must provide
External black-box testPublic website, portal login pages, exposed /web paths, database manager reachability, TLS and proxy behavior, and the JSON-2 API endpoints reachable from the internetInternet-facing Odoo where the question is what an outside attacker can reach without an accountAgreed target hostnames, written authorization, a list of any IP ranges or hosts that are out of scope, and a named contact for emergencies
Authenticated grey-box testEverything in the black-box scope plus the web client, record access, group and record rule enforcement, and portal behavior, using test accountsMost rollouts, because many flaws only appear once a user is logged in, such as access checks on records or menu actionsTest accounts for each relevant group (internal user, administrator, portal user), a non-production or staging copy, and a description of intended access rights
Custom module code reviewControllers, models, sudo calls, raw SQL, access files, record rules and any public routes in in-house or third-party modulesCustom or Apps Store modules are installed, especially those that expose routes or handle payments, personal data or integrationsSource code repositories with the exact versions deployed, the list of installed modules, and the maintainer or developer contact for questions
Server and proxy configuration reviewOdoo configuration file settings, database manager exposure, PostgreSQL role and network access, reverse proxy headers and limits, TLS settings, and host firewall rulesAny self-hosted install, and especially where the proxy or database settings were changed from defaults or built by a separate teamRead access or exported configuration for the Odoo server, proxy and database host, plus network diagrams and access to change records if the test is run in production
Staging-based active testingFull active testing against a copy of production with neutralized data, which allows intrusive checks that would be unsafe on live recordsWhen production data is sensitive or the business cannot accept test transactions or lockouts on live systemsA staging copy restored from production with personal and financial data removed or masked, and a scheduled test window agreed with operations
Retest of fixesVerification that each finding is closed in the deployed version, with evidence for the remediation recordAfter fixes are applied, including patches to Odoo, module changes and proxy or configuration updatesThe remediation status for each finding, the deployed version and patch level, and access to the same test accounts and environments used originally

How to prepare and run an Odoo penetration test

This sequence turns a vague request for an Odoo pen test into a written scope, a staging environment with known accounts and a documented retest, so findings are reproducible and fixes are proven before go-live or the next release.

  1. Define scope and rules of engagement in writing

    Agree in writing which surfaces are in scope: the web client, the website and customer portal, the JSON-2 API, the database manager paths, custom and third-party modules, and the application server and reverse proxy. Record what is out of scope, which attack techniques are allowed, who may be contacted if something breaks, and how critical findings are reported during the test. The check is a signed scope document that both the client's security owner and the testing team have approved before any traffic is sent.

  2. Inventory versions, modules and exposure

    Confirm the running Odoo version and the edition, then check it against Odoo's standard support window in the support documentation, since security patches are only provided during standard support. List installed Apps Store, OCA and custom modules with their versions, the reverse proxy and PostgreSQL versions, and every public hostname. The check is a written inventory the tester can reconcile against the live system, with any end-of-support or unpatched component flagged for the client to decide on before testing.

  3. Prepare test accounts at each role level

    Create test users for each role that matters to the business: anonymous visitor, portal customer, portal vendor, internal user in each app group, an administrator, and a user limited to one company or record scope if multi-company rules apply. Record each account's groups and record rule boundaries so the tester can confirm access is enforced in both directions. The check is an account matrix the client has reviewed, showing that every account exists, is labeled as test-only, and has no production data or real customer credentials attached.

  4. Build a neutralized staging copy

    Create the staging environment from a duplicate of the production database that has been neutralized, so outgoing email, scheduled actions, payment and integration connectors are disabled and cannot reach real parties. Match the production version, module set and proxy configuration as closely as possible, because a test against a different stack will not show the same exposure. The check is a staging instance where the operator confirms that mail and external calls are blocked and that the version and module list match the inventory.

  5. Agree testing windows and monitoring

    Set the dates and hours when active testing may run, the source addresses the testers will use, and the rate limits the client expects, so that the tests are not mistaken for a real attack and the security operations team knows what to expect in logs. Agree how the client will monitor the server, PostgreSQL and the proxy during testing and who can stop the test. The check is a written schedule and an alert plan that the operations and security teams have both acknowledged.

  6. Run the test against the agreed scope

    The testing team works through the agreed scope, covering authentication and session handling, the database manager, access control between roles, record rules, API authorization, input handling in custom modules, and server and proxy configuration. Critical issues found during the test are reported to the client's named contact immediately rather than held for the final report. The check is a dated test log that maps each attempted test to the scope item and records the account used, so every result can be reproduced.

  7. Triage findings and apply fixes

    Each finding is rated by the tester, confirmed by the client's engineers on staging, and assigned an owner and a fix. Fixes may touch configuration, the proxy, custom module code or Odoo itself through a supported patch path. Where a fix requires a version change, the team checks the upgrade route before applying it. The check is a findings register in which every item has a status, an owner, the change that addresses it and a note on any accepted residual risk signed by the client.

  8. Retest fixes and close the report

    The testing team reruns the exact steps that produced each finding against the fixed staging system and records whether the issue is resolved, partly resolved or still present. Any change to the fix that is applied to production is then verified on the production configuration in a controlled check. The check is a final report with the retest results for every finding, the test accounts removed or disabled, and a confirmation that the staging copy holds no data that could be mistaken for production.

What the client prepares before testers arrive

The client's preparation decides how much of the test budget goes to finding issues rather than rediscovering the environment. Before testers arrive, the client should hand over an architecture diagram showing where the Odoo application server, the PostgreSQL database, the reverse proxy, any load balancer and the file storage sit, plus which network paths are reachable from the internet, from partner networks and from internal staff. Alongside it, provide the proxy and firewall configuration as files or exports, including the rules that limit /web/database and any long-polling or websocket routes. Testers also need the exact Odoo version and the list of installed custom and OCA modules with their versions, because a pen test of stock code with an unknown custom module leaves the riskiest code untested. Confirm with your own engineers which modules are Enterprise, which are Community, and where each one's source lives.

Access testing depends on a role matrix and test accounts. Provide a matrix that maps each group to its duties, the apps it can open and the record rules that apply, then create test accounts for each group, one or more portal users, and at least one account with a multi-company or restricted-warehouse scope if your database uses them. Testers should not receive production credentials, and every account should carry a documented owner so access can be revoked at the end of the engagement. Agree in writing on the staging environment: the Odoo version, the database size, the network position and the monitoring that will show test traffic. Testing against production data is risky because exploit payloads, bulk exports, password reset emails and webhooks can affect real customers and real records. Odoo's on-premise documentation describes database duplication with neutralization for creating test copies, which lets your team build a staging database from production without carrying live outbound integrations forward. Confirm with your own administrators what neutralization disables in your version and what they must still reconfigure manually.

Risks to agree on before a test starts

A penetration test against a live Odoo database can disrupt the business it is meant to protect. The risks below run in parallel, so the rules of engagement should name each one, the owner who accepts it, and the control that limits it before any tool is pointed at the system.

Service disruption from load or scanning

Automated scanners and fuzzing tools can send enough requests to slow the web client, tie up Odoo worker processes or fill the database connection pool. The risk is highest on the JSON-2 API and the website, which both accept traffic from the internet. Agree on a request rate ceiling, the test windows, and a named person who can stop testing immediately. Confirm the test runs against staging or a restored copy where possible, and that the tester knows the process limits set on your Odoo server.

Accidental data exposure in test records

Testers create records, upload files and read other users' data while proving access control gaps. Those records can reach customers, vendors or accounting exports if they are left in production. Agree on which test accounts the tester may use, a naming convention for every record created, and whether the tester may view personal or payment data. Require that any sensitive data the tester sees is reported by location, not copied out, and that all test artifacts are removed or reviewed before the report closes.

Lockouts from aggressive login testing

Password spraying and credential stuffing checks can trigger Odoo's own login protections or a fail2ban jail on your proxy, locking out real employees and partners. The test may also expose how quickly those protections respond, which is a finding in itself. Agree on the number of attempts per account, the accounts in scope, and who can unlock users during the test. Confirm with the owner of the login cooldown, CAPTCHA and fail2ban settings which of them should stay on during testing and which may be paused for a defined window.

Effects on scheduled actions and email

Testing workflows can start scheduled actions, send notification emails, post invoices or trigger automation rules that run outside the tester's view. Outbound mail may reach real customers or vendors, and a bulk action can flood a mail queue. Agree on whether outgoing email is disabled or redirected to a sink, which scheduled actions are paused, and which automated rules are excluded. Ask the tester to list every action that changes state so the operations team can reverse it afterwards.

How findings move from test to verified fix

The loop starts once scope is agreed in writing and a staging copy of the Odoo deployment is prepared, ideally a neutralized database copy so no live customer data leaves production. Testers run the agreed scope against that copy and report findings with reproduction steps. The client applies fixes to the deployment, including custom and third-party modules, and the patched build is retested. Check that each finding has a closed or reopened status before the report is signed off.

Finding lifecycle from agreed scope through retest to closure or reopening.

How fixes get retested and what the retest proves

What does a retest cover after a penetration test on Odoo?

A retest checks only the findings that were marked as fixed, plus any directly related paths the fix could have changed. It is scoped in writing before the work starts, so the list of findings, the environment and the people who will confirm each fix are all named. Expect the retest scope to follow the original report item by item, with each finding closed as fixed, partially fixed, not fixed or accepted as risk by the client. New areas found during the retest are usually recorded as new findings and scoped separately, so the retest does not quietly grow into a second test.

Should a fix be retested on the same environment as the original test?

Yes, the retest should run on an environment of the same class as the one tested, with the same Odoo version, proxy configuration, database manager settings and module set. A fix that works on a developer laptop with debug mode on may not behave the same behind a production reverse proxy. Confirm with your team that the retest target matches the production configuration, including the dbfilter and list_db settings and the proxy rules that block /web/database. Keep the test data realistic but not production data, and record the exact version and commit of the build so the result can be reproduced.

How are fixes to custom or OCA modules retested?

Custom and OCA module fixes need the same retest as core fixes, and they often need more. The retest should confirm that the changed controller, access file or record rule now enforces the intended rule for each affected group, not only that the single request in the report fails. Ask the developer for the change set and the module version, and check whether the same pattern exists in other modules your team maintains. Fixes to third-party modules may depend on an upstream release, so record whether the fix is in your repository, a vendor patch or a pending upstream change.

Do Odoo patches need a regression check after the security retest?

Yes. When Odoo or a module is patched after a test, the retest results can change, so run a regression pass over the critical paths: login, two-factor authentication, the portal, the JSON-2 API and the record rules that protect sensitive records. Odoo's security updates are provided during standard support, and the support window for each version is set in the standard and extended support documentation, so check the version you run before planning the regression cycle. Apply patches on staging first, rerun the affected test cases, and keep the before and after results together. For the patching process itself, see the Odoo patching guidance on this site.

How long does an Odoo penetration test retest take?

The duration depends on the number of fixed findings, how many fixes touch shared code paths, and how much setup the retest environment needs. A short list of configuration fixes on a single version is quicker than a set of access-control fixes spread across custom modules, because the second needs more role and record checks per group. Ask for the retest effort in the written scope, with the number of findings to be retested, the environments involved and the people who will confirm each fix. No duration is given here because the scope determines it.

What does a retest not prove about the Odoo deployment?

A retest proves that the specific findings you asked to have checked were fixed in the tested environment at the time of testing. It does not prove the system is free of other weaknesses, that the fix survives future upgrades or new modules, or that production matches the tested build. It also does not replace continuous testing or an audit. Independent auditors and certification bodies issue audit reports and certifications, and DeployOpen prepares systems and evidence for them but does not issue those reports.

Who should sign off that a finding is closed after a retest?

The client should own the closure decision, with the tester confirming the technical result. Record each finding with its status, the evidence captured during the retest, the build or commit tested and the name of the person who accepted the result. Findings accepted as risk should have a named owner, a reason and a review date set by your own governance process. Keep the closed report with your change records, so auditors and your own security team can trace each fix to the test that confirmed it.

Limits of a penetration test and what to confirm

A penetration test gives a dated view of one agreed scope, and several limits shape what that view can prove. The cards below cover the limits that matter most for Odoo, with the questions to settle with the tester, Odoo, your hosting provider and your module vendors before testing starts.

A test is a point-in-time sample

A tester reports what they found during the testing window, against the code and configuration they had at that moment. Any change after that, including an Odoo bugfix update, a new custom module or a changed proxy rule, can introduce exposure the report does not cover. Ask the tester to state the exact tested version, the test dates and the commit or build identifier. Plan a retest after fixes and a repeat test after significant changes, and agree in writing what happens to findings raised after the report is issued.

No audit report or certification

A penetration test is evidence for your security review, not an audit report, attestation or certification. Independent auditors and certification bodies decide whether your controls meet a framework, and they may ask for test reports as one input. Confirm with your auditor which report format they accept, whether they need the tester's methodology and the retest evidence, and whether the tester's scope must match the systems in your assessment boundary.

Enterprise code is not public

The Enterprise source code is not publicly available and requires a subscription or partner access. A tester without access can test the running application as a black box but cannot review Enterprise code paths line by line. Confirm with the tester which Enterprise source, if any, they will review, how they obtain it under your subscription, and which findings in Enterprise features will be verified only by behavior. Confirm with Odoo how advisories for your version reach you.

Odoo GitHub repository

Third-party modules need code access

Custom modules, Apps Store modules and OCA modules carry their own access rules, sudo calls, controllers and raw SQL. A tester cannot judge them from the outside, so the scope needs the exact module list, versions and source repositories. Confirm who supplies the code, whether it is installed from a private Git repository, and whether the module vendor allows the tester to review and report on it. Modules that the vendor no longer maintains should be listed as a known risk.

Hosting provider rules for Odoo.sh and cloud

Odoo.sh is run by Odoo, and cloud or data center hosts set their own rules for security testing, including permitted traffic, load limits, testing windows and notice periods. Confirm with Odoo whether your hosting plan allows testing of the infrastructure layer and what notice it requires. For your own cloud accounts, confirm with the provider which services may be tested, which are excluded, and whether your tester needs a written authorization letter or prior approval for scanning and denial-of-service style checks.

Scope owners and their approvals

Each limit has an owner who must agree to it in writing: the tester for methods and evidence, Odoo or your host for platform terms, module vendors for code access, and your own team for production impact. Name a single contact on each side, agree a test window, and set how the tester reports urgent critical findings before the final report. A clear owner for each approval prevents a test from stopping partway through or touching systems no one authorized.

What a penetration test of Odoo costs and what it needs from us

What drives the cost of an Odoo penetration test?

The main driver is how much attack surface the scope covers and how much of it has to be understood before testing can start. A test of the web client, the website and portal, the JSON-2 API, the database manager, custom modules and the server and reverse proxy is a larger job than a test of one application. Cost usually rises with the number of custom modules to read, the number of environments in scope, the number of user roles that must be tested while logged in, and the number of retest rounds. Ask any provider for a quote that lists each of these items separately, with the testing approach (black box, grey box or white box) stated for each one, so you can see what you are paying for and what you could reduce.

How do custom modules and user roles change the effort?

Each custom module adds code that must be reviewed and exercised, so the effort grows with module count and size. Checking raw SQL, sudo calls, public controllers, access files and record rules is slower than probing standard screens. Authenticated roles multiply the work: an internal user, a portal user, a website visitor and an administrator each see different records and menus, and access control flaws often appear only when one role reaches another role's data. Confirm with the provider which roles will be provided and whether test accounts with realistic data are part of the scope.

Can our own team run a penetration test on Odoo?

Yes, a internal team can test an Odoo deployment, and many teams do some checks themselves, such as reviewing the database manager exposure, login protections and the proxy configuration. Independent testing adds value because the testers did not build the system and will not overlook its assumptions. Whoever tests should have written authorization, a defined scope, a safe staging copy and a plan for handling any data they touch. Internal results are still useful as evidence of effort, but external customers and auditors often ask for testing by a party that is independent of the team that built and runs the system, so confirm that requirement early.

How long does preparation take before testing starts?

Preparation length depends on how ready the environment and documentation are. A team that already has a staging copy that matches production, a current module list, documented roles and known exposure points can start quickly. A team that must still build staging, collect module source, confirm which Odoo version and edition run, and agree on the proxy and network layout will spend more time before any testing begins. No duration is given here. Ask the provider to state what they need from you and to list the readiness items that would move the start date.

What must our team provide for a penetration test?

The provider needs enough information to test without guessing. Typical items include a written scope and rules of engagement, a staging environment that mirrors production as closely as possible, test accounts for each role, the Odoo version and whether it is Community or Enterprise, the list of installed and custom modules with their source, the reverse proxy and server configuration, and the list of public hostnames. Include the database manager settings, the dbfilter value and whether the /web/database path is reachable. Agree in writing who to contact during testing, how critical findings are reported and which production systems are excluded.

What does the test deliver, and how are fixes retested?

A penetration test should produce a report that lists each finding with its affected component, reproduction steps, severity, business impact and a recommended fix. Ask for a retest of each fix, performed on the same staging environment after your team applies the change, so the fix is verified rather than assumed. Confirm whether retests are included in the quote or priced separately, how many rounds are covered and what happens to findings that you accept as risk. Keep the retest result with the original report as the record of closure.

Does a penetration test give us a compliance certificate?

No. A penetration test is evidence about the security of one deployment at one point in time, and it does not issue an audit report, attestation or certification. Compliance certifications and attestations are issued by independent auditors and certification bodies. A test report can be one input to a compliance assessment, and the auditor decides what it supports. DeployOpen performs security testing and prepares systems and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications.

How DeployOpen scopes and retests Odoo security work

DeployOpen runs security testing of applications, APIs and infrastructure, and most engagements are fixed-scope, with the scope, deliverables and timelines agreed in writing before any testing starts. For an Odoo deployment, that written scope should name each surface in play: the web client, the website and portal, the JSON-2 API, the database manager if it is reachable, the custom and third-party modules, and the server and reverse proxy. It should also name the accounts that testers will use, which environment they will test against, and what happens if a finding is serious enough to stop work. A scope that lists only the login page will produce a report that says little about the deployment.

The retest is part of the engagement, not an optional extra. Once the client applies fixes, the same findings are checked again on the same environment, so the report can show which issues are closed and which remain open. Confirm before signing whether the retest is included in the fixed scope, how many retest rounds it covers, and whether it runs on a staging copy or on production. Also confirm that the Odoo version under test is one that still receives security updates, because a finding fixed on an unsupported version will tend to return at the next patch cycle.

DeployOpen also deploys and hardens self-hosted platforms inside the client's own infrastructure, so fixes can be made by the same team that understands the setup, or handed to the client's own staff with clear instructions. Do not expect a price list. A quote follows from the written scope, so the useful preparation is a clear list of Odoo databases, modules, hosts and proxies in scope, plus the environment access the testers will need. Ask the provider to show how each quoted item maps to a surface in that list. DeployOpen does not issue audit reports or certifications, so if your assessor needs evidence for a compliance review, confirm with them in advance what form of report they will accept.

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.