CVE-2021-38751: ExponentCMS <= 2.6 - Host Header Injection
- Template: CVE-2021-38751
- Name: ExponentCMS <= 2.6 - Host Header Injection
- Description: An HTTP Host header attack exists in ExponentCMS 2.6 and below in /exponent_constants.php. A modified HTTP header can change links on the webpage to an arbitrary value,leading to a possible attack vector for MITM.
- Impact: An attacker can manipulate the Host header to perform various attacks, including phishing, session hijacking, and cache poisoning.
- Remediation: Upgrade ExponentCMS to a version higher than 2.6 or apply the provided patch to fix the Host Header Injection vulnerability.
- Severity: medium
- Authors: dwisiswant0
- Tags: cve2021, cve, exponentcms, vuln
- References: https://nvd.nist.gov/vuln/detail/CVE-2021-38751, https://github.com/exponentcms/exponent-cms/issues/1544, https://github.com/exponentcms/exponent-cms/blob/a9fa9358c5e8dc2ce7ad61d7d5bea38505b8515c/exponent_constants.php#L56-L64, https://github.com/ARPSyndicate/kenzer-templates, https://github.com/ARPSyndicate/cvemon
- Cves: CVE-2021-38751
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2021/CVE-2021-38751.yaml
- Digest: 4a0a00473045022032bb1c7a3326099c6ef773c604e6852ecb182f7da80ea72519a50736f88a60e5022100ea1d4f1740867d5dd815eda4ffda4b3e097f8ef566bf3684503876e889debc30
- Created at: 2021-08-19T14:39:48Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 1923
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-38751.yaml
- Checked, none or zero: verified
Classification
- Cwe: CWE-116
- Cvss score: 4.3
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
- Epss score: 0.02468
- Epss percentile: 0.84902
- Cpe: cpe:2.3:a:exponentcms:exponentcms:*:*:*:*:*:*:*:*
Metadata
- Max-request: 1
- Product: exponentcms
- Vendor: exponentcms
Products
| Product | Indexed | Url |
|---|---|---|
| exponentcms:exponentcms | yes | /v1/products/exponentcms/exponentcms |
Labels
- Name: ExponentCMS - Host Header Injection
- Impact: Attackers can manipulate webpage links, potentially leading to man-in-the-middle attacks or phishing.
- Remediation: Update to the latest version of ExponentCMS or apply security patches addressing header validation.
- Vulnerability type: host_header_injection
- Vulnerability impact: man_in_the_middle
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2021-38751
- Not known: requirements
```yaml
id: CVE-2021-38751
info:
name: ExponentCMS <= 2.6 - Host Header Injection
author: dwisiswant0
severity: medium
description: An HTTP Host header attack exists in ExponentCMS 2.6 and below in /exponent_constants.php. A modified HTTP header can change links on the webpage to an arbitrary value,leading to a possible attack vector for MITM.
impact: |
An attacker can manipulate the Host header to perform various attacks, including phishing, session hijacking, and cache poisoning.
remediation: |
Upgrade ExponentCMS to a version higher than 2.6 or apply the provided patch to fix the Host Header Injection vulnerability.
reference:
- https://nvd.nist.gov/vuln/detail/CVE-2021-38751
- https://github.com/exponentcms/exponent-cms/issues/1544
- https://github.com/ARPSyndicate/kenzer-templates
- https://github.com/ARPSyndicate/cvemon
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
cvss-score: 4.3
cve-id: CVE-2021-38751
cwe-id: CWE-116
epss-score: 0.02468
epss-percentile: 0.84902
cpe: cpe:2.3:a:exponentcms:exponentcms:*:*:*:*:*:*:*:*
metadata:
max-request: 1
vendor: exponentcms
product: exponentcms
tags: cve2021,cve,exponentcms,vuln
http:
- method: GET
path:
- "{{BaseURL}}"
headers:
Host: '{{randstr}}.tld'
matchers-condition: and
matchers:
- type: word
part: body
words:
- '{{randstr}}.tld'
- 'EXPONENT.PATH'
- 'EXPONENT.URL'
condition: and
- type: status
status:
- 200
digest: 4a0a00473045022032bb1c7a3326099c6ef773c604e6852ecb182f7da80ea72519a50736f88a60e5022100ea1d4f1740867d5dd815eda4ffda4b3e097f8ef566bf3684503876e889debc30:922c64590222798bb761d5b6d8e72950
```