Advisory

RUSTSEC-2020-0030

Also known as: CVE-2020-35883, GHSA-4vhw-4rw7-jfpv

Summary

Missing sanitization in mozwire allows local file overwrite of files ending in .conf

Details

The client software downloaded a list of servers from mozilla's servers and created local files named
after the hostname field in the json document.

No verification of the content of the string was made, and it could therefore have included '../' leading to path traversal.

This allows an attacker in control of mozilla's servers to overwrite/create local files named .conf.

The flaw was corrected by sanitizing the hostname field.

Severity

Critical Basis: CVSS v3 score 9.1, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Dates

Published
2020-08-18 12:00 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

mozwire

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.4.2-0 (semver)

Fixed versions

0.4.2-0

Fix

  • Fixed version 0.4.2-0
    cargo update -p mozwire --precise 0.4.2-0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences