CVE-2018-3771 statics-server Cross-site Scripting vulnerability
An attacker can execute arbitrary scripts in the victim's browser by injecting an iframe into a filename displayed in the directory index.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2018-3771?
CVE-2018-3771 is a medium-severity cross-site scripting vulnerability in HackerOne statics-server, published on 20 Jul 2018. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
An XSS in statics-server <= 0.0.9 can be used via injected iframe in the filename when statics-server displays directory index in the browser.
Weakness: CWE-79
Which versions are affected by CVE-2018-3771?
2 open source packages ship an affected version, including statics-server. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
statics-server npm | All versions to 0.0.9 | None |
statics-server npm | All versions to 0.0.9 | None |
Products include Statics-Server Project Statics-Server.
How do I fix CVE-2018-3771?
No fix has been published for CVE-2018-3771 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2018-3771 being exploited?
There is no known exploitation of CVE-2018-3771 in the wild and no public exploit code.
Other vulnerabilities in HackerOne statics-server
Sources
Also known as GHSA-393x-fr59-r8fg.