Cloudanix VulnDB

CVE-2018-5124

Medium · 6.1

CVSS

6.1

EPSS

1.0%

Published

Apr 26, 2019

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A flaw in how some browser interfaces handle displayed content lets attackers slip in hidden code that can run when users view the page, potentially stealing information or taking over the session.

Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Low
Impact
Remote Code Execution
Component
Application
Class
XSS
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Unsanitized output in the browser UI allows HTML tags to remain, enabling cross-site scripting that can lead to arbitrary code execution within the affected browser context.

Why it matters to the business

Attackers may hijack user sessions or execute malicious actions inside the browser, potentially leading to credential theft, data exposure, or further compromise of user systems across widely deployed browser-based applications.

How an attack unfolds

An attacker supplies crafted input containing unsanitized HTML and script tags that the browser UI renders directly; when the victim interacts with the affected interface, the injected code executes with the privileges of the browser session.

How to fix it

Upgrade affected tor packages to the listed fixed versions: tor (Debian:11) to 0.2.5.12-1, tor (Debian:12) to 0.2.5.12-1, tor (Debian:13) to 0.2.5.12-1, and tor (Ubuntu:14.04:LTS) to 0.2.4.27-1build0.14.04.1. Apply vendor updates immediately and verify the installed package version matches the fixed release.

How to confirm the fix worked

Query package managers to confirm installed tor versions meet or exceed the fixed releases; review browser UI rendering paths for any remaining unsanitized output handling; test with known XSS payloads in controlled environments to verify sanitization now occurs.

Typical attack path

  1. Identify a user-facing UI component that displays unsanitized external input
  2. Craft malicious HTML containing executable script payloads
  3. Deliver the payload via network request, shared content, or user-supplied data
  4. Victim loads the affected page or interface in a vulnerable browser version
  5. Script executes in the browser context, performing actions such as stealing cookies or redirecting sessions

How to detect it

Inspect web server and browser logs for unexpected HTML tags or script execution in UI rendering paths; look for anomalous network requests or cookie access originating from rendered content; correlate with user-reported UI anomalies.

What your security team should do

  • Prioritize patching tor packages on all Debian and Ubuntu systems to the specified fixed versions
  • Monitor upstream Firefox and Tor Browser releases for related UI sanitization improvements
  • Implement content security policy headers where browser UI components accept external data
  • Review logs for unexpected script execution or HTML injection patterns post-remediation

The record

Unsanitized output in the browser UI leaves HTML tags in place and can result in arbitrary code execution in Firefox before version 58.0.1.

Affected packages

Ecosystem Package Introduced Fixed
Ubuntu:14.04:LTS firefox 0 58.0.1+build1-0ubuntu0.14.04.1
Ubuntu:16.04:LTS firefox 0 58.0.1+build1-0ubuntu0.16.04.1
Ubuntu:18.04:LTS firefox 0 59.0.1+build1-0ubuntu1

Related vulnerabilities