Cross-site Scripting in showdoc/showdoc
ShowDoc allowed uploading .properties files that led to stored cross-site scripting (XSS) in versions before 2.10.4. An attacker could execute malicious scripts in a user's browser.
star7th/showdoc
Originally disclosed on huntr
ShowDoc is a tool greatly applicable for an IT team to share documents online. showdoc/showdoc allows .properties files to upload which lead to stored XSS in versions prior to 2.10.4. This allows attackers to execute malicious scripts in the user's browser. This issue was patched in version 2.10.4. There is currently no known workaround.
From the GitHub Advisory Database (GHSA-rphc-h572-2x9f, CC BY 4.0).
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, the application did not properly sanitise or validate the contents of uploaded .properties files, allowing script code to be stored and later rendered without encoding.
Impact
An attacker could execute malicious scripts in the user's browser, potentially leading to data theft or other client-side attacks.
What the attacker needed
Ability to upload .properties files; victim views the uploaded file
The fix
The issue was fixed in version 2.10.4; no workaround is known.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Cross-site scripting (XSS) is a security flaw where an attacker can inject harmful code into a trusted website. When another user visits the affected page, the code runs in their browser, potentially stealing data or performing actions on their behalf. Here, uploading a specially crafted .properties file allowed such code to be stored and later executed.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.