AOH :: HP Unsorted D :: B06-2179.HTM

Dovecot imap: mailbox names list disclosure with mboxes



Dovecot IMAP: Mailbox names list disclosure with mboxes
Dovecot IMAP: Mailbox names list disclosure with mboxes




--=-/t6e18Nr3dj+9dTyfyhi
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Giving "1 LIST .. *" IMAP command allows the user to see all files and
directories under the mbox root's parent directory, so potentially you
could see other users' mailbox names. Nothing can be done with them
though, so it's not possible to read or modify them.

There are also some other less than wanted behaviors that can be done
with "." and ".." directories, such as "DELETE .." command can give
errors. Also with maildir if you store indexes in different directory
than mails this command can be used to delete the index files. Anyway I
don't see any of these as security issues.

Hopefully most people have their mail directory under user's home
directory, so this would only list the home directory's contents.

But if you do have users' mails stored in eg. under /var/mail/%u/
directory, giving that command would list everything under /var/mail,
assuming that the process has permissions to do that (that's why you
should be using different UIDs for users if possible).

This affects 1.0 beta releases, but not 0.99.x. Also the older snapshots
called "1.0 stable" are affected. 1.0 beta8 and later are not affected.

Patch for the fix is in
http://dovecot.org/list/dovecot-cvs/2006-May/005563.html 

Thanks for Bill Boebel for noticing "DELETE .." doing weird things with
maildir.

--=-/t6e18Nr3dj+9dTyfyhi
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQBEZFi8Q95cgkr2Z40RAte7AKCvX7JhNO27Chfq043P+MYRkci5pQCgrVWl
li5W6EK6t8eqj9KmkV0+OHM=x+kF
-----END PGP SIGNATURE-----

--=-/t6e18Nr3dj+9dTyfyhi--


The entire AOH site is optimized to look best in Firefox® 3 on a widescreen monitor (1440x900 or better).
Site design & layout copyright © 1986-2014 AOH
We do not send spam. If you have received spam bearing an artofhacking.com email address, please forward it with full headers to abuse@artofhacking.com.