Skip to content

Potential Host Header Poisoning on misconfigured servers

Low severity GitHub Reviewed Published Mar 10, 2021 in octobercms/october • Updated Feb 1, 2023

Package

composer october/backend (Composer)

Affected versions

< 1.1.2

Patched versions

1.1.2

Description

Impact

When running on servers that are configured to accept a wildcard as a hostname (i.e. the server routes any request, regardless of the HOST header to an October CMS instance) the potential exists for Host Header Poisoning attacks to succeed. See the following resources for more information on Host Header Poisoning:

Patches

A feature has been added in v1.1.2 to allow a set of trusted hosts to be specified in the application.

Workarounds

Alternative Workaround

Check to make sure that your web server does not accept any hostname when serving your web application.

  1. Add an entry called testing.tld to your computer's host file and direct it to your server's IP address
  2. Open the address testing.tld in your web browser
  3. Make sure an October CMS website is not available at this address

If an October CMS website is returned, configure your webserver to only allow known hostnames. If you require assistance with this, please contact your server administrator.

References

Reported by Abdullah Hussam

For More Information

If you have any questions or comments about this advisory:

Threat Assessment

Screen Shot 2021-01-15 at 4 12 57 PM

### References - https://github.com/octobercms/october/security/advisories/GHSA-xhfx-hgmf-v6vp - https://packagist.org/packages/october/backend - https://nvd.nist.gov/vuln/detail/CVE-2021-21265 - https://github.com/octobercms/library/commit/f86fcbcd066d6f8b939e8fe897409d152b11c3c6 - https://github.com/octobercms/october/commit/f638d3f78cfe91d7f6658820f9d5e424306a3db0
@daftspunk daftspunk published to octobercms/october Mar 10, 2021
Reviewed Mar 10, 2021
Published to the GitHub Advisory Database Mar 10, 2021
Published by the National Vulnerability Database Mar 10, 2021
Last updated Feb 1, 2023

Severity

Low

Weaknesses

CVE ID

CVE-2021-21265

GHSA ID

GHSA-xhfx-hgmf-v6vp

Source code

No known source code
Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.