prerm will rm -rf / when /etc/slack.conf is empty

Bug #255819 reported by Andrew Pollock
12
Affects Status Importance Assigned to Milestone
slack (Ubuntu)
Fix Released
Critical
Luca Falavigna
Hardy
Fix Released
Critical
Luca Falavigna
Intrepid
Fix Released
Critical
Luca Falavigna

Bug Description

Binary package hint: slack

Hi,

I've just fixed a rather severe issue with the prerm in slack, where if /etc/slack.conf is empty, it'll do an rm -rf on /

Attached is a debdiff for a fixed version.

TEST CASE

PROCEDURE:
  IMPORTANT: Test this on a virtual machine or in a pbuilder, THIS WILL DELETE ALL YOUR DATA!
  Install slack binary package
  Run ": > /etc/slack.conf" command
  Remove slack package

RESULT ON PASS:
  Package should remove correctly

RESULT ON FAIL:
  rm -fr / will be executed as root

END TEST CASE

Revision history for this message
Andrew Pollock (apollock) wrote :
Revision history for this message
Andrew Pollock (apollock) wrote :

Steps to reproduce:

(as root)

: > /etc/slack.conf
dpkg --purge slack

Revision history for this message
Andrew Pollock (apollock) wrote :

Meh, please disregard the current debdiff (for Hardy), I'll prepare a new one shortly against the version in Hardy.

Revision history for this message
Andrew Pollock (apollock) wrote :

Here's an appropriate debdiff for Hardy.

Revision history for this message
Luca Falavigna (dktrkranz) wrote :

This is *definitely* SRU-worthy!
Intrepid will be fixed when bug #255833 will be closed by syncing packages from Debian unstable.

Changed in slack:
assignee: nobody → dktrkranz
importance: Undecided → Critical
status: New → In Progress
assignee: nobody → dktrkranz
importance: Undecided → Critical
status: New → Confirmed
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Andrew, thank you so much! I uploaded an ajusted version of your debdiff to hardy-proposed as 0.14.1-2ubuntu1.

description: updated
Changed in slack:
status: In Progress → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Accepted into -proposed, please test and give feedback here. Please see https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in slack:
status: Confirmed → Fix Committed
Revision history for this message
Cesare Tirabassi (norsetto) wrote :

Confirming the problem with current hardy package.
The package from -updates can be purged without side effects:

root@norsetto:/# : > /etc/slack.conf
root@norsetto:/# dpkg --purge slack
(Reading database ... 12468 files and directories currently installed.)
Removing slack ...
Purging configuration files for slack ...
root@norsetto:/#

Revision history for this message
Martin Pitt (pitti) wrote :

Copied to hardy-updates.

Changed in slack:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.