Skip to content
XSS Write-up Intermediate

Exploiting an old noVNC XSS (CVE-2017-18635) in OpenStack

noVNC contained a DOM-based cross-site scripting flaw where a malicious VNC server could inject JavaScript into the web page. Because OpenStack bundles noVNC and its patching system does not update third-party software, fully patched OpenStack installations may still be vulnerable.

shielder.com

Published on shielder.com

Last week I was testing an OpenStack infrastructure during a Penetration Test. OpenStack is a free and open-source software platform for cloud computing, where you can manage and deploy virtual servers and other resources.

The author, on shielder.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the noVNC client trusted data coming from the VNC server and inserted it into the page without proper sanitisation, and OpenStack's packaging kept the old vulnerable copy.

Impact

An attacker controlling a VNC server could run JavaScript in the context of the noVNC page, and fully-updated OpenStack installations may still be vulnerable.

What the attacker needed

Attacker controls a VNC server; victim connects to it via noVNC

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 write-up has not been written yet. The Original tab links to the source.

noVNC is a tool that lets you view a remote computer's screen inside a web browser. A cross-site scripting (XSS) bug lets an attacker sneak their own JavaScript code into a page so it runs as if the site wrote it. Here, a malicious remote screen server could push code into the viewer page, and because OpenStack ships its own copy of noVNC that its update system does not refresh, even up-to-date installs could stay exposed.

What is XSS?

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

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.