# Bug OP-8887 - Public-facing docker AIO container vulnerable to HOST header injection by default

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-8887

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 11.3.3 |
| Observed in versions |  |
| Sprint | 11.3.3 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

When an OpenProject docker-based installation is public facing without a proxying web server or load balancer (which we recommend against in our documentation), the installation is vulnerable to HOST header injections.

To mitigiate this issue:

*   Use a public facing web server and proxy to the docker container. This is recommended for all production environments
*   Explicitly set the `SERVER_NAME` ENV variable as specified in the [installation guide](https://www.openproject.org/docs/installation-and-operations/installation/docker/#using-this-container-in-production).

**Credits**

This issue was reported responsibly by RedHunt Labs, [https://redhuntlabs.com/](https://redhuntlabs.com/)

If you have a security vulnerability you would like to disclose, please see our [statement on security](https://www.openproject.org/docs/development/security/).

  

**Resources:**

*   [https://portswigger.net/web-security/host-header](https://portswigger.net/web-security/host-header)
*   [OWASP reference](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/07-Input_Validation_Testing/17-Testing_for_Host_Header_Injection)
*   [Installation reference with explicit SERVER\_NAME set](https://www.openproject.org/docs/installation-and-operations/installation/docker/#using-this-container-in-production)
