xdg-utils incorrectly parses output, causing wrong output
Bug #335643 reported by
Matthew Flaschen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Xdg-utils |
Confirmed
|
Medium
|
|||
xdg-utils (Ubuntu) |
Triaged
|
Low
|
Unassigned | ||
Bug Description
Binary package hint: xdg-utils
xdg-mime fails to safely parse output from kfile, gnomevfs-info, and file -i. This allows a carefully crafted filename to be used to output arbitrary text. An example script is provided as an attachment. It creates a single file, then runs xdg-open three times, simulating three desktop environments (KDE, GNOME, other).
The script helpfully notes that there has been a problem and suggests a possible solution... Note that xdg-mime is used directly by real applications, so this vulnerability may have unforeseen results.
I plan to provide candidate patches shortly.
summary: |
- xdg-utils incorrectly parses output, allowing arbitrary text injection + xdg-utils incorrectly parses output, causing wrong output |
Changed in xdg-utils: | |
status: | Unknown → Confirmed |
Changed in xdg-utils (Ubuntu): | |
importance: | Undecided → Low |
tags: | added: patch-forwarded-upstream |
Changed in xdg-utils: | |
importance: | Unknown → Medium |
Changed in xdg-utils: | |
importance: | Medium → Unknown |
Changed in xdg-utils: | |
importance: | Unknown → Medium |
Changed in xdg-utils (Ubuntu): | |
status: | Confirmed → Triaged |
To post a comment you must log in.
Patches is attached. This fixes the bug for all three methods and moves the exploit to the test directory.