Page MenuHomePhabricator

Contain imagemagick on the image scalers with firejail
Closed, ResolvedPublic

Description

imagemagick is full of crusty old code, which was never written with security in mind. This task is about containing the scaling process with firejail.

Event Timeline

MoritzMuehlenhoff triaged this task as High priority.

Change 288379 had a related patch set uploaded (by Muehlenhoff):
Install firejail von image/video scalers

https://gerrit.wikimedia.org/r/288379

Change 288390 had a related patch set uploaded (by Muehlenhoff):
WIP: Use firejail in image scaling

https://gerrit.wikimedia.org/r/288390

Change 288379 merged by Muehlenhoff:
Install firejail on image/video scalers

https://gerrit.wikimedia.org/r/288379

Change 290696 had a related patch set uploaded (by Muehlenhoff):
Provide a firejail profile for the image scalers

https://gerrit.wikimedia.org/r/290696

Change 288390 abandoned by Muehlenhoff:
WIP: Use firejail in image scaling

Reason:
This will be handled differently: The current patch doesn't work with the way the scaler extension shells out. Also since other extensions also invoke convert(1) this is now going to be handled via a wrapper (which was tested successfully). The respective new changes are 290696 and 290909

https://gerrit.wikimedia.org/r/288390

Change 290696 merged by Muehlenhoff:
Provide a firejail profile for the image scalers

https://gerrit.wikimedia.org/r/290696

Change 291202 had a related patch set uploaded (by Muehlenhoff):
Enable firejail for image scaling

https://gerrit.wikimedia.org/r/291202

Change 291202 merged by Muehlenhoff:
Enable firejail for image scaling

https://gerrit.wikimedia.org/r/291202

Change 291924 had a related patch set uploaded (by Muehlenhoff):
Add firejail profile and wrapper for ghostscript

https://gerrit.wikimedia.org/r/291924

Change 291924 merged by Muehlenhoff:
Add firejail profile and wrapper for ghostscript

https://gerrit.wikimedia.org/r/291924

Change 293328 had a related patch set uploaded (by Muehlenhoff):
Provide the firejail containment for imagemagick's convert(1) on all app servers

https://gerrit.wikimedia.org/r/293328

Change 293328 merged by Muehlenhoff:
Provide the firejail containment for imagemagick's convert(1) on all app servers

https://gerrit.wikimedia.org/r/293328

Change 294458 had a related patch set uploaded (by Muehlenhoff):
Reenable firejail wrapper for imagemagick's convert

https://gerrit.wikimedia.org/r/294458

Change 294458 merged by Muehlenhoff:
Reenable firejail wrapper for imagemagick's convert

https://gerrit.wikimedia.org/r/294458

This is enabled on the image scalers (and app servers for the Score extensions) since last week