Bug 156159 - Symlink vulnerability in %scriptlets
Summary: Symlink vulnerability in %scriptlets
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: dovecot
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: John Dennis
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-04-28 00:16 UTC by Enrico Scholz
Modified: 2014-01-21 22:51 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-04-28 20:05:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Enrico Scholz 2005-04-28 00:16:14 UTC
Description of problem:

Scriptlets contain 

| %pre
| ...
| touch /tmp/dovecot-restart-after-rpm-install

As /tmp is writable by everybody, an attacker could cause the creation of
arbitrary files. It would be better to use a directory like /var/run for such
flags as it is writable by root only.


Version-Release number of selected component (if applicable):

dovecot-0.99.14-2.fc4

Comment 1 John Dennis 2005-04-28 20:05:34 UTC
fixed in dovecot-0.99.14-5.fc4

Same issue occurs in mailman, fixed there too
mailman-2.1.5-36.fc4


Note You need to log in before you can comment on or make changes to this bug.