Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2024-52794-Discourse-Stored-XSS — Stored XSS in Discourse via image filename - CVE-2024-52794 | Kitploit
Tools/GitHubGitHub/beesco00/cve-2024-52794-discourse-stored-xss
Vulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration Testing
GitHubbeesco00/cve-2024-52794-discourse-stored-xss

CVE-2024-52794-Discourse-Stored-XSS

Stored XSS in Discourse via image filename - CVE-2024-52794

View Repository
301 year agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    634
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    417
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    383
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    328
  • 6

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    288

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2024-52794 – Stored Cross-Site Scripting (XSS) in Discourse

CVE Platform Bugcrowd


Summary

I discovered a stored cross-site scripting (XSS) vulnerability in Discourse, an open-source forum platform. The vulnerability allows an attacker to execute arbitrary JavaScript in the victim’s browser by injecting a malicious payload into the filename of an uploaded image. This affects several user interaction vectors, including public topics, comments, and private messages.


CVE Identifier

  • CVE: CVE-2024-52794
  • Advisory ID: GHSA-m3v4-v2rp-hfm9
  • Discovered by: Mohand00
  • Reported via: Hackerone
  • Date reported: November 18, 2024

Technical Details

When uploading an image, the filename is rendered without proper sanitization in the frontend. If the filename includes a JavaScript payload, e.g.:

<script>alert(document.domain)</script>

...it will be executed when a user clicks the image. This applies to:

  • Topics
  • Comments
  • Direct messages

The vulnerable logic failed to encode or strip script tags from img alt attributes or the surrounding markup.


Impact

  • Arbitrary JavaScript execution in victim context
  • Full session hijacking (via document.cookie)
  • Account compromise
  • Works across multiple user inputs (persistent XSS)

Affected Versions

ChannelVersions Affected
Stable≤ 3.3.2
Beta≤ 3.4.0.beta3
Tests-passed≤ 3.4.0.beta3

Patched Versions

ChannelPatched in Version
Stable≥ 3.3.3
Beta≥ 3.4.0.beta4
Tests-passed≥ 3.4.0.beta4

The issue was addressed by properly sanitizing user-supplied filenames and escaping all dynamic content in image rendering components.


Disclosure Timeline

DateEvent
Nov 18, 2024Vulnerability reported via hackerone
Dec 19, 2024CVE assigned: CVE-2024-52794
Dec 19, 2024Public advisory published by Discourse

References

  • Official Advisory – GHSA-m3v4-v2rp-hfm9
  • Discourse GitHub Repository
Download Tool