Debian Security Advisory DSA 229-2 (imp)

Summary
The remote host is missing an update to imp announced via advisory DSA 229-2.
Solution
https://secure1.securityspace.com/smysecure/catid.html?in=DSA%20229-2
Insight
The advisory DSA 229-1 contained a typo in one file which could cause certain installations to fail suddenly. For completeness, here is the original advisory text: Jouko Pynnonen discovered a probem with IMP, a web based IMAP mail program. Using carefully crafted URLs a remote attacker is able to inject SQL code into SQL queries without proper user authentication. Even though results of SQL queries aren't directly readable from the screen, an attacker might. update his mail signature to contain wanted query results and then view it on the preferences page of IMP. The impact of SQL injection depends heavily on the underlying database and its configuration. If PostgreSQL is used, it's possible to execute multiple complete SQL queries separated by semicolons. The database contains session id's so the attacker might hijack sessions of people currently logged in and read their mail. In the worst case, if the hordemgr user has the required privilege to use the COPY SQL command (found in PostgreSQL at least), a remote user may read or write to any file the database user (postgres) can. The attacker may then be able to run arbitrary shell commands by writing them to the postgres user's ~/.psqlrc they'd be run when the user starts the psql command which under some configurations happens regularly from a cron script. For the current stable distribution (woody) this problem has been fixed in version 2.2.6-5.2. For the old stable distribution (potato) this problem has been fixed in version 2.2.6-0.potato.5.2. For the unstable distribution (sid) this problem will be fixed in version 2.2.6-8. We recommend that you upgrade your IMP packages.