Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2022-4556 — 📄Official disclosure of CVE-2022-4556 — Stored Cross-Site Scripting (XSS) vulnerability in SOGo Webmail v5.7.1, discovered by Ashkan Rafiee and Mostafa Abbasi. Includes full writeup and reproduction steps. | Kitploit
Tools/GitHubGitHub/ashkanrafiee/cve-2022-4556
Vulnerability AnalysisWeb Application ExploitationWeb SecurityPapers & ResearchLearning & Education
GitHubashkanrafiee/cve-2022-4556

CVE-2022-4556

📄Official disclosure of CVE-2022-4556 — Stored Cross-Site Scripting (XSS) vulnerability in SOGo Webmail v5.7.1, discovered by Ashkan Rafiee and Mostafa Abbasi. Includes full writeup and reproduction steps.

View Repository
11 year agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2022-4556 - Stored XSS in SOGo Webmail (v5.7.1)

🧠 Summary

A Stored Cross-Site Scripting (XSS) vulnerability was discovered in the fullName field of the Identity Preferences section in the SOGo web interface, affecting version 5.7.1. An authenticated attacker could inject a malicious script that would execute whenever any user (including the attacker) accessed the Mail tab.

🆔 CVE Details

  • CVE ID: CVE-2022-4556
  • CVSS v3.1: 6.1 (Medium)
  • Vector: AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Vulnerability Type: Stored XSS (OWASP WSTG-INPV-02)
  • Attack Type: Remote (authenticated)
  • Discoverers: Ashkan Rafiee, Mostafa Abbasi
  • Vendor: Alinto (SOGo)
  • Affected Product: SOGo Webmail
  • Affected Version: Confirmed in v5.7.1
  • Fixed Version: v5.8.0

💥 Proof of Concept (PoC)

✅ Steps to Reproduce

  1. Log in as an authenticated user to your running instance of SOGo (v5.7.1).
  2. Navigate to:
    root@kitploit:~
    Preferences → Mail → IMAP Accounts → Edit Identity
    
  3. In the Full Name field, input the following XSS payload:
    root@kitploit:~
    </script><svg onload=alert(1)>
    
  4. Click OK, then Save the preferences.
  5. Navigate to the Mail tab.
  6. The JavaScript payload will execute in the browser, confirming stored XSS.

🔎 Root Cause

The application fails to properly sanitize user input in the fullName field before reflecting it into HTML content, allowing stored JavaScript payloads to persist across sessions and users.


🔧 Remediation

Sanitize all user-controlled input before rendering it into the DOM. In this case, ensure the fullName field is properly escaped or filtered on both input and output.

🛠 Refer to the OWASP Cheat Sheet:


📅 Timeline

  • 2022-11-21: Initial report submitted (bug #5642)
  • 2022-11-22: Vendor acknowledged and committed a fix
  • 2022-11-30: Patch released in SOGo v5.8.0
  • 2025: CVE published by MITRE and assigned CVE-2022-4556

🔗 References

  • Bug Report #5642 (authentication required)
  • Vendor Patch (v5.8.0)
  • Patch Commits and others
  • OWASP XSS Testing Guide

👤 Authors

Ashkan Rafiee LinkedIn GitHub

Mostafa Abbasi LinkedIn GitHub


🪪 License

This writeup and documentation are licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0).

Download Tool