Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 526090 - <media-gfx/freecad-0.15.4671: potential remote code execution when opening DXF files
Summary: <media-gfx/freecad-0.15.4671: potential remote code execution when opening DX...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: Gentoo Security
URL: https://bugzilla.redhat.com/show_bug....
Whiteboard: ~2 [noglsa]
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-20 14:53 UTC by Agostino Sarubbo
Modified: 2016-03-23 06:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2014-10-20 14:53:09 UTC
From ${URL} :

It was reported [1] that FreeCAD downloads and executes code (e.g. ArchCommands.py) from the
network, from https. This uses urllib2, which does not check https 
certificates. The files that are downloaded occur when attempting to 
activate non-present module features, such as via opening a DXF file.
This can allow Man-in-the-Middle attack, leading to code execution.

Upstream patch is at [2].

[1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=764814
[2]: https://github.com/FreeCAD/FreeCAD_sf_master/commit/bd1bbff874f5e5a86f4308aa2f840cbd64a77b77


@maintainer(s): since the package or the affected version has never been marked as stable, we don't need to stabilize it. After the bump, please remove the affected versions from the tree.
Comment 1 genbug 2015-04-29 09:09:43 UTC
Despite the fact that it's not even checking the cert. , shouldn't this package be hard-masked for plain stupidity?

Runtime downloading and execution of code behind the user's back is really not acceptable. 

If I wanted that sort of thing I'd be running MS operating systems.
Comment 2 Konstantin Münning 2015-11-05 21:29:17 UTC
I'm not sure about the version this bug depends on but with default options current FreeCAD (0.15.4671) is asking for permission to download the missing filter. Only if set so in preferences it would download without asking. So at least it's not behind users back. I don't know if the certificate checking is OK now, I could not verify as it does not respect system proxy settings, but that may be (also) urllib2's fold.
Comment 3 Aaron Bauman (RETIRED) gentoo-dev 2016-03-19 06:58:18 UTC
This was fixed in 0.15 as previously mentioned and confirmed here:

https://github.com/FreeCAD/FreeCAD/commit/bd1bbff874f5e5a86f4308aa2f840cbd64a77b77

@maintainer, please cleanup the vulnerable versions.
Comment 4 Aaron Bauman (RETIRED) gentoo-dev 2016-03-22 22:51:17 UTC
Tree has been cleaned by maintainer.