Bugzilla – Bug 1143663
AUDIT-FIND: obs-service-refresh-patches: calls into osc and quilt
Last modified: 2023-10-12 08:12:34 UTC
refresh_patches: runs 'osc' (I guess this would break if it were not run as root?) and 'quilt' (which can be made to write to anywhere in the filesystem)
The issue with quilt is also described here: https://www.openwall.com/lists/oss-security/2018/09/27/2 I think it's probably not really an option to recreate the logic that quilt provides. Then I would suggest that quilt is either sandboxed (see https://github.com/jsegitz/squilt) or the user is at least warned that this is not a risk-free operation (as most probably assume it is). Also tracked in https://github.com/openSUSE/obs-service-refresh_patches/issues/8 for visibility