Skip to content
XSS Disclosed report Intermediate CVE-2022-0960

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

Critical View original

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).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

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.

More from star7th/showdoc

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.